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>
30 #include <rtl/ref.hxx>
38 typedef ::cppu::WeakComponentImplHelper <
39 css::drawing::framework::XResourceFactory
49 public PresenterPaneFactoryInterfaceBase
53 =
u"private:resource/pane/Presenter/Pane1";
55 =
u"private:resource/pane/Presenter/Pane2";
56 static constexpr OUStringLiteral
msNotesPaneURL =
u"private:resource/pane/Presenter/Pane3";
57 static constexpr OUStringLiteral
msToolBarPaneURL =
u"private:resource/pane/Presenter/Pane4";
59 =
u"private:resource/pane/Presenter/Pane5";
67 static css::uno::Reference<css::drawing::framework::XResourceFactory>
Create (
68 const css::uno::Reference<css::uno::XComponentContext>& rxContext,
69 const css::uno::Reference<css::frame::XController>& rxController,
70 const ::rtl::Reference<PresenterController>& rpPresenterController);
73 virtual void SAL_CALL
disposing()
override;
77 virtual css::uno::Reference<css::drawing::framework::XResource>
79 const css::uno::Reference<
80 css::drawing::framework::XResourceId>& rxPaneId)
override;
84 const css::uno::Reference<css::drawing::framework::XResource>&
89 css::uno::WeakReference<css::drawing::framework::XConfigurationController>
92 typedef ::std::map<OUString, css::uno::Reference<css::drawing::framework::XResource> >
97 const css::uno::Reference<css::uno::XComponentContext>& rxContext,
98 const ::rtl::Reference<PresenterController>& rpPresenterController);
100 void Register (
const css::uno::Reference<css::frame::XController>& rxController);
102 css::uno::Reference<css::drawing::framework::XResource>
CreatePane (
103 const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId);
104 css::uno::Reference<css::drawing::framework::XResource>
CreatePane (
105 const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId,
106 const css::uno::Reference<css::drawing::framework::XPane>& rxParentPane,
107 const bool bIsSpritePane);
static constexpr OUStringLiteral msCurrentSlidePreviewPaneURL
::cppu::WeakComponentImplHelper< css::drawing::framework::XResourceFactory > PresenterPaneFactoryInterfaceBase
static constexpr OUStringLiteral msToolBarPaneURL
PresenterPaneFactory(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const ::rtl::Reference< PresenterController > &rpPresenterController)
The controller of the presenter screen is responsible for telling the individual views which slides t...
virtual void SAL_CALL disposing() override
static constexpr OUStringLiteral msNotesPaneURL
::std::map< OUString, css::uno::Reference< css::drawing::framework::XResource > > ResourceContainer
static constexpr OUStringLiteral msNextSlidePreviewPaneURL
::rtl::Reference< PresenterController > mpPresenterController
std::unique_ptr< ResourceContainer > mpResourceCache
css::uno::Reference< css::drawing::framework::XResource > CreatePane(const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId)
void ThrowIfDisposed() const
css::uno::WeakReference< css::uno::XComponentContext > mxComponentContextWeak
The PresenterPaneFactory provides a fixed set of panes.
static constexpr OUStringLiteral msSlideSorterPaneURL
void Register(const css::uno::Reference< css::frame::XController > &rxController)
virtual ~PresenterPaneFactory() override
static css::uno::Reference< css::drawing::framework::XResourceFactory > Create(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::frame::XController > &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...
css::uno::WeakReference< css::drawing::framework::XConfigurationController > mxConfigurationControllerWeak
virtual void SAL_CALL releaseResource(const css::uno::Reference< css::drawing::framework::XResource > &rxPane) override
virtual css::uno::Reference< css::drawing::framework::XResource > SAL_CALL createResource(const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId) override