summaryrefslogtreecommitdiffstats
path: root/svx/source/form
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-02-03 09:41:02 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-02-03 09:41:02 +0100
commit62efd695fb99fca30c6b3260f5ce57d5558eb35b (patch)
treed7018f23beb9da69d8bd9aa0f388397df1b1eb0d /svx/source/form
parent#i10000# temporarily disable test (diff)
parentAutomated merge with ssh://hg@hg.services.openoffice.org/cws/dba34b (diff)
downloadcore-62efd695fb99fca30c6b3260f5ce57d5558eb35b.tar.gz
core-62efd695fb99fca30c6b3260f5ce57d5558eb35b.zip
pulled and merged DEV300.m99
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 528661d2abe4..6f6cdbf9c2a6 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 ) );
}
}
}