From 76e80a567fe41f885224d01c7dd22de7ee90606d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 20 Apr 2023 15:01:12 +0200 Subject: [PATCH] Fix OrcusFormatDetect XServiceInfo Change-Id: I7c54ec6de8c6bd3a5ed67809404eee65aa5af695 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150697 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sc/source/filter/orcus/filterdetect.cxx | 9 +++++---- 1 file 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 #include #include +#include #include @@ -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 OrcusFormatDetect::getSupportedServiceNames() { - return css::uno::Sequence(); + return {"com.sun.star.frame.ExtendedTypeDetection"}; } OUString OrcusFormatDetect::detect(css::uno::Sequence& rMediaDescSeq)