Kaydet (Commit) 94699cde authored tarafından kripton's avatar kripton Kaydeden (comit) Matúš Kukan

tdf#74608 xmloff: Constructor feature for XMLMetaExportComponent

Change-Id: I3edde1291e9dec21420238edb5a05f25849ebfff
Reviewed-on: https://gerrit.libreoffice.org/19792Reviewed-by: 's avatarMatúš Kukan <matus@libreoffice.org>
Tested-by: 's avatarMatúš Kukan <matus@libreoffice.org>
üst 88343308
...@@ -283,13 +283,6 @@ css::uno::Reference<css::uno::XInterface> SAL_CALL SchXMLExport_Content_createIn ...@@ -283,13 +283,6 @@ css::uno::Reference<css::uno::XInterface> SAL_CALL SchXMLExport_Content_createIn
css::uno::Reference<css::lang::XMultiServiceFactory> const & rSMgr) css::uno::Reference<css::lang::XMultiServiceFactory> const & rSMgr)
throw (css::uno::Exception); throw (css::uno::Exception);
// meta export
OUString SAL_CALL XMLMetaExportComponent_getImplementationName() throw();
css::uno::Sequence<OUString> SAL_CALL XMLMetaExportComponent_getSupportedServiceNames() throw();
css::uno::Reference<css::uno::XInterface> SAL_CALL XMLMetaExportComponent_createInstance(
css::uno::Reference<css::lang::XMultiServiceFactory> const & rSMgr)
throw (css::uno::Exception);
// meta export OOo // meta export OOo
OUString SAL_CALL XMLMetaExportOOO_getImplementationName() throw(); OUString SAL_CALL XMLMetaExportOOO_getImplementationName() throw();
css::uno::Sequence<OUString> SAL_CALL XMLMetaExportOOO_getSupportedServiceNames() throw(); css::uno::Sequence<OUString> SAL_CALL XMLMetaExportOOO_getSupportedServiceNames() throw();
......
...@@ -125,9 +125,6 @@ XMLOFF_DLLPUBLIC void * SAL_CALL xo_component_getFactory( const sal_Char * pImpl ...@@ -125,9 +125,6 @@ XMLOFF_DLLPUBLIC void * SAL_CALL xo_component_getFactory( const sal_Char * pImpl
else SINGLEFACTORY( SchXMLExport_Styles ) else SINGLEFACTORY( SchXMLExport_Styles )
else SINGLEFACTORY( SchXMLExport_Content ) else SINGLEFACTORY( SchXMLExport_Content )
// meta import/export
else SINGLEFACTORY( XMLMetaExportComponent )
// meta import/export OOo // meta import/export OOo
else SINGLEFACTORY( XMLMetaExportOOO ) else SINGLEFACTORY( XMLMetaExportOOO )
......
...@@ -53,7 +53,15 @@ XMLMetaExportComponent::~XMLMetaExportComponent() ...@@ -53,7 +53,15 @@ XMLMetaExportComponent::~XMLMetaExportComponent()
{ {
} }
void SAL_CALL XMLMetaExportComponent::setSourceDocument( const css::uno::Reference< css::lang::XComponent >& xDoc ) throw(css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
XMLMetaExportComponent_get_implementation(
css::uno::XComponentContext *context,
css::uno::Sequence<css::uno::Any> const &)
{
return cppu::acquire(new XMLMetaExportComponent(context, "XMLMetaExportComponent", SvXMLExportFlags::META|SvXMLExportFlags::OASIS));
}
void SAL_CALL XMLMetaExportComponent::setSourceDocument( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& xDoc ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception)
{ {
try try
{ {
......
...@@ -140,7 +140,8 @@ ...@@ -140,7 +140,8 @@
<service name="com.sun.star.comp.Draw.XMLOasisStylesImporter"/> <service name="com.sun.star.comp.Draw.XMLOasisStylesImporter"/>
<service name="com.sun.star.comp.Impress.XMLOasisStylesImporter"/> <service name="com.sun.star.comp.Impress.XMLOasisStylesImporter"/>
</implementation> </implementation>
<implementation name="XMLMetaExportComponent"> <implementation name="XMLMetaExportComponent"
constructor="XMLMetaExportComponent_get_implementation">
<service name="com.sun.star.document.XMLOasisMetaExporter"/> <service name="com.sun.star.document.XMLOasisMetaExporter"/>
</implementation> </implementation>
<implementation name="XMLMetaExportOOo"> <implementation name="XMLMetaExportOOo">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment