20 #ifndef INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERSCREEN_HXX
21 #define INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERSCREEN_HXX
27 #include <com/sun/star/frame/XController.hpp>
28 #include <com/sun/star/frame/XModel2.hpp>
29 #include <com/sun/star/task/XJob.hpp>
30 #include <com/sun/star/lang/XServiceInfo.hpp>
31 #include <com/sun/star/drawing/framework/XConfigurationController.hpp>
32 #include <com/sun/star/presentation/XPresentation2.hpp>
33 #include <rtl/ref.hxx>
36 #include <string_view>
42 typedef ::cppu::WeakComponentImplHelper <
43 css::task::XJob, css::lang::XServiceInfo
53 public PresenterScreenJobInterfaceBase
59 virtual void SAL_CALL
disposing()
override;
67 virtual css::uno::Any SAL_CALL
execute(
68 const css::uno::Sequence<css::beans::NamedValue >& Arguments)
override;
70 explicit PresenterScreenJob (
const css::uno::Reference<css::uno::XComponentContext>& rxContext);
88 typedef ::cppu::WeakComponentImplHelper <
89 css::lang::XEventListener
97 const css::uno::Reference<css::uno::XComponentContext>& rxContext,
98 const css::uno::Reference<css::frame::XModel2>& rxModel);
103 virtual void SAL_CALL
disposing()
override;
106 const css::uno::Reference<css::uno::XComponentContext>& rxContext);
123 virtual void SAL_CALL
disposing (
const css::lang::EventObject& rEvent)
override;
126 css::uno::Reference<css::frame::XModel2 >
mxModel;
128 css::uno::WeakReference<css::drawing::framework::XConfigurationController>
134 css::uno::Reference<css::drawing::framework::XResourceFactory>
mxPaneFactory;
135 css::uno::Reference<css::drawing::framework::XResourceFactory>
mxViewFactory;
156 const css::uno::Reference<css::uno::XComponentContext>& rxContext);
161 const css::uno::Reference<css::uno::XComponentContext>& rxContext);
167 const css::uno::Reference<css::uno::XComponentContext>& rxContext,
168 const css::uno::Reference<css::drawing::framework::XResourceId>& rxAnchorId);
176 std::u16string_view rsLayoutName,
177 const css::uno::Reference<css::uno::XComponentContext>& rxContext,
178 const css::uno::Reference<css::drawing::framework::XResourceId>& rxAnchorId);
184 const ::std::vector<css::uno::Any>& rValues,
185 const css::uno::Reference<css::uno::XComponentContext>& rxContext,
186 const css::uno::Reference<css::drawing::framework::XResourceId>& rxAnchorId);
196 const ::std::vector<css::uno::Any>& rValues);
199 const css::uno::Reference<css::uno::XComponentContext>& rxContext,
200 const css::uno::Reference<css::drawing::framework::XResourceId>& rxAnchorId,
201 const OUString& rsPaneURL,
202 const OUString& rsViewURL,
212 const css::uno::Reference<css::presentation::XPresentation2>& rxPresentation)
const;
219 css::uno::Reference<css::drawing::framework::XResourceId>
GetMainPaneId (
220 const css::uno::Reference<css::presentation::XPresentation2>& rxPresentation)
const;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
void ShutdownPresenterScreen()
css::uno::Reference< css::frame::XModel2 > mxModel
css::uno::Reference< css::drawing::framework::XResourceFactory > mxViewFactory
::cppu::WeakComponentImplHelper< css::lang::XEventListener > PresenterScreenInterfaceBase
This is the bootstrap class of the presenter screen.
css::uno::WeakReference< css::uno::XComponentContext > mxContextWeak
::cppu::WeakComponentImplHelper< css::task::XJob, css::lang::XServiceInfo > PresenterScreenJobInterfaceBase
void ProcessLayout(PresenterConfigurationAccess &rConfiguration, std::u16string_view rsLayoutName, const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::drawing::framework::XResourceId > &rxAnchorId)
Read one layout from the configuration and make resource activation requests to bring it on to the sc...
virtual void SAL_CALL disposing() override
static sal_Int32 GetPresenterScreenFromScreen(sal_Int32 nPresentationScreen)
PresenterScreenJob(const PresenterScreenJob &)=delete
This class gives access to the configuration.
void ProcessComponent(const ::std::vector< css::uno::Any > &rValues, const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::drawing::framework::XResourceId > &rxAnchorId)
Called by ProcessLayout for a single entry of a Layouts configuration list.
OUString msAccessibleTitle
void SetupView(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::drawing::framework::XResourceId > &rxAnchorId, const OUString &rsPaneURL, const OUString &rsViewURL, const PresenterPaneContainer::ViewInitializationFunction &rViewInitialization)
The controller of the presenter screen is responsible for telling the individual views which slides t...
void SwitchMonitors()
Switch / converse monitors between presenter view and slide output.
void SetupConfiguration(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::drawing::framework::XResourceId > &rxAnchorId)
Read the current layout from the configuration and call ProcessLayout to bring it on to the screen...
void InitializePresenterScreen()
Make the presenter screen visible.
css::uno::Reference< css::uno::XComponentContext > mxComponentContext
void SetupPaneFactory(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
Create and initialize the factory for presenter view specific panes.
sal_Int32 GetPresenterScreenNumber(const css::uno::Reference< css::presentation::XPresentation2 > &rxPresentation) const
Return the built-in screen number on the presentation will normally display the presenter console...
::std::function< void(const css::uno::Reference< css::drawing::framework::XView > &)> ViewInitializationFunction
::std::map< OUString, ViewDescriptor > ViewDescriptorContainer
css::uno::Reference< css::drawing::framework::XResourceId > GetMainPaneId(const css::uno::Reference< css::presentation::XPresentation2 > &rxPresentation) const
Create a resource id for the full screen background pane so that it is displayed on another screen th...
virtual css::uno::Any SAL_CALL execute(const css::uno::Sequence< css::beans::NamedValue > &Arguments) override
virtual ~PresenterScreenJob() override
css::uno::Reference< css::frame::XController > mxController
css::uno::Reference< css::drawing::framework::XResourceFactory > mxPaneFactory
void ProcessViewDescriptions(PresenterConfigurationAccess &rConfiguration)
Read the view descriptions from the configuration.
::rtl::Reference< PresenterPaneContainer > mpPaneContainer
::rtl::Reference< PresenterController > mpPresenterController
The PresenterScreenJob service is instantiated every time a document is created or loaded...
PresenterScreenJob & operator=(const PresenterScreenJob &)=delete
PresenterScreen & operator=(const PresenterScreen &)=delete
css::uno::WeakReference< css::drawing::framework::XConfigurationController > mxConfigurationControllerWeak
ViewDescriptorContainer maViewDescriptors
void SetupViewFactory(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
Create and initialize the factory for presenter view specific views.
css::uno::Reference< css::drawing::framework::XConfiguration > mxSavedConfiguration
void RequestShutdownPresenterScreen()
Do not call ShutdownPresenterScreen() directly.
static bool isPresenterScreenEnabled(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
PresenterScreen(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::frame::XModel2 > &rxModel)
virtual void SAL_CALL disposing() override
void ProcessViewDescription(const ::std::vector< css::uno::Any > &rValues)
Called by ProcessViewDescriptions for a single entry.
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual ~PresenterScreen() override