tdf#74608 Constructor function for XMLBasicExporter
Change-Id: Ib4721b3f67956a8da48851841ef86bb7b79df1e7 Reviewed-on: https://gerrit.libreoffice.org/24553 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
committed by
Stephan Bergmann
parent
955ca134fd
commit
d46bfe1367
@@ -42,14 +42,6 @@ OUString SAL_CALL getImplementationName_DocumentHandlerImpl();
|
|||||||
css::uno::Reference<css::uno::XInterface> SAL_CALL create_DocumentHandlerImpl(
|
css::uno::Reference<css::uno::XInterface> SAL_CALL create_DocumentHandlerImpl(
|
||||||
css::uno::Reference<css::uno::XComponentContext> const & xContext);
|
css::uno::Reference<css::uno::XComponentContext> const & xContext);
|
||||||
|
|
||||||
css::uno::Sequence<OUString> SAL_CALL
|
|
||||||
getSupportedServiceNames_XMLBasicExporter();
|
|
||||||
|
|
||||||
OUString SAL_CALL getImplementationName_XMLBasicExporter();
|
|
||||||
|
|
||||||
css::uno::Reference<css::uno::XInterface> SAL_CALL create_XMLBasicExporter(
|
|
||||||
css::uno::Reference<css::uno::XComponentContext> const & xContext);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -32,11 +32,6 @@ namespace xmlscript
|
|||||||
getSupportedServiceNames_DocumentHandlerImpl, ::cppu::createSingleComponentFactory,
|
getSupportedServiceNames_DocumentHandlerImpl, ::cppu::createSingleComponentFactory,
|
||||||
nullptr, 0
|
nullptr, 0
|
||||||
},
|
},
|
||||||
{
|
|
||||||
create_XMLBasicExporter, getImplementationName_XMLBasicExporter,
|
|
||||||
getSupportedServiceNames_XMLBasicExporter, ::cppu::createSingleComponentFactory,
|
|
||||||
nullptr, 0
|
|
||||||
},
|
|
||||||
{ nullptr, nullptr, nullptr, nullptr, nullptr, 0 }
|
{ nullptr, nullptr, nullptr, nullptr, nullptr, 0 }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -38,20 +38,6 @@ using namespace ::com::sun::star::uno;
|
|||||||
|
|
||||||
namespace xmlscript
|
namespace xmlscript
|
||||||
{
|
{
|
||||||
|
|
||||||
// component operations
|
|
||||||
|
|
||||||
OUString getImplementationName_XMLBasicExporter()
|
|
||||||
{
|
|
||||||
return OUString( "com.sun.star.comp.xmlscript.XMLBasicExporter" );
|
|
||||||
}
|
|
||||||
|
|
||||||
Sequence< OUString > getSupportedServiceNames_XMLBasicExporter()
|
|
||||||
{
|
|
||||||
Sequence< OUString > aNames { "com.sun.star.document.XMLBasicExporter" };
|
|
||||||
return aNames;
|
|
||||||
}
|
|
||||||
|
|
||||||
// XMLBasicExporterBase
|
// XMLBasicExporterBase
|
||||||
|
|
||||||
XMLBasicExporterBase::XMLBasicExporterBase( bool bOasis )
|
XMLBasicExporterBase::XMLBasicExporterBase( bool bOasis )
|
||||||
@@ -365,12 +351,13 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& /
|
|||||||
|
|
||||||
OUString XMLBasicExporter::getImplementationName( ) throw (RuntimeException, std::exception)
|
OUString XMLBasicExporter::getImplementationName( ) throw (RuntimeException, std::exception)
|
||||||
{
|
{
|
||||||
return getImplementationName_XMLBasicExporter();
|
return OUString( "com.sun.star.comp.xmlscript.XMLBasicExporter" );
|
||||||
}
|
}
|
||||||
|
|
||||||
Sequence< OUString > XMLBasicExporter::getSupportedServiceNames( ) throw (RuntimeException, std::exception)
|
Sequence< OUString > XMLBasicExporter::getSupportedServiceNames( ) throw (RuntimeException, std::exception)
|
||||||
{
|
{
|
||||||
return getSupportedServiceNames_XMLBasicExporter();
|
Sequence< OUString > aNames { "com.sun.star.document.XMLBasicExporter" };
|
||||||
|
return aNames;
|
||||||
}
|
}
|
||||||
|
|
||||||
// XMLOasisBasicExporter
|
// XMLOasisBasicExporter
|
||||||
@@ -397,16 +384,16 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& /
|
|||||||
return aNames;
|
return aNames;
|
||||||
}
|
}
|
||||||
|
|
||||||
// component operations
|
|
||||||
|
|
||||||
Reference< XInterface > SAL_CALL create_XMLBasicExporter(
|
|
||||||
Reference< XComponentContext > const & )
|
|
||||||
{
|
|
||||||
return static_cast< lang::XTypeProvider * >( new XMLBasicExporter );
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace xmlscript
|
} // namespace xmlscript
|
||||||
|
|
||||||
|
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
|
||||||
|
com_sun_star_comp_xmlscript_XMLBasicExporter(
|
||||||
|
css::uno::XComponentContext *,
|
||||||
|
css::uno::Sequence<css::uno::Any> const &)
|
||||||
|
{
|
||||||
|
return cppu::acquire(new xmlscript::XMLBasicExporter());
|
||||||
|
}
|
||||||
|
|
||||||
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
|
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
|
||||||
com_sun_star_comp_xmlscript_XMLOasisBasicExporter(
|
com_sun_star_comp_xmlscript_XMLOasisBasicExporter(
|
||||||
css::uno::XComponentContext *,
|
css::uno::XComponentContext *,
|
||||||
|
@@ -22,7 +22,8 @@
|
|||||||
<implementation name="com.sun.star.comp.xml.input.SaxDocumentHandler">
|
<implementation name="com.sun.star.comp.xml.input.SaxDocumentHandler">
|
||||||
<service name="com.sun.star.xml.input.SaxDocumentHandler"/>
|
<service name="com.sun.star.xml.input.SaxDocumentHandler"/>
|
||||||
</implementation>
|
</implementation>
|
||||||
<implementation name="com.sun.star.comp.xmlscript.XMLBasicExporter">
|
<implementation name="com.sun.star.comp.xmlscript.XMLBasicExporter"
|
||||||
|
constructor="com_sun_star_comp_xmlscript_XMLBasicExporter">
|
||||||
<service name="com.sun.star.document.XMLBasicExporter"/>
|
<service name="com.sun.star.document.XMLBasicExporter"/>
|
||||||
</implementation>
|
</implementation>
|
||||||
<implementation name="com.sun.star.comp.xmlscript.XMLBasicImporter"
|
<implementation name="com.sun.star.comp.xmlscript.XMLBasicImporter"
|
||||||
|
Reference in New Issue
Block a user