20#ifndef INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERPANECONTAINER_HXX
21#define INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERPANECONTAINER_HXX
24#include <com/sun/star/awt/XWindow.hpp>
25#include <com/sun/star/drawing/XPresenterHelper.hpp>
26#include <com/sun/star/drawing/framework/XResourceId.hpp>
27#include <com/sun/star/drawing/framework/XView.hpp>
28#include <com/sun/star/uno/XComponentContext.hpp>
39class PresenterPaneBase;
42typedef ::cppu::WeakComponentImplHelper <
43 css::lang::XEventListener
56 const css::uno::Reference<css::uno::XComponentContext>& rxContext);
61 virtual void SAL_CALL
disposing()
override;
63 typedef ::std::function<void (
const css::uno::Reference<css::drawing::framework::XView>&)>
77 css::uno::Reference<css::drawing::framework::XResourceId>
mxPaneId;
80 css::uno::Reference<css::drawing::framework::XView>
mxView;
94 typedef ::std::vector<SharedPaneDescriptor>
PaneList;
98 const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId,
99 const OUString& rsViewURL,
100 const OUString& rsTitle,
101 const OUString& rsAccessibleTitle,
102 const bool bIsOpaque,
109 const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId,
110 const css::uno::Reference<css::awt::XWindow>& rxBorderWindow);
113 const css::uno::Reference<css::drawing::framework::XView>& rxView);
116 const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId);
119 const css::uno::Reference<css::drawing::framework::XView>& rxView);
125 const css::uno::Reference<css::awt::XWindow>& rxBorderWindow);
131 const css::uno::Reference<css::awt::XWindow>& rxBorderWindow);
140 css::drawing::framework::XResourceId>& rxPaneId);
151 const css::lang::EventObject& rEvent)
override;
Each pane descriptor holds references to one pane and the view displayed in this pane as well as the ...
OUString msAccessibleTitleTemplate
css::uno::Reference< css::awt::XWindow > mxBorderWindow
void SetActivationState(const bool bIsActive)
css::uno::Reference< css::awt::XWindow > mxContentWindow
css::uno::Reference< css::drawing::framework::XView > mxView
ViewInitializationFunction maViewInitialization
css::uno::Reference< css::drawing::framework::XResourceId > mxPaneId
::rtl::Reference< PresenterPaneBase > mxPane
This class could also be called PresenterPaneAndViewContainer because it stores not only references t...
SharedPaneDescriptor FindPaneId(const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId)
Find the pane whose resource id is identical to the given one.
css::uno::Reference< css::drawing::XPresenterHelper > mxPresenterHelper
SharedPaneDescriptor RemovePane(const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId)
SharedPaneDescriptor FindViewURL(const OUString &rsViewURL)
SharedPaneDescriptor StoreBorderWindow(const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId, const css::uno::Reference< css::awt::XWindow > &rxBorderWindow)
virtual ~PresenterPaneContainer() override
virtual void SAL_CALL disposing() override
void PreparePane(const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId, const OUString &rsViewURL, const OUString &rsTitle, const OUString &rsAccessibleTitle, const bool bIsOpaque, const ViewInitializationFunction &rViewInitialization)
SharedPaneDescriptor RemoveView(const css::uno::Reference< css::drawing::framework::XView > &rxView)
SharedPaneDescriptor StorePane(const rtl::Reference< PresenterPaneBase > &rxPane)
OUString GetPaneURLForViewURL(const OUString &rsViewURL)
::std::vector< SharedPaneDescriptor > PaneList
PresenterPaneContainer & operator=(const PresenterPaneContainer &)=delete
SharedPaneDescriptor FindContentWindow(const css::uno::Reference< css::awt::XWindow > &rxBorderWindow)
Find the pane whose border window is identical to the given content window.
::std::function< void(const css::uno::Reference< css::drawing::framework::XView > &)> ViewInitializationFunction
std::shared_ptr< PaneDescriptor > SharedPaneDescriptor
PresenterPaneContainer(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
SharedPaneDescriptor FindBorderWindow(const css::uno::Reference< css::awt::XWindow > &rxBorderWindow)
Find the pane whose border window is identical to the given border window.
SharedPaneDescriptor FindPaneURL(const OUString &rsPaneURL)
Find the pane whose pane URL is identical to the given URL string.
SharedPaneDescriptor StoreView(const css::uno::Reference< css::drawing::framework::XView > &rxView)
void ToTop(const SharedPaneDescriptor &rpDescriptor)
PresenterPaneContainer(const PresenterPaneContainer &)=delete
::cppu::WeakComponentImplHelper< css::lang::XEventListener > PresenterPaneContainerInterfaceBase