tdf#74608 Constructor function for XMLOasisBasicExporter
Change-Id: If5409621f515918e715e3c0b71ec1b3d6fd1ef92 Reviewed-on: https://gerrit.libreoffice.org/24518 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
committed by
Stephan Bergmann
parent
7aa67d528b
commit
b8c04ea449
@@ -50,14 +50,6 @@ OUString SAL_CALL getImplementationName_XMLBasicExporter();
|
||||
css::uno::Reference<css::uno::XInterface> SAL_CALL create_XMLBasicExporter(
|
||||
css::uno::Reference<css::uno::XComponentContext> const & xContext);
|
||||
|
||||
css::uno::Sequence<OUString> SAL_CALL
|
||||
getSupportedServiceNames_XMLOasisBasicExporter();
|
||||
|
||||
OUString SAL_CALL getImplementationName_XMLOasisBasicExporter();
|
||||
|
||||
css::uno::Reference<css::uno::XInterface> SAL_CALL create_XMLOasisBasicExporter(
|
||||
css::uno::Reference<css::uno::XComponentContext> const & xContext);
|
||||
|
||||
css::uno::Sequence<OUString> SAL_CALL
|
||||
getSupportedServiceNames_XMLBasicImporter();
|
||||
|
||||
|
@@ -37,11 +37,6 @@ namespace xmlscript
|
||||
getSupportedServiceNames_XMLBasicExporter, ::cppu::createSingleComponentFactory,
|
||||
nullptr, 0
|
||||
},
|
||||
{
|
||||
create_XMLOasisBasicExporter, getImplementationName_XMLOasisBasicExporter,
|
||||
getSupportedServiceNames_XMLOasisBasicExporter, ::cppu::createSingleComponentFactory,
|
||||
nullptr, 0
|
||||
},
|
||||
{
|
||||
create_XMLBasicImporter, getImplementationName_XMLBasicImporter,
|
||||
getSupportedServiceNames_XMLBasicImporter, ::cppu::createSingleComponentFactory,
|
||||
|
@@ -52,17 +52,6 @@ namespace xmlscript
|
||||
return aNames;
|
||||
}
|
||||
|
||||
OUString getImplementationName_XMLOasisBasicExporter()
|
||||
{
|
||||
return OUString( "com.sun.star.comp.xmlscript.XMLOasisBasicExporter" );
|
||||
}
|
||||
|
||||
Sequence< OUString > getSupportedServiceNames_XMLOasisBasicExporter()
|
||||
{
|
||||
Sequence< OUString > aNames { "com.sun.star.document.XMLOasisBasicExporter" };
|
||||
return aNames;
|
||||
}
|
||||
|
||||
// XMLBasicExporterBase
|
||||
|
||||
XMLBasicExporterBase::XMLBasicExporterBase( bool bOasis )
|
||||
@@ -399,12 +388,13 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& /
|
||||
|
||||
OUString XMLOasisBasicExporter::getImplementationName( ) throw (RuntimeException, std::exception)
|
||||
{
|
||||
return getImplementationName_XMLOasisBasicExporter();
|
||||
return OUString( "com.sun.star.comp.xmlscript.XMLOasisBasicExporter" );
|
||||
}
|
||||
|
||||
Sequence< OUString > XMLOasisBasicExporter::getSupportedServiceNames( ) throw (RuntimeException, std::exception)
|
||||
{
|
||||
return getSupportedServiceNames_XMLOasisBasicExporter();
|
||||
Sequence< OUString > aNames { "com.sun.star.document.XMLOasisBasicExporter" };
|
||||
return aNames;
|
||||
}
|
||||
|
||||
// component operations
|
||||
@@ -415,12 +405,15 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& /
|
||||
return static_cast< lang::XTypeProvider * >( new XMLBasicExporter );
|
||||
}
|
||||
|
||||
Reference< XInterface > SAL_CALL create_XMLOasisBasicExporter(
|
||||
Reference< XComponentContext > const & )
|
||||
{
|
||||
return static_cast< lang::XTypeProvider * >( new XMLOasisBasicExporter );
|
||||
}
|
||||
|
||||
} // namespace xmlscript
|
||||
|
||||
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
|
||||
com_sun_star_comp_xmlscript_XMLOasisBasicExporter(
|
||||
css::uno::XComponentContext *,
|
||||
css::uno::Sequence<css::uno::Any> const &)
|
||||
{
|
||||
|
||||
return cppu::acquire(new xmlscript::XMLOasisBasicExporter());
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
Reference in New Issue
Block a user