diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-07-11 20:37:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-12 20:02:14 +0200 |
commit | 74f4a1e4a8898b87e4b90804d369f1bfa49e6cbb (patch) | |
tree | 0df13e39da4a88bfde581b0f0bdb2a556b7c6c5d /filter/source/svg/svgwriter.cxx | |
parent | 466e63ed692974c1b7529f22574538178e8928af (diff) |
filter/svg: create instances with uno constructors
See tdf#74608 for motivation.
Change-Id: I6a049364726327d1be10f72174aced5bade271a4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98571
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter/source/svg/svgwriter.cxx')
-rw-r--r-- | filter/source/svg/svgwriter.cxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx index 4baddb4743e9..d46c77ff37ea 100644 --- a/filter/source/svg/svgwriter.cxx +++ b/filter/source/svg/svgwriter.cxx @@ -22,6 +22,7 @@ #include "svgwriter.hxx" #include <comphelper/base64.hxx> +#include <cppuhelper/supportsservice.hxx> #include <sal/log.hxx> #include <vcl/unohelp.hxx> #include <vcl/cvtgrf.hxx> @@ -3839,4 +3840,25 @@ void SAL_CALL SVGWriter::write( const Reference<XDocumentHandler>& rxDocHandler, pWriter->writeMtf( aMtf ); } +// XServiceInfo +sal_Bool SVGWriter::supportsService(const OUString& sServiceName) +{ + return cppu::supportsService(this, sServiceName); +} +OUString SVGWriter::getImplementationName() +{ + return "com.sun.star.comp.Draw.SVGWriter"; +} +css::uno::Sequence< OUString > SVGWriter::getSupportedServiceNames() +{ + return { "com.sun.star.svg.SVGWriter" }; +} + +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* +filter_SVGWriter_get_implementation( + css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const& args) +{ + return cppu::acquire(new SVGWriter(args, context)); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |