sc/source/filter/orcus/filterdetect.cxx |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

New commits:
commit 76e80a567fe41f885224d01c7dd22de7ee90606d
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Thu Apr 20 15:01:12 2023 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Fri Apr 21 08:49:20 2023 +0200

    Fix OrcusFormatDetect XServiceInfo
    
    Change-Id: I7c54ec6de8c6bd3a5ed67809404eee65aa5af695
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150697
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

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)

Reply via email to