summaryrefslogtreecommitdiffstats
path: root/svx/source/form
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
commit22b333e4aea06744493f9598f162cce451e73e21 (patch)
treefcee6e7f9b604475cc98cbc292c4f6d80ceccd7d /svx/source/form
parentAutomated merge with ssh://hg.services.openoffice.org/cws/gridcontrol07 (diff)
downloadcore-22b333e4aea06744493f9598f162cce451e73e21.tar.gz
core-22b333e4aea06744493f9598f162cce451e73e21.zip
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 'svx/source/form')
-rw-r--r--svx/source/form/formcontroller.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx
index f43233ae08ba..027d199269c2 100644
--- a/svx/source/form/formcontroller.cxx
+++ b/svx/source/form/formcontroller.cxx
@@ -479,7 +479,10 @@ class FmXAutoControl: public UnoControl
friend Reference< XInterface > SAL_CALL FmXAutoControl_NewInstance_Impl();
public:
- FmXAutoControl(){}
+ FmXAutoControl( const ::comphelper::ComponentContext& i_context )
+ :UnoControl( i_context.getLegacyServiceFactory() )
+ {
+ }
virtual ::rtl::OUString GetComponentServiceName() {return ::rtl::OUString::createFromAscii("Edit");}
virtual void SAL_CALL createPeer( const Reference< XToolkit > & rxToolkit, const Reference< XWindowPeer > & rParentPeer ) throw( RuntimeException );
@@ -1451,7 +1454,7 @@ void FormController::toggleAutoFields(sal_Bool bAutoFields)
&& ::comphelper::getBOOL( xField->getPropertyValue( FM_PROP_AUTOINCREMENT ) )
)
{
- replaceControl( xControl, new FmXAutoControl );
+ replaceControl( xControl, new FmXAutoControl( m_aContext ) );
}
}
}