summaryrefslogtreecommitdiff
path: root/reportdesign/source/filter/xml/xmlExportDocumentHandler.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/xmlExportDocumentHandler.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/xmlExportDocumentHandler.cxx')
-rw-r--r--reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx29
1 files changed, 10 insertions, 19 deletions
diff --git a/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx b/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
index 7ba132baf335..5e02ded4d7b9 100644
--- a/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
+++ b/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
@@ -90,7 +90,7 @@ IMPLEMENT_GET_IMPLEMENTATION_ID(ExportDocumentHandler)
OUString SAL_CALL ExportDocumentHandler::getImplementationName( )
{
- return getImplementationName_Static();
+ return "com.sun.star.comp.report.ExportDocumentHandler";
}
sal_Bool SAL_CALL ExportDocumentHandler::supportsService( const OUString& ServiceName )
@@ -103,26 +103,9 @@ uno::Sequence< OUString > SAL_CALL ExportDocumentHandler::getSupportedServiceNam
uno::Sequence< OUString > aSupported;
if ( m_xServiceInfo.is() )
aSupported = m_xServiceInfo->getSupportedServiceNames();
- return ::comphelper::concatSequences(getSupportedServiceNames_static(),aSupported);
-}
-
-OUString ExportDocumentHandler::getImplementationName_Static( )
-{
- return "com.sun.star.comp.report.ExportDocumentHandler";
-}
-
-
-uno::Sequence< OUString > ExportDocumentHandler::getSupportedServiceNames_static( )
-{
- uno::Sequence< OUString > aSupported { "com.sun.star.report.ExportDocumentHandler" };
- return aSupported;
+ return ::comphelper::concatSequences(uno::Sequence< OUString > { "com.sun.star.report.ExportDocumentHandler" },aSupported);
}
-
-uno::Reference< uno::XInterface > ExportDocumentHandler::create( const uno::Reference< uno::XComponentContext >& _rxContext )
-{
- return *(new ExportDocumentHandler( _rxContext ));
-}
// xml::sax::XDocumentHandler:
void SAL_CALL ExportDocumentHandler::startDocument()
{
@@ -419,4 +402,12 @@ void ExportDocumentHandler::exportTableRows()
} // namespace rptxml
+extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
+reportdesign_ExportDocumentHandler_get_implementation(
+ css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&)
+{
+ return cppu::acquire(new rptxml::ExportDocumentHandler(context));
+}
+
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */