summaryrefslogtreecommitdiff
path: root/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-07-22 21:21:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-07-24 08:32:55 +0200
commitae5afcea076d2e90dcc48771c1008320f0334f06 (patch)
tree0f00188ef71b705ef41acfe7292f207416c46057 /reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx
parentd5e37fd8461cd07eeb0cbc69464fc106c5ef16b4 (diff)
reportdesign: create instances with uno constructors
See tdf#74608 for motivation. Also delete dead .component file Change-Id: I682009587e116bde88e43e80875f8051414ba447 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99257 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx')
-rw-r--r--reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx20
1 files changed, 6 insertions, 14 deletions
diff --git a/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx b/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx
index b4533aa337cb..95fd297bc657 100644
--- a/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx
+++ b/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx
@@ -63,7 +63,7 @@ IMPLEMENT_GET_IMPLEMENTATION_ID(ImportDocumentHandler)
OUString SAL_CALL ImportDocumentHandler::getImplementationName( )
{
- return getImplementationName_Static();
+ return "com.sun.star.comp.report.ImportDocumentHandler";
}
sal_Bool SAL_CALL ImportDocumentHandler::supportsService( const OUString& ServiceName )
@@ -76,25 +76,17 @@ uno::Sequence< OUString > SAL_CALL ImportDocumentHandler::getSupportedServiceNam
uno::Sequence< OUString > aSupported;
if ( m_xServiceInfo.is() )
aSupported = m_xServiceInfo->getSupportedServiceNames();
- return ::comphelper::concatSequences(getSupportedServiceNames_static(),aSupported);
+ return ::comphelper::concatSequences( uno::Sequence<OUString> { "com.sun.star.report.ImportDocumentHandler" }, aSupported);
}
-OUString ImportDocumentHandler::getImplementationName_Static( )
-{
- return "com.sun.star.comp.report.ImportDocumentHandler";
-}
-uno::Sequence< OUString > ImportDocumentHandler::getSupportedServiceNames_static( )
+extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
+reportdesign_ImportDocumentHandler_get_implementation(
+ css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&)
{
- uno::Sequence< OUString > aSupported { "com.sun.star.report.ImportDocumentHandler" };
- return aSupported;
+ return cppu::acquire(new ImportDocumentHandler(context));
}
-
-uno::Reference< uno::XInterface > ImportDocumentHandler::create( const uno::Reference< uno::XComponentContext >& _rxContext )
-{
- return *(new ImportDocumentHandler( _rxContext ));
-}
// xml::sax::XDocumentHandler:
void SAL_CALL ImportDocumentHandler::startDocument()
{