diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-22 21:20:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 03:38:49 +0000 |
commit | 0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf (patch) | |
tree | 5024cba9f9ea5e3b23ea26025323f6aef39488d0 /forms/source/component/ImageButton.cxx | |
parent | fdo#70414: Use correct target names for building Visual Studio projects. (diff) | |
download | core-0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf.tar.gz core-0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf.zip |
Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'forms/source/component/ImageButton.cxx')
-rw-r--r-- | forms/source/component/ImageButton.cxx | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/forms/source/component/ImageButton.cxx b/forms/source/component/ImageButton.cxx index 944df88ce4ce..3c60460c7e71 100644 --- a/forms/source/component/ImageButton.cxx +++ b/forms/source/component/ImageButton.cxx @@ -26,10 +26,8 @@ #include <comphelper/processfactory.hxx> #include <com/sun/star/awt/MouseButton.hpp> -//......................................................................... namespace frm { -//......................................................................... using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::sdb; @@ -42,16 +40,12 @@ using namespace ::com::sun::star::io; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::util; -//================================================================== -//= OImageButtonModel -//================================================================== -//------------------------------------------------------------------ +// OImageButtonModel InterfaceRef SAL_CALL OImageButtonModel_CreateInstance(const Reference<XMultiServiceFactory>& _rxFactory) { return *(new OImageButtonModel( comphelper::getComponentContext(_rxFactory) )); } -//------------------------------------------------------------------ OImageButtonModel::OImageButtonModel(const Reference<XComponentContext>& _rxFactory) :OClickableImageBaseModel( _rxFactory, VCL_CONTROLMODEL_IMAGEBUTTON, FRM_SUN_CONTROL_IMAGEBUTTON ) // use the old control name for compytibility reasons @@ -59,23 +53,19 @@ OImageButtonModel::OImageButtonModel(const Reference<XComponentContext>& _rxFact m_nClassId = FormComponentType::IMAGEBUTTON; } -//------------------------------------------------------------------ OImageButtonModel::OImageButtonModel( const OImageButtonModel* _pOriginal, const Reference<XComponentContext>& _rxFactory) :OClickableImageBaseModel( _pOriginal, _rxFactory ) { implInitializeImageURL(); } -//------------------------------------------------------------------------------ IMPLEMENT_DEFAULT_CLONING( OImageButtonModel ) -//------------------------------------------------------------------------------ OImageButtonModel::~OImageButtonModel() { } // XServiceInfo -//------------------------------------------------------------------------------ StringSequence OImageButtonModel::getSupportedServiceNames() throw() { StringSequence aSupported = OClickableImageBaseModel::getSupportedServiceNames(); @@ -86,7 +76,6 @@ StringSequence OImageButtonModel::getSupportedServiceNames() throw() return aSupported; } -//------------------------------------------------------------------------------ void OImageButtonModel::describeFixedProperties( Sequence< Property >& _rProps ) const { BEGIN_DESCRIBE_PROPERTIES( 5, OClickableImageBaseModel ) @@ -98,13 +87,11 @@ void OImageButtonModel::describeFixedProperties( Sequence< Property >& _rProps ) END_DESCRIBE_PROPERTIES(); } -//------------------------------------------------------------------------------ OUString OImageButtonModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) { return OUString(FRM_COMPONENT_IMAGEBUTTON); // old (non-sun) name for compatibility ! } -//------------------------------------------------------------------------------ void OImageButtonModel::write(const Reference<XObjectOutputStream>& _rxOutStream) throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException) { OControlModel::write(_rxOutStream); @@ -119,7 +106,6 @@ void OImageButtonModel::write(const Reference<XObjectOutputStream>& _rxOutStream writeHelpTextCompatibly(_rxOutStream); } -//------------------------------------------------------------------------------ void OImageButtonModel::read(const Reference<XObjectInputStream>& _rxInStream) throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException) { OControlModel::read(_rxInStream); @@ -159,16 +145,12 @@ void OImageButtonModel::read(const Reference<XObjectInputStream>& _rxInStream) t } } -//================================================================== // OImageButtonControl -//================================================================== -//------------------------------------------------------------------ InterfaceRef SAL_CALL OImageButtonControl_CreateInstance(const Reference<XMultiServiceFactory>& _rxFactory) { return *(new OImageButtonControl( comphelper::getComponentContext(_rxFactory) )); } -//------------------------------------------------------------------------------ Sequence<Type> OImageButtonControl::_getTypes() { static Sequence<Type> aTypes; @@ -177,7 +159,6 @@ Sequence<Type> OImageButtonControl::_getTypes() return aTypes; } -//------------------------------------------------------------------------------ StringSequence OImageButtonControl::getSupportedServiceNames() throw() { StringSequence aSupported = OClickableImageBaseControl::getSupportedServiceNames(); @@ -188,7 +169,6 @@ StringSequence OImageButtonControl::getSupportedServiceNames() throw() return aSupported; } -//------------------------------------------------------------------------------ OImageButtonControl::OImageButtonControl(const Reference<XComponentContext>& _rxFactory) :OClickableImageBaseControl(_rxFactory, VCL_CONTROL_IMAGEBUTTON) { @@ -204,7 +184,6 @@ OImageButtonControl::OImageButtonControl(const Reference<XComponentContext>& _rx } // UNO Anbindung -//------------------------------------------------------------------------------ Any SAL_CALL OImageButtonControl::queryAggregation(const Type& _rType) throw (RuntimeException) { Any aReturn = OClickableImageBaseControl::queryAggregation(_rType); @@ -214,7 +193,6 @@ Any SAL_CALL OImageButtonControl::queryAggregation(const Type& _rType) throw (Ru return aReturn; } -//------------------------------------------------------------------------------ void OImageButtonControl::mousePressed(const awt::MouseEvent& e) throw ( ::com::sun::star::uno::RuntimeException) { SolarMutexGuard aSolarGuard; @@ -238,24 +216,18 @@ void OImageButtonControl::mousePressed(const awt::MouseEvent& e) throw ( ::com:: } } -//------------------------------------------------------------------------------ void SAL_CALL OImageButtonControl::mouseReleased(const awt::MouseEvent& /*e*/) throw ( RuntimeException) { } -//------------------------------------------------------------------------------ void SAL_CALL OImageButtonControl::mouseEntered(const awt::MouseEvent& /*e*/) throw ( RuntimeException) { } -//------------------------------------------------------------------------------ void SAL_CALL OImageButtonControl::mouseExited(const awt::MouseEvent& /*e*/) throw ( RuntimeException) { } - -//......................................................................... } // namespace frm -//......................................................................... /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |