diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2018-11-15 22:49:07 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2018-11-16 09:05:53 +0100 |
commit | 84a0496de8300e4e7febb0f30862d8c5f9a1472e (patch) | |
tree | 05a342522c31b8e02ae7eeea3bb48836e3b5fefa /starmath/source/mathmlimport.cxx | |
parent | bbf5c85c2affa47fe0f6674dd0ee8ccc55446769 (diff) |
starmath: create XMLOasisMetaImporter instances with an uno constructor
Change-Id: Ie48a779958a393b68dea613c3bcc17113165f065
Reviewed-on: https://gerrit.libreoffice.org/63443
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'starmath/source/mathmlimport.cxx')
-rw-r--r-- | starmath/source/mathmlimport.cxx | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx index d9f764344dc1..fcf3ebb21b48 100644 --- a/starmath/source/mathmlimport.cxx +++ b/starmath/source/mathmlimport.cxx @@ -442,24 +442,14 @@ Math_XMLImporter_get_implementation(uno::XComponentContext* pCtx, new SmXMLImport(pCtx, "com.sun.star.comp.Math.XMLImporter", SvXMLImportFlags::ALL)); } -OUString SmXMLImportMeta_getImplementationName() throw() -{ - return OUString( "com.sun.star.comp.Math.XMLOasisMetaImporter" ); -} - -uno::Sequence< OUString > SmXMLImportMeta_getSupportedServiceNames() -throw() -{ - return uno::Sequence<OUString>{ IMPORT_SVC_NAME }; -} - -uno::Reference< uno::XInterface > SmXMLImportMeta_createInstance( - const uno::Reference< lang::XMultiServiceFactory > & rSMgr) +extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface* +Math_XMLOasisMetaImporter_get_implementation(uno::XComponentContext* pCtx, + uno::Sequence<uno::Any> const& /*rSeq*/) { - return static_cast<cppu::OWeakObject*>(new SmXMLImport( comphelper::getComponentContext(rSMgr), SmXMLImportMeta_getImplementationName(), SvXMLImportFlags::META )); + return cppu::acquire(new SmXMLImport(pCtx, "com.sun.star.comp.Math.XMLOasisMetaImporter", + SvXMLImportFlags::META)); } - OUString SmXMLImportSettings_getImplementationName() throw() { return OUString( "com.sun.star.comp.Math.XMLOasisSettingsImporter" ); |