LibreOffice Module sdext (master)  1
Classes | Public Types | Public Member Functions | Public Attributes | Private Attributes | List of all members
sdext::presenter::PresenterPaneContainer Class Reference

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>

Inheritance diagram for sdext::presenter::PresenterPaneContainer:
[legend]
Collaboration diagram for sdext::presenter::PresenterPaneContainer:
[legend]

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< PaneDescriptorSharedPaneDescriptor
 
typedef ::std::vector< SharedPaneDescriptorPaneList
 

Public Member Functions

 PresenterPaneContainer (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
virtual ~PresenterPaneContainer () override
 
 PresenterPaneContainer (const PresenterPaneContainer &)=delete
 
PresenterPaneContaineroperator= (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 &rViewIntialization)
 
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
 
- Private Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

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.

Member Typedef Documentation

Definition at line 95 of file PresenterPaneContainer.hxx.

Definition at line 94 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.

Constructor & Destructor Documentation

sdext::presenter::PresenterPaneContainer::PresenterPaneContainer ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)
explicit
sdext::presenter::PresenterPaneContainer::~PresenterPaneContainer ( )
overridevirtual

Definition at line 46 of file PresenterPaneContainer.cxx.

sdext::presenter::PresenterPaneContainer::PresenterPaneContainer ( const PresenterPaneContainer )
delete

Member Function Documentation

void SAL_CALL sdext::presenter::PresenterPaneContainer::disposing ( )
overridevirtual

Definition at line 89 of file PresenterPaneContainer.cxx.

References maPanes, and RemovePane().

void SAL_CALL sdext::presenter::PresenterPaneContainer::disposing ( const css::lang::EventObject &  rEvent)
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().

PresenterPaneContainer& sdext::presenter::PresenterPaneContainer::operator= ( const PresenterPaneContainer )
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 rViewIntialization 
)

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.

Member Data Documentation

PaneList sdext::presenter::PresenterPaneContainer::maPanes
css::uno::Reference<css::drawing::XPresenterHelper> sdext::presenter::PresenterPaneContainer::mxPresenterHelper
private

Definition at line 155 of file PresenterPaneContainer.hxx.

Referenced by ToTop().


The documentation for this class was generated from the following files: