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 /toolkit/source/controls/tkspinbutton.cxx | |
parent | b81ac16e65b311d6e43c05c22c65d2040c9d7e04 (diff) |
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 'toolkit/source/controls/tkspinbutton.cxx')
-rw-r--r-- | toolkit/source/controls/tkspinbutton.cxx | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/toolkit/source/controls/tkspinbutton.cxx b/toolkit/source/controls/tkspinbutton.cxx index 871f29d8a315..7cde541f6758 100644 --- a/toolkit/source/controls/tkspinbutton.cxx +++ b/toolkit/source/controls/tkspinbutton.cxx @@ -114,7 +114,7 @@ public: //==================================================================== //= UnoSpinButtonModel //==================================================================== - //-------------------------------------------------------------------- + UnoSpinButtonModel::UnoSpinButtonModel( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& i_factory ) :UnoControlModel( i_factory ) { @@ -140,13 +140,13 @@ public: ImplRegisterProperty( BASEPROPERTY_CONTEXT_WRITING_MODE ); } - //-------------------------------------------------------------------- + OUString UnoSpinButtonModel::getServiceName( ) throw (RuntimeException) { return OUString("com.sun.star.awt.UnoControlSpinButtonModel"); } - //-------------------------------------------------------------------- + Any UnoSpinButtonModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const { switch ( nPropId ) @@ -165,7 +165,7 @@ public: } } - //-------------------------------------------------------------------- + ::cppu::IPropertyArrayHelper& UnoSpinButtonModel::getInfoHelper() { static UnoPropertyArrayHelper* pHelper = NULL; @@ -177,20 +177,20 @@ public: return *pHelper; } - //-------------------------------------------------------------------- + Reference< XPropertySetInfo > UnoSpinButtonModel::getPropertySetInfo( ) throw(RuntimeException) { static Reference< XPropertySetInfo > xInfo( createPropertySetInfo( getInfoHelper() ) ); return xInfo; } - //-------------------------------------------------------------------- + OUString SAL_CALL UnoSpinButtonModel::getImplementationName( ) throw(RuntimeException) { return OUString( "com.sun.star.comp.toolkit.UnoSpinButtonModel" ); } - //-------------------------------------------------------------------- + Sequence< OUString > SAL_CALL UnoSpinButtonModel::getSupportedServiceNames() throw(RuntimeException) { Sequence< OUString > aServices( UnoControlModel::getSupportedServiceNames() ); @@ -202,20 +202,20 @@ public: //==================================================================== //= UnoSpinButtonControl //==================================================================== - //-------------------------------------------------------------------- + UnoSpinButtonControl::UnoSpinButtonControl() :UnoControlBase() ,maAdjustmentListeners( *this ) { } - //-------------------------------------------------------------------- + OUString UnoSpinButtonControl::GetComponentServiceName() { return OUString("SpinButton"); } - //-------------------------------------------------------------------- + Any UnoSpinButtonControl::queryAggregation( const Type & rType ) throw(RuntimeException) { Any aRet = UnoControlBase::queryAggregation( rType ); @@ -224,10 +224,10 @@ public: return aRet; } - //-------------------------------------------------------------------- + IMPLEMENT_FORWARD_XTYPEPROVIDER2( UnoSpinButtonControl, UnoControlBase, UnoSpinButtonControl_Base ) - //-------------------------------------------------------------------- + void UnoSpinButtonControl::dispose() throw(RuntimeException) { ::osl::ClearableMutexGuard aGuard( GetMutex() ); @@ -247,13 +247,13 @@ public: UnoControl::dispose(); } - //-------------------------------------------------------------------- + OUString SAL_CALL UnoSpinButtonControl::getImplementationName( ) throw(RuntimeException) { return OUString( "com.sun.star.comp.toolkit.UnoSpinButtonControl" ); } - //-------------------------------------------------------------------- + Sequence< OUString > SAL_CALL UnoSpinButtonControl::getSupportedServiceNames() throw(RuntimeException) { Sequence< OUString > aServices( UnoControlBase::getSupportedServiceNames() ); @@ -262,7 +262,7 @@ public: return aServices; } - //-------------------------------------------------------------------- + void UnoSpinButtonControl::createPeer( const Reference< XToolkit > & rxToolkit, const Reference< XWindowPeer > & rParentPeer ) throw(RuntimeException) { UnoControl::createPeer( rxToolkit, rParentPeer ); @@ -272,7 +272,7 @@ public: xSpinnable->addAdjustmentListener( this ); } - //-------------------------------------------------------------------- + void UnoSpinButtonControl::adjustmentValueChanged( const AdjustmentEvent& rEvent ) throw(RuntimeException) { switch ( rEvent.Type ) @@ -294,27 +294,27 @@ public: } } - //-------------------------------------------------------------------- + void UnoSpinButtonControl::addAdjustmentListener( const Reference< XAdjustmentListener > & listener ) throw(RuntimeException) { ::osl::MutexGuard aGuard( GetMutex() ); maAdjustmentListeners.addInterface( listener ); } - //-------------------------------------------------------------------- + void UnoSpinButtonControl::removeAdjustmentListener( const Reference< XAdjustmentListener > & listener ) throw(RuntimeException) { ::osl::MutexGuard aGuard( GetMutex() ); maAdjustmentListeners.removeInterface( listener ); } - //-------------------------------------------------------------------- + void SAL_CALL UnoSpinButtonControl::setValue( sal_Int32 value ) throw (RuntimeException) { ImplSetPropertyValue( GetPropertyName( BASEPROPERTY_SPINVALUE ), makeAny( value ), sal_True ); } - //-------------------------------------------------------------------- + void SAL_CALL UnoSpinButtonControl::setValues( sal_Int32 minValue, sal_Int32 maxValue, sal_Int32 currentValue ) throw (RuntimeException) { ImplSetPropertyValue( GetPropertyName( BASEPROPERTY_SPINVALUE_MIN ), makeAny( minValue ), sal_True ); @@ -322,7 +322,7 @@ public: ImplSetPropertyValue( GetPropertyName( BASEPROPERTY_SPINVALUE ), makeAny( currentValue ), sal_True ); } - //-------------------------------------------------------------------- + sal_Int32 SAL_CALL UnoSpinButtonControl::getValue( ) throw (RuntimeException) { ::osl::MutexGuard aGuard( GetMutex() ); @@ -335,19 +335,19 @@ public: return nValue; } - //-------------------------------------------------------------------- + void SAL_CALL UnoSpinButtonControl::setMinimum( sal_Int32 minValue ) throw (RuntimeException) { ImplSetPropertyValue( GetPropertyName( BASEPROPERTY_SPINVALUE_MIN ), makeAny( minValue ), sal_True ); } - //-------------------------------------------------------------------- + void SAL_CALL UnoSpinButtonControl::setMaximum( sal_Int32 maxValue ) throw (RuntimeException) { ImplSetPropertyValue( GetPropertyName( BASEPROPERTY_SPINVALUE_MAX ), makeAny( maxValue ), sal_True ); } - //-------------------------------------------------------------------- + sal_Int32 SAL_CALL UnoSpinButtonControl::getMinimum( ) throw (RuntimeException) { ::osl::MutexGuard aGuard( GetMutex() ); @@ -360,7 +360,7 @@ public: return nMin; } - //-------------------------------------------------------------------- + sal_Int32 SAL_CALL UnoSpinButtonControl::getMaximum( ) throw (RuntimeException) { ::osl::MutexGuard aGuard( GetMutex() ); @@ -373,13 +373,13 @@ public: return nMax; } - //-------------------------------------------------------------------- + void SAL_CALL UnoSpinButtonControl::setSpinIncrement( sal_Int32 spinIncrement ) throw (RuntimeException) { ImplSetPropertyValue( GetPropertyName( BASEPROPERTY_SPININCREMENT ), makeAny( spinIncrement ), sal_True ); } - //-------------------------------------------------------------------- + sal_Int32 SAL_CALL UnoSpinButtonControl::getSpinIncrement( ) throw (RuntimeException) { ::osl::MutexGuard aGuard( GetMutex() ); @@ -392,13 +392,13 @@ public: return nIncrement; } - //-------------------------------------------------------------------- + void SAL_CALL UnoSpinButtonControl::setOrientation( sal_Int32 orientation ) throw (NoSupportException, RuntimeException) { ImplSetPropertyValue( GetPropertyName( BASEPROPERTY_ORIENTATION ), makeAny( orientation ), sal_True ); } - //-------------------------------------------------------------------- + sal_Int32 SAL_CALL UnoSpinButtonControl::getOrientation( ) throw (RuntimeException) { ::osl::MutexGuard aGuard( GetMutex() ); |