diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2015-03-27 23:27:32 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2015-03-28 11:52:41 +0100 |
commit | 39c4b2787ea05233dbd47ca71007c13487628284 (patch) | |
tree | de236f6bb3d8c4bb57ade46beff1570dc09cb17e /forms/source/component/spinbutton.cxx | |
parent | forms: More unused services related stuff (diff) | |
download | core-39c4b2787ea05233dbd47ca71007c13487628284.tar.gz core-39c4b2787ea05233dbd47ca71007c13487628284.zip |
forms: Replace these macros
Change-Id: I656905cf6f0e3647824ff3836fcea93920251264
Diffstat (limited to 'forms/source/component/spinbutton.cxx')
-rw-r--r-- | forms/source/component/spinbutton.cxx | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/forms/source/component/spinbutton.cxx b/forms/source/component/spinbutton.cxx index 6fc2b3d4b6dd..77ea31200aaa 100644 --- a/forms/source/component/spinbutton.cxx +++ b/forms/source/component/spinbutton.cxx @@ -59,13 +59,29 @@ namespace frm { } + OUString SAL_CALL OSpinButtonModel::getImplementationName() throw ( RuntimeException, std::exception ) + { + return OUString( "com.sun.star.comp.forms.OSpinButtonModel" ); + } - IMPLEMENT_SERVICE_REGISTRATION_2( OSpinButtonModel, OControlModel, FRM_SUN_COMPONENT_SPINBUTTON, BINDABLE_INTEGER_VALUE_RANGE ) // note that we're passing OControlModel as "base class". This is because // OBoundControlModel, our real base class, claims to support the DataAwareControlModel // service, which isn't really true for us. We only derive from this class // to benefit from the functionality for binding to spreadsheet cells - + Sequence< OUString > SAL_CALL OSpinButtonModel::getSupportedServiceNames() throw (RuntimeException, std::exception) + { + Sequence< OUString > aOwnNames( 2 ); + aOwnNames[ 0 ] = FRM_SUN_COMPONENT_SPINBUTTON; + aOwnNames[ 1 ] = BINDABLE_INTEGER_VALUE_RANGE; + + return ::comphelper::combineSequences( + getAggregateServiceNames(), + ::comphelper::concatSequences( + OControlModel::getSupportedServiceNames_Static(), + aOwnNames + ) + ); + } IMPLEMENT_DEFAULT_CLONING( OSpinButtonModel ) |