diff options
Diffstat (limited to 'filter/source/xsltfilter/LibXSLTTransformer.cxx')
-rw-r--r-- | filter/source/xsltfilter/LibXSLTTransformer.cxx | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/filter/source/xsltfilter/LibXSLTTransformer.cxx b/filter/source/xsltfilter/LibXSLTTransformer.cxx index 1403664d4331..c3fc742bae03 100644 --- a/filter/source/xsltfilter/LibXSLTTransformer.cxx +++ b/filter/source/xsltfilter/LibXSLTTransformer.cxx @@ -25,6 +25,7 @@ #include <libexslt/exslt.h> #include <cppuhelper/factory.hxx> +#include <cppuhelper/supportsservice.hxx> #include <osl/file.hxx> #include <com/sun/star/uno/Any.hxx> @@ -373,6 +374,20 @@ namespace XSLT { } + // XServiceInfo + sal_Bool LibXSLTTransformer::supportsService(const OUString& sServiceName) + { + return cppu::supportsService(this, sServiceName); + } + OUString LibXSLTTransformer::getImplementationName() + { + return "com.sun.star.comp.documentconversion.XSLTFilter"; + } + css::uno::Sequence< OUString > LibXSLTTransformer::getSupportedServiceNames() + { + return { "com.sun.star.documentconversion.XSLTFilter" }; + } + void LibXSLTTransformer::setInputStream( const css::uno::Reference<XInputStream>& inputStream) @@ -523,5 +538,13 @@ namespace XSLT } } } + +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* +filter_LibXSLTTransformer_get_implementation( + css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) +{ + return cppu::acquire(new XSLT::LibXSLTTransformer(context)); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |