diff options
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/presenter/PresenterHelper.cxx | 13 | ||||
-rw-r--r-- | sd/source/ui/presenter/PresenterHelper.hxx | 6 | ||||
-rw-r--r-- | sd/source/ui/presenter/PresenterPreviewCache.cxx | 13 | ||||
-rw-r--r-- | sd/source/ui/presenter/PresenterPreviewCache.hxx | 6 |
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 ( |