summaryrefslogtreecommitdiffstats
path: root/svx/source/form
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-01-25 20:54:56 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-01-25 20:54:56 +0100
commit2603ace5fd253d992249c356a34a06221b4ed84c (patch)
treef426edfc7a3a5b7decd1ae2168f07b7b33cb3d99 /svx/source/form
parentmasterfix: #i10000# resource fix (diff)
parentgridsort: pulled CWS dba34b (diff)
downloadcore-2603ace5fd253d992249c356a34a06221b4ed84c.tar.gz
core-2603ace5fd253d992249c356a34a06221b4ed84c.zip
gridsort: pulled and merged DEV300m98
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 7087e3d6793f..158b77c5f368 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 ) );
}
}
}