summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-04-17 21:33:37 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-04-18 07:38:29 +0200
commit7c36c5fdfdfeab9d15ea733fe2a831cd4ff25d27 (patch)
tree5142aa4d6a3a120a443c0248af38203116ee4370 /sd/source
parent3c4f53bc19ab90a98edb75a2dc554c917e36ab11 (diff)
Some missing XServiceInfo implementations
Change-Id: I1cf871b40f9f4020147dac0456ebeed3de0438e6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150533 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/presenter/PresenterHelper.cxx13
-rw-r--r--sd/source/ui/presenter/PresenterHelper.hxx6
-rw-r--r--sd/source/ui/presenter/PresenterPreviewCache.cxx13
-rw-r--r--sd/source/ui/presenter/PresenterPreviewCache.hxx6
4 files changed, 38 insertions, 0 deletions
diff --git a/sd/source/ui/presenter/PresenterHelper.cxx b/sd/source/ui/presenter/PresenterHelper.cxx
index 5be9f2964016..cc85e6353f79 100644
--- a/sd/source/ui/presenter/PresenterHelper.cxx
+++ b/sd/source/ui/presenter/PresenterHelper.cxx
@@ -24,6 +24,7 @@
#include "PresenterHelper.hxx"
#include "PresenterCanvas.hxx"
#include <cppcanvas/vclfactory.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/awt/XVclWindowPeer.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <toolkit/helper/vclunohelper.hxx>
@@ -54,6 +55,18 @@ PresenterHelper::~PresenterHelper()
void SAL_CALL PresenterHelper::initialize (const Sequence<Any>&) {}
+OUString PresenterHelper::getImplementationName() {
+ return "com.sun.star.comp.Draw.PresenterHelper";
+}
+
+sal_Bool PresenterHelper::supportsService(OUString const & ServiceName) {
+ return cppu::supportsService(this, ServiceName);
+}
+
+css::uno::Sequence<OUString> PresenterHelper::getSupportedServiceNames() {
+ return {"com.sun.star.drawing.PresenterHelper"};
+}
+
//----- XPaneHelper ----------------------------------------------------
Reference<awt::XWindow> SAL_CALL PresenterHelper::createWindow (
diff --git a/sd/source/ui/presenter/PresenterHelper.hxx b/sd/source/ui/presenter/PresenterHelper.hxx
index cee7e39fb349..5450447dd60e 100644
--- a/sd/source/ui/presenter/PresenterHelper.hxx
+++ b/sd/source/ui/presenter/PresenterHelper.hxx
@@ -21,6 +21,7 @@
#include <com/sun/star/drawing/XPresenterHelper.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
+#include <com/sun/star/lang/XServiceInfo.hpp>
#include <comphelper/compbase.hxx>
namespace com::sun::star::uno { class XComponentContext; }
@@ -29,6 +30,7 @@ namespace sd::presenter {
typedef comphelper::WeakComponentImplHelper<
css::lang::XInitialization,
+ css::lang::XServiceInfo,
css::drawing::XPresenterHelper
> PresenterHelperInterfaceBase;
@@ -48,6 +50,10 @@ public:
virtual void SAL_CALL initialize (const css::uno::Sequence<css::uno::Any>& rArguments) override;
+ OUString SAL_CALL getImplementationName() override;
+ sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
+ css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
+
// XPresenterHelper
virtual css::uno::Reference<css::awt::XWindow> SAL_CALL createWindow (
diff --git a/sd/source/ui/presenter/PresenterPreviewCache.cxx b/sd/source/ui/presenter/PresenterPreviewCache.cxx
index fd29cdbfac1b..26068492f4fc 100644
--- a/sd/source/ui/presenter/PresenterPreviewCache.cxx
+++ b/sd/source/ui/presenter/PresenterPreviewCache.cxx
@@ -24,6 +24,7 @@
#include <vcl/bitmapex.hxx>
#include <sdpage.hxx>
#include <cppcanvas/vclfactory.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/drawing/XDrawPage.hpp>
#include <osl/diagnose.h>
@@ -91,6 +92,18 @@ void SAL_CALL PresenterPreviewCache::initialize (const Sequence<Any>& rArguments
throw RuntimeException();
}
+OUString PresenterPreviewCache::getImplementationName() {
+ return "com.sun.star.comp.Draw.PresenterPreviewCache";
+}
+
+sal_Bool PresenterPreviewCache::supportsService(OUString const & ServiceName) {
+ return cppu::supportsService(this, ServiceName);
+}
+
+css::uno::Sequence<OUString> PresenterPreviewCache::getSupportedServiceNames() {
+ return {"com.sun.star.drawing.PresenterPreviewCache"};
+}
+
//----- XSlidePreviewCache ----------------------------------------------------
void SAL_CALL PresenterPreviewCache::setDocumentSlides (
diff --git a/sd/source/ui/presenter/PresenterPreviewCache.hxx b/sd/source/ui/presenter/PresenterPreviewCache.hxx
index 4f8c522804c3..9c4e5be7145a 100644
--- a/sd/source/ui/presenter/PresenterPreviewCache.hxx
+++ b/sd/source/ui/presenter/PresenterPreviewCache.hxx
@@ -21,6 +21,7 @@
#include <com/sun/star/drawing/XSlidePreviewCache.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
+#include <com/sun/star/lang/XServiceInfo.hpp>
#include <tools/gen.hxx>
#include <comphelper/compbase.hxx>
#include <memory>
@@ -31,6 +32,7 @@ namespace sd::presenter {
typedef comphelper::WeakComponentImplHelper<
css::lang::XInitialization,
+ css::lang::XServiceInfo,
css::drawing::XSlidePreviewCache
> PresenterPreviewCacheInterfaceBase;
@@ -52,6 +54,10 @@ public:
*/
virtual void SAL_CALL initialize (const css::uno::Sequence<css::uno::Any>& rArguments) override;
+ OUString SAL_CALL getImplementationName() override;
+ sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
+ css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
+
// XSlidePreviewCache
virtual void SAL_CALL setDocumentSlides (