diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-04-20 15:01:12 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-04-21 08:49:20 +0200 |
commit | 76e80a567fe41f885224d01c7dd22de7ee90606d (patch) | |
tree | f99fb9c68bac4ab7434c8fd792fa52a697b1025f /sc | |
parent | 05425f73bfa41d3f7591461e2ad0beb4fafc39b4 (diff) |
Fix OrcusFormatDetect XServiceInfo
Change-Id: I7c54ec6de8c6bd3a5ed67809404eee65aa5af695
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150697
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/orcus/filterdetect.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sc/source/filter/orcus/filterdetect.cxx b/sc/source/filter/orcus/filterdetect.cxx index e711d39d3ac5..5750932e95d7 100644 --- a/sc/source/filter/orcus/filterdetect.cxx +++ b/sc/source/filter/orcus/filterdetect.cxx @@ -11,6 +11,7 @@ #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/io/XInputStream.hpp> #include <cppuhelper/implbase.hxx> +#include <cppuhelper/supportsservice.hxx> #include <unotools/mediadescriptor.hxx> @@ -47,17 +48,17 @@ OrcusFormatDetect::OrcusFormatDetect() OUString OrcusFormatDetect::getImplementationName() { - return OUString(); + return "com.sun.star.comp.sc.OrcusFilterDetect"; } -sal_Bool OrcusFormatDetect::supportsService(const OUString& /*rServiceName*/) +sal_Bool OrcusFormatDetect::supportsService(const OUString& rServiceName) { - return false; + return cppu::supportsService(this, rServiceName); } css::uno::Sequence<OUString> OrcusFormatDetect::getSupportedServiceNames() { - return css::uno::Sequence<OUString>(); + return {"com.sun.star.frame.ExtendedTypeDetection"}; } OUString OrcusFormatDetect::detect(css::uno::Sequence<css::beans::PropertyValue>& rMediaDescSeq) |