LibreOffice Module sdext (master)
1
|
This class could also be called PresenterPaneAndViewContainer because it stores not only references to all panes that belong to the presenter screen but stores the views displayed in these panes as well. More...
#include <PresenterPaneContainer.hxx>
Classes | |
class | PaneDescriptor |
Each pane descriptor holds references to one pane and the view displayed in this pane as well as the other information that is used to manage the pane window like an XWindow reference, the title, and the coordinates. More... | |
Public Types | |
typedef ::std::function< void(const css::uno::Reference< css::drawing::framework::XView > &)> | ViewInitializationFunction |
typedef std::shared_ptr< PaneDescriptor > | SharedPaneDescriptor |
typedef ::std::vector< SharedPaneDescriptor > | PaneList |
Public Member Functions | |
PresenterPaneContainer (const css::uno::Reference< css::uno::XComponentContext > &rxContext) | |
virtual | ~PresenterPaneContainer () override |
PresenterPaneContainer (const PresenterPaneContainer &)=delete | |
PresenterPaneContainer & | operator= (const PresenterPaneContainer &)=delete |
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 | 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) |
SharedPaneDescriptor | StoreView (const css::uno::Reference< css::drawing::framework::XView > &rxView) |
SharedPaneDescriptor | RemovePane (const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId) |
SharedPaneDescriptor | RemoveView (const css::uno::Reference< css::drawing::framework::XView > &rxView) |
SharedPaneDescriptor | FindBorderWindow (const css::uno::Reference< css::awt::XWindow > &rxBorderWindow) |
Find the pane whose border window is identical to the given border window. More... | |
SharedPaneDescriptor | FindContentWindow (const css::uno::Reference< css::awt::XWindow > &rxBorderWindow) |
Find the pane whose border window is identical to the given content window. More... | |
SharedPaneDescriptor | FindPaneURL (const OUString &rsPaneURL) |
Find the pane whose pane URL is identical to the given URL string. More... | |
SharedPaneDescriptor | FindPaneId (const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId) |
Find the pane whose resource id is identical to the given one. More... | |
SharedPaneDescriptor | FindViewURL (const OUString &rsViewURL) |
OUString | GetPaneURLForViewURL (const OUString &rsViewURL) |
void | ToTop (const SharedPaneDescriptor &rpDescriptor) |
virtual void SAL_CALL | disposing (const css::lang::EventObject &rEvent) override |
Public Attributes | |
PaneList | maPanes |
Private Attributes | |
css::uno::Reference< css::drawing::XPresenterHelper > | mxPresenterHelper |
![]() | |
mutable::osl::Mutex | m_aMutex |
This class could also be called PresenterPaneAndViewContainer because it stores not only references to all panes that belong to the presenter screen but stores the views displayed in these panes as well.
Definition at line 50 of file PresenterPaneContainer.hxx.
typedef ::std::vector<SharedPaneDescriptor> sdext::presenter::PresenterPaneContainer::PaneList |
Definition at line 94 of file PresenterPaneContainer.hxx.
typedef std::shared_ptr<PaneDescriptor> sdext::presenter::PresenterPaneContainer::SharedPaneDescriptor |
Definition at line 93 of file PresenterPaneContainer.hxx.
typedef ::std::function<void (const css::uno::Reference<css::drawing::framework::XView>&)> sdext::presenter::PresenterPaneContainer::ViewInitializationFunction |
Definition at line 64 of file PresenterPaneContainer.hxx.
|
explicit |
|
overridevirtual |
Definition at line 46 of file PresenterPaneContainer.cxx.
|
delete |
|
overridevirtual |
Definition at line 89 of file PresenterPaneContainer.cxx.
References maPanes, and RemovePane().
|
overridevirtual |
Definition at line 313 of file PresenterPaneContainer.cxx.
References FindContentWindow(), and RemovePane().
PresenterPaneContainer::SharedPaneDescriptor sdext::presenter::PresenterPaneContainer::FindBorderWindow | ( | const css::uno::Reference< css::awt::XWindow > & | rxBorderWindow | ) |
Find the pane whose border window is identical to the given border window.
Definition at line 229 of file PresenterPaneContainer.cxx.
References maPanes.
PresenterPaneContainer::SharedPaneDescriptor sdext::presenter::PresenterPaneContainer::FindContentWindow | ( | const css::uno::Reference< css::awt::XWindow > & | rxBorderWindow | ) |
Find the pane whose border window is identical to the given content window.
Definition at line 239 of file PresenterPaneContainer.cxx.
References maPanes.
Referenced by disposing().
PresenterPaneContainer::SharedPaneDescriptor sdext::presenter::PresenterPaneContainer::FindPaneId | ( | const css::uno::Reference< css::drawing::framework::XResourceId > & | rxPaneId | ) |
Find the pane whose resource id is identical to the given one.
Definition at line 259 of file PresenterPaneContainer.cxx.
References maPanes.
Referenced by RemovePane().
PresenterPaneContainer::SharedPaneDescriptor sdext::presenter::PresenterPaneContainer::FindPaneURL | ( | const OUString & | rsPaneURL | ) |
Find the pane whose pane URL is identical to the given URL string.
Definition at line 249 of file PresenterPaneContainer.cxx.
References maPanes.
Referenced by PreparePane(), RemoveView(), StoreBorderWindow(), StorePane(), and StoreView().
PresenterPaneContainer::SharedPaneDescriptor sdext::presenter::PresenterPaneContainer::FindViewURL | ( | const OUString & | rsViewURL | ) |
Definition at line 272 of file PresenterPaneContainer.cxx.
References maPanes.
Referenced by GetPaneURLForViewURL().
OUString sdext::presenter::PresenterPaneContainer::GetPaneURLForViewURL | ( | const OUString & | rsViewURL | ) |
Definition at line 282 of file PresenterPaneContainer.cxx.
References FindViewURL().
|
delete |
void sdext::presenter::PresenterPaneContainer::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 | ||
) |
Definition at line 50 of file PresenterPaneContainer.cxx.
References FindPaneURL(), and maPanes.
Referenced by StorePane().
PresenterPaneContainer::SharedPaneDescriptor sdext::presenter::PresenterPaneContainer::RemovePane | ( | const css::uno::Reference< css::drawing::framework::XResourceId > & | rxPaneId | ) |
Definition at line 187 of file PresenterPaneContainer.cxx.
References FindPaneId().
Referenced by disposing().
PresenterPaneContainer::SharedPaneDescriptor sdext::presenter::PresenterPaneContainer::RemoveView | ( | const css::uno::Reference< css::drawing::framework::XView > & | rxView | ) |
Definition at line 204 of file PresenterPaneContainer.cxx.
References FindPaneURL().
PresenterPaneContainer::SharedPaneDescriptor sdext::presenter::PresenterPaneContainer::StoreBorderWindow | ( | const css::uno::Reference< css::drawing::framework::XResourceId > & | rxPaneId, |
const css::uno::Reference< css::awt::XWindow > & | rxBorderWindow | ||
) |
Definition at line 130 of file PresenterPaneContainer.cxx.
References FindPaneURL().
PresenterPaneContainer::SharedPaneDescriptor sdext::presenter::PresenterPaneContainer::StorePane | ( | const rtl::Reference< PresenterPaneBase > & | rxPane | ) |
Definition at line 97 of file PresenterPaneContainer.cxx.
References FindPaneURL(), and PreparePane().
PresenterPaneContainer::SharedPaneDescriptor sdext::presenter::PresenterPaneContainer::StoreView | ( | const css::uno::Reference< css::drawing::framework::XView > & | rxView | ) |
Definition at line 151 of file PresenterPaneContainer.cxx.
References FindPaneURL().
void sdext::presenter::PresenterPaneContainer::ToTop | ( | const SharedPaneDescriptor & | rpDescriptor | ) |
Definition at line 291 of file PresenterPaneContainer.cxx.
References maPanes, and mxPresenterHelper.
PaneList sdext::presenter::PresenterPaneContainer::maPanes |
Definition at line 95 of file PresenterPaneContainer.hxx.
Referenced by disposing(), FindBorderWindow(), FindContentWindow(), FindPaneId(), FindPaneURL(), FindViewURL(), PreparePane(), and ToTop().
|
private |
Definition at line 154 of file PresenterPaneContainer.hxx.
Referenced by ToTop().