20#ifndef INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERPANEFACTORY_HXX
21#define INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERPANEFACTORY_HXX
25#include <com/sun/star/frame/XController.hpp>
26#include <com/sun/star/drawing/framework/XConfigurationController.hpp>
27#include <com/sun/star/drawing/framework/XPane.hpp>
28#include <com/sun/star/drawing/framework/XResourceFactory.hpp>
29#include <com/sun/star/uno/XComponentContext.hpp>
34namespace sd {
class DrawController; }
38class PresenterController;
40typedef ::cppu::WeakComponentImplHelper <
41 css::drawing::framework::XResourceFactory
55 =
u"private:resource/pane/Presenter/Pane1";
57 =
u"private:resource/pane/Presenter/Pane2";
58 static constexpr OUStringLiteral
msNotesPaneURL =
u"private:resource/pane/Presenter/Pane3";
59 static constexpr OUStringLiteral
msToolBarPaneURL =
u"private:resource/pane/Presenter/Pane4";
61 =
u"private:resource/pane/Presenter/Pane5";
69 static css::uno::Reference<css::drawing::framework::XResourceFactory>
Create (
70 const css::uno::Reference<css::uno::XComponentContext>& rxContext,
72 const ::rtl::Reference<PresenterController>& rpPresenterController);
75 virtual void SAL_CALL
disposing()
override;
79 virtual css::uno::Reference<css::drawing::framework::XResource>
81 const css::uno::Reference<
82 css::drawing::framework::XResourceId>& rxPaneId)
override;
86 const css::uno::Reference<css::drawing::framework::XResource>&
91 css::uno::WeakReference<css::drawing::framework::XConfigurationController>
94 typedef ::std::map<OUString, css::uno::Reference<css::drawing::framework::XResource> >
99 const css::uno::Reference<css::uno::XComponentContext>& rxContext,
104 css::uno::Reference<css::drawing::framework::XResource>
CreatePane (
105 const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId);
106 css::uno::Reference<css::drawing::framework::XResource>
CreatePane (
107 const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId,
108 const css::uno::Reference<css::drawing::framework::XPane>& rxParentPane,
109 const bool bIsSpritePane);
The PresenterPaneFactory provides a fixed set of panes.
virtual void SAL_CALL disposing() override
void Register(const rtl::Reference<::sd::DrawController > &rxController)
std::unique_ptr< ResourceContainer > mpResourceCache
::std::map< OUString, css::uno::Reference< css::drawing::framework::XResource > > ResourceContainer
virtual css::uno::Reference< css::drawing::framework::XResource > SAL_CALL createResource(const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId) override
virtual void SAL_CALL releaseResource(const css::uno::Reference< css::drawing::framework::XResource > &rxPane) override
static constexpr OUStringLiteral msNotesPaneURL
static constexpr OUStringLiteral msNextSlidePreviewPaneURL
::rtl::Reference< PresenterController > mpPresenterController
static constexpr OUStringLiteral msToolBarPaneURL
css::uno::WeakReference< css::uno::XComponentContext > mxComponentContextWeak
static constexpr OUStringLiteral msCurrentSlidePreviewPaneURL
css::uno::Reference< css::drawing::framework::XResource > CreatePane(const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId)
void ThrowIfDisposed() const
static css::uno::Reference< css::drawing::framework::XResourceFactory > Create(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const rtl::Reference<::sd::DrawController > &rxController, const ::rtl::Reference< PresenterController > &rpPresenterController)
Create a new instance of this class and register it as resource factory in the drawing framework of t...
virtual ~PresenterPaneFactory() override
css::uno::WeakReference< css::drawing::framework::XConfigurationController > mxConfigurationControllerWeak
css::uno::Reference< css::drawing::framework::XResource > CreatePane(const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId, const css::uno::Reference< css::drawing::framework::XPane > &rxParentPane, const bool bIsSpritePane)
PresenterPaneFactory(const css::uno::Reference< css::uno::XComponentContext > &rxContext, ::rtl::Reference< PresenterController > xPresenterController)
static constexpr OUStringLiteral msSlideSorterPaneURL
::cppu::WeakComponentImplHelper< css::drawing::framework::XResourceFactory > PresenterPaneFactoryInterfaceBase