summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsolenv/bin/native-code.py1
-rw-r--r--xmloff/inc/facreg.hxx7
-rw-r--r--xmloff/source/core/facreg.cxx5
-rw-r--r--xmloff/source/meta/MetaExportComponent.cxx19
-rw-r--r--xmloff/util/xo.component3
5 files changed, 9 insertions, 26 deletions
diff --git a/solenv/bin/native-code.py b/solenv/bin/native-code.py
index 0d73816288be..f5012b2ff18f 100755
--- a/solenv/bin/native-code.py
+++ b/solenv/bin/native-code.py
@@ -290,6 +290,7 @@ core_constructor_list = [
"com_sun_star_comp_uui_UUIInteractionRequestStringResolver_get_implementation",
# xmloff/util/xo.component
"XMLMetaExportComponent_get_implementation",
+ "XMLMetaExportOOo_get_implementation",
"XMLMetaImportComponent_get_implementation",
"XMLVersionListPersistence_get_implementation",
"com_sun_star_comp_Impress_XMLOasisImporter_get_implementation",
diff --git a/xmloff/inc/facreg.hxx b/xmloff/inc/facreg.hxx
index 25091efca08e..e810c5465831 100644
--- a/xmloff/inc/facreg.hxx
+++ b/xmloff/inc/facreg.hxx
@@ -31,13 +31,6 @@ namespace com::sun::star {
namespace uno { class XInterface; }
}
-// meta export OOo
-OUString XMLMetaExportOOO_getImplementationName() throw();
-css::uno::Sequence<OUString> XMLMetaExportOOO_getSupportedServiceNames() throw();
-/// @throws css::uno::Exception
-css::uno::Reference<css::uno::XInterface> XMLMetaExportOOO_createInstance(
- css::uno::Reference<css::lang::XMultiServiceFactory> const & rSMgr);
-
// writer autotext event export
OUString XMLAutoTextEventExport_getImplementationName() throw();
css::uno::Sequence<OUString> XMLAutoTextEventExport_getSupportedServiceNames() throw();
diff --git a/xmloff/source/core/facreg.cxx b/xmloff/source/core/facreg.cxx
index 48b12ad2060e..52c719d30d48 100644
--- a/xmloff/source/core/facreg.cxx
+++ b/xmloff/source/core/facreg.cxx
@@ -54,11 +54,8 @@ XMLOFF_DLLPUBLIC void * xo_component_getFactory( const char * pImplName, void *
const sal_Int32 nImplNameLen = strlen( pImplName );
- // meta import/export OOo
- SINGLEFACTORY( XMLMetaExportOOO )
-
// auto text import/export
- else SINGLEFACTORY( XMLAutoTextEventExport )
+ SINGLEFACTORY( XMLAutoTextEventExport )
else SINGLEFACTORY( XMLAutoTextEventImport )
else SINGLEFACTORY( XMLAutoTextEventExportOOO )
diff --git a/xmloff/source/meta/MetaExportComponent.cxx b/xmloff/source/meta/MetaExportComponent.cxx
index 61b6e9a85629..228de2fe94e9 100644
--- a/xmloff/source/meta/MetaExportComponent.cxx
+++ b/xmloff/source/meta/MetaExportComponent.cxx
@@ -168,12 +168,6 @@ void XMLMetaExportComponent::ExportAutoStyles_() {}
void XMLMetaExportComponent::ExportMasterStyles_() {}
void XMLMetaExportComponent::ExportContent_() {}
-uno::Sequence< OUString > XMLMetaExportOOO_getSupportedServiceNames()
- throw()
-{
- return uno::Sequence< OUString > { "com.sun.star.document.XMLMetaExporter" };
-}
-
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
XMLMetaExportComponent_get_implementation(
css::uno::XComponentContext *context,
@@ -182,15 +176,12 @@ XMLMetaExportComponent_get_implementation(
return cppu::acquire(new XMLMetaExportComponent(context, "XMLMetaExportComponent", SvXMLExportFlags::META|SvXMLExportFlags::OASIS));
}
-OUString XMLMetaExportOOO_getImplementationName() throw()
-{
- return "XMLMetaExportOOo";
-}
-
-uno::Reference< uno::XInterface > XMLMetaExportOOO_createInstance(
- const uno::Reference< lang::XMultiServiceFactory > & rSMgr)
+extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
+XMLMetaExportOOo_get_implementation(css::uno::XComponentContext* context,
+ css::uno::Sequence<css::uno::Any> const&)
{
- return static_cast<cppu::OWeakObject*>(new XMLMetaExportComponent( comphelper::getComponentContext(rSMgr), XMLMetaExportOOO_getImplementationName(), SvXMLExportFlags::META));
+ return cppu::acquire(
+ new XMLMetaExportComponent(context, "XMLMetaExportOOo", SvXMLExportFlags::META));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/util/xo.component b/xmloff/util/xo.component
index cbb4efbf5bed..9942e90b6a65 100644
--- a/xmloff/util/xo.component
+++ b/xmloff/util/xo.component
@@ -195,7 +195,8 @@
constructor="XMLMetaExportComponent_get_implementation">
<service name="com.sun.star.document.XMLOasisMetaExporter"/>
</implementation>
- <implementation name="XMLMetaExportOOo">
+ <implementation name="XMLMetaExportOOo"
+ constructor="XMLMetaExportOOo_get_implementation">
<service name="com.sun.star.document.XMLMetaExporter"/>
</implementation>
<implementation name="XMLMetaImportComponent"