summaryrefslogtreecommitdiff
path: root/toolkit/source/controls/tkspinbutton.cxx
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-12-06 14:14:11 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-12-06 14:14:11 +0100
commit2033a625d3a213755d8c5015bd233b748b514b83 (patch)
tree259f30b33f0dab7e8732fec3497a033cdfbe40fd /toolkit/source/controls/tkspinbutton.cxx
parentcda10a2d67d77b74cafb41c5ce294c2fd195dc66 (diff)
gridsort: give the UnoControl(Model/Base) classes a ctor taking a service factory, so we have access to the factory
which created us, and don't need to resort to the process'es service factory
Diffstat (limited to 'toolkit/source/controls/tkspinbutton.cxx')
-rw-r--r--toolkit/source/controls/tkspinbutton.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/toolkit/source/controls/tkspinbutton.cxx b/toolkit/source/controls/tkspinbutton.cxx
index 5929dc7a4635..9396aea43290 100644
--- a/toolkit/source/controls/tkspinbutton.cxx
+++ b/toolkit/source/controls/tkspinbutton.cxx
@@ -50,7 +50,8 @@ namespace toolkit
//= UnoSpinButtonModel
//====================================================================
//--------------------------------------------------------------------
- UnoSpinButtonModel::UnoSpinButtonModel()
+ UnoSpinButtonModel::UnoSpinButtonModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory )
+ :UnoControlModel( i_factory )
{
ImplRegisterProperty( BASEPROPERTY_BACKGROUNDCOLOR );
ImplRegisterProperty( BASEPROPERTY_BORDER );
@@ -137,8 +138,9 @@ namespace toolkit
//= UnoSpinButtonControl
//====================================================================
//--------------------------------------------------------------------
- UnoSpinButtonControl::UnoSpinButtonControl()
- :maAdjustmentListeners( *this )
+ UnoSpinButtonControl::UnoSpinButtonControl( const Reference< XMultiServiceFactory >& i_factory )
+ :UnoControlBase( i_factory )
+ ,maAdjustmentListeners( *this )
{
}