From 7c36c5fdfdfeab9d15ea733fe2a831cd4ff25d27 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 17 Apr 2023 21:33:37 +0200 Subject: Some missing XServiceInfo implementations Change-Id: I1cf871b40f9f4020147dac0456ebeed3de0438e6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150533 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sd/source/ui/presenter/PresenterHelper.cxx | 13 +++++++++++++ sd/source/ui/presenter/PresenterHelper.hxx | 6 ++++++ sd/source/ui/presenter/PresenterPreviewCache.cxx | 13 +++++++++++++ sd/source/ui/presenter/PresenterPreviewCache.hxx | 6 ++++++ 4 files changed, 38 insertions(+) (limited to 'sd/source') 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 +#include #include #include #include @@ -54,6 +55,18 @@ PresenterHelper::~PresenterHelper() void SAL_CALL PresenterHelper::initialize (const Sequence&) {} +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 PresenterHelper::getSupportedServiceNames() { + return {"com.sun.star.drawing.PresenterHelper"}; +} + //----- XPaneHelper ---------------------------------------------------- Reference 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 #include +#include #include 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& rArguments) override; + OUString SAL_CALL getImplementationName() override; + sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override; + css::uno::Sequence SAL_CALL getSupportedServiceNames() override; + // XPresenterHelper virtual css::uno::Reference 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 #include #include +#include #include #include @@ -91,6 +92,18 @@ void SAL_CALL PresenterPreviewCache::initialize (const Sequence& 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 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 #include +#include #include #include #include @@ -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& rArguments) override; + OUString SAL_CALL getImplementationName() override; + sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override; + css::uno::Sequence SAL_CALL getSupportedServiceNames() override; + // XSlidePreviewCache virtual void SAL_CALL setDocumentSlides ( -- cgit v1.2.3