diff options
author | Chris Sherlock <chris.sherlock@collabora.com> | 2015-02-12 14:10:24 +1100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-02-17 11:34:20 +0100 |
commit | 5d05f7ed8582193c39e29b7dc16767fb850e9f28 (patch) | |
tree | 79b25898b74c25ca943018f725c72c2773f24419 /forms/source/component/Filter.cxx | |
parent | abd9ca08df895a4ce6976554a46751dd469125f7 (diff) |
forms: use constructor feature for form modules
Change-Id: I8f1588cbd338e2f8b5bc6047d84b17c697a7d2d3
Diffstat (limited to 'forms/source/component/Filter.cxx')
-rw-r--r-- | forms/source/component/Filter.cxx | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/forms/source/component/Filter.cxx b/forms/source/component/Filter.cxx index a13b78454f4a..53316db0e901 100644 --- a/forms/source/component/Filter.cxx +++ b/forms/source/component/Filter.cxx @@ -66,16 +66,8 @@ #include <tools/wintypes.hxx> -extern "C" void SAL_CALL createRegistryInfo_OFilterControl() -{ - static ::frm::OMultiInstanceAutoRegistration< ::frm::OFilterControl > aAutoRegistration; -} - - namespace frm { - - using namespace ::com::sun::star::uno; using namespace ::com::sun::star::awt; using namespace ::com::sun::star::lang; @@ -914,14 +906,18 @@ namespace frm return aNames; } - Reference< XInterface > SAL_CALL OFilterControl::Create( const Reference< XMultiServiceFactory >& _rxFactory ) { return static_cast< XServiceInfo* >( new OFilterControl( comphelper::getComponentContext(_rxFactory) ) ); } - } // namespace frm +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* SAL_CALL +com_sun_star_comp_forms_OFilterControl_get_implementation(css::uno::XComponentContext* context, + css::uno::Sequence<css::uno::Any> const &) +{ + return cppu::acquire(new frm::OFilterControl(context)); +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |