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>
31 #include <rtl/ref.hxx>
39 class PresenterPaneBase;
42 typedef ::cppu::WeakComponentImplHelper <
43 css::lang::XEventListener
52 public PresenterPaneContainerInterfaceBase
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);
135 SharedPaneDescriptor
FindPaneURL (
const OUString& rsPaneURL);
139 SharedPaneDescriptor
FindPaneId (
const css::uno::Reference<
140 css::drawing::framework::XResourceId>& rxPaneId);
142 SharedPaneDescriptor
FindViewURL (
const OUString& rsViewURL);
146 void ToTop (
const SharedPaneDescriptor& rpDescriptor);
151 const css::lang::EventObject& rEvent)
override;
css::uno::Reference< css::drawing::framework::XView > mxView
virtual void SAL_CALL disposing() override
void SetActivationState(const bool bIsActive)
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::awt::XWindow > mxContentWindow
SharedPaneDescriptor StoreView(const css::uno::Reference< css::drawing::framework::XView > &rxView)
css::uno::Reference< css::drawing::XPresenterHelper > mxPresenterHelper
void ToTop(const SharedPaneDescriptor &rpDescriptor)
ViewInitializationFunction maViewInitialization
SharedPaneDescriptor RemoveView(const css::uno::Reference< css::drawing::framework::XView > &rxView)
SharedPaneDescriptor FindContentWindow(const css::uno::Reference< css::awt::XWindow > &rxBorderWindow)
Find the pane whose border window is identical to the given content window.
OUString msAccessibleTitleTemplate
SharedPaneDescriptor RemovePane(const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId)
css::uno::Reference< css::drawing::framework::XResourceId > mxPaneId
Each pane descriptor holds references to one pane and the view displayed in this pane as well as the ...
::std::function< void(const css::uno::Reference< css::drawing::framework::XView > &)> ViewInitializationFunction
SharedPaneDescriptor FindBorderWindow(const css::uno::Reference< css::awt::XWindow > &rxBorderWindow)
Find the pane whose border window is identical to the given border window.
PresenterPaneContainer & operator=(const PresenterPaneContainer &)=delete
SharedPaneDescriptor FindViewURL(const OUString &rsViewURL)
SharedPaneDescriptor FindPaneURL(const OUString &rsPaneURL)
Find the pane whose pane URL is identical to the given URL string.
This class could also be called PresenterPaneAndViewContainer because it stores not only references t...
SharedPaneDescriptor StorePane(const rtl::Reference< PresenterPaneBase > &rxPane)
SharedPaneDescriptor StoreBorderWindow(const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId, const css::uno::Reference< css::awt::XWindow > &rxBorderWindow)
OUString GetPaneURLForViewURL(const OUString &rsViewURL)
std::shared_ptr< PaneDescriptor > SharedPaneDescriptor
::cppu::WeakComponentImplHelper< css::lang::XEventListener > PresenterPaneContainerInterfaceBase
::rtl::Reference< PresenterPaneBase > mxPane
A wrapper around a css::rendering::XCustomSprite that allows not only setting values like size...
virtual ~PresenterPaneContainer() override
PresenterPaneContainer(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
::std::vector< SharedPaneDescriptor > PaneList
css::uno::Reference< css::awt::XWindow > mxBorderWindow
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)