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

Use a sprite to display the contents and the border of a pane. More...

#include <PresenterSpritePane.hxx>

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

Public Member Functions

 PresenterSpritePane (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const ::rtl::Reference< PresenterController > &rpPresenterController)
 
virtual ~PresenterSpritePane () override
 
virtual void SAL_CALL disposing () override
 
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL getWindow () override
 
virtual css::uno::Reference< css::rendering::XCanvas > SAL_CALL getCanvas () override
 
virtual void SAL_CALL windowResized (const css::awt::WindowEvent &rEvent) override
 
virtual void SAL_CALL windowMoved (const css::awt::WindowEvent &rEvent) override
 
virtual void SAL_CALL windowShown (const css::lang::EventObject &rEvent) override
 
virtual void SAL_CALL windowHidden (const css::lang::EventObject &rEvent) override
 
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent &rEvent) override
 
virtual void SAL_CALL disposing () override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &rEvent) override
 
- Public Member Functions inherited from sdext::presenter::PresenterPaneBase
 PresenterPaneBase (const css::uno::Reference< css::uno::XComponentContext > &rxContext, ::rtl::Reference< PresenterController > xPresenterController)
 
virtual ~PresenterPaneBase () override
 
 PresenterPaneBase (const PresenterPaneBase &)=delete
 
PresenterPaneBaseoperator= (const PresenterPaneBase &)=delete
 
virtual void SAL_CALL disposing () override
 
const css::uno::Reference< css::awt::XWindow > & GetBorderWindow () const
 
void SetTitle (const OUString &rsTitle)
 
const OUString & GetTitle () const
 
const css::uno::Reference< css::drawing::framework::XPaneBorderPainter > & GetPaneBorderPainter () const
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &rArguments) override
 
virtual css::uno::Reference< css::drawing::framework::XResourceId > SAL_CALL getResourceId () override
 
virtual sal_Bool SAL_CALL isAnchorOnly () override
 
virtual void SAL_CALL windowResized (const css::awt::WindowEvent &rEvent) override
 
virtual void SAL_CALL windowMoved (const css::awt::WindowEvent &rEvent) override
 
virtual void SAL_CALL windowShown (const css::lang::EventObject &rEvent) override
 
virtual void SAL_CALL windowHidden (const css::lang::EventObject &rEvent) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &rEvent) override
 

Private Member Functions

virtual void CreateCanvases (const css::uno::Reference< css::rendering::XSpriteCanvas > &rxParentCanvas) override
 
void UpdateCanvases ()
 

Private Attributes

css::uno::Reference< css::rendering::XSpriteCanvas > mxParentCanvas
 
std::shared_ptr< PresenterSpritempSprite
 

Additional Inherited Members

- Protected Member Functions inherited from sdext::presenter::PresenterPaneBase
virtual void CreateCanvases (const css::uno::Reference< css::rendering::XSpriteCanvas > &rxParentCanvas)=0
 
void CreateWindows (const bool bIsWindowVisibleOnCreation)
 
void PaintBorder (const css::awt::Rectangle &rUpdateRectangle)
 
void ToTop ()
 
void LayoutContextWindow ()
 
bool IsVisible () const
 
void ThrowIfDisposed ()
 
- Protected Attributes inherited from sdext::presenter::PresenterPaneBase
::rtl::Reference< PresenterControllermpPresenterController
 
css::uno::Reference< css::awt::XWindow > mxParentWindow
 
css::uno::Reference< css::awt::XWindow > mxBorderWindow
 
css::uno::Reference< css::rendering::XCanvas > mxBorderCanvas
 
css::uno::Reference< css::awt::XWindow > mxContentWindow
 
css::uno::Reference< css::rendering::XCanvas > mxContentCanvas
 
css::uno::Reference< css::drawing::framework::XResourceId > mxPaneId
 
css::uno::Reference< css::drawing::framework::XPaneBorderPainter > mxBorderPainter
 
css::uno::Reference< css::drawing::XPresenterHelper > mxPresenterHelper
 
OUString msTitle
 
css::uno::Reference< css::uno::XComponentContext > mxComponentContext
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

Use a sprite to display the contents and the border of a pane.

Windows are still used to define the locations and sizes of both the border and the pane content. Note that every resize results in a disposed canvas. Therefore call getCanvas in every repaint or at least after every resize.

Definition at line 37 of file PresenterSpritePane.hxx.

Constructor & Destructor Documentation

◆ PresenterSpritePane()

sdext::presenter::PresenterSpritePane::PresenterSpritePane ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const ::rtl::Reference< PresenterController > &  rpPresenterController 
)

◆ ~PresenterSpritePane()

sdext::presenter::PresenterSpritePane::~PresenterSpritePane ( )
overridevirtual

Definition at line 46 of file PresenterSpritePane.cxx.

Member Function Documentation

◆ CreateCanvases()

void sdext::presenter::PresenterSpritePane::CreateCanvases ( const css::uno::Reference< css::rendering::XSpriteCanvas > &  rxParentCanvas)
overrideprivatevirtual

◆ disposing() [1/3]

void sdext::presenter::PresenterSpritePane::disposing ( )
overridevirtual

◆ disposing() [2/3]

void sdext::presenter::PresenterPaneBase::disposing ( )
overridevirtual

Reimplemented from sdext::presenter::PresenterPaneBase.

Definition at line 64 of file PresenterPaneBase.cxx.

◆ disposing() [3/3]

void SAL_CALL sdext::presenter::PresenterPaneBase::disposing ( const css::lang::EventObject &  rEvent)
overridevirtual

Reimplemented from sdext::presenter::PresenterPaneBase.

Definition at line 93 of file PresenterPaneBase.cxx.

◆ getCanvas()

Reference< rendering::XCanvas > SAL_CALL sdext::presenter::PresenterSpritePane::getCanvas ( )
overridevirtual

◆ getWindow()

Reference< awt::XWindow > SAL_CALL sdext::presenter::PresenterSpritePane::getWindow ( )
overridevirtual

◆ UpdateCanvases()

void sdext::presenter::PresenterSpritePane::UpdateCanvases ( )
private

◆ windowHidden()

void SAL_CALL sdext::presenter::PresenterSpritePane::windowHidden ( const css::lang::EventObject &  rEvent)
overridevirtual

◆ windowMoved()

void SAL_CALL sdext::presenter::PresenterSpritePane::windowMoved ( const css::awt::WindowEvent &  rEvent)
overridevirtual

◆ windowPaint()

void SAL_CALL sdext::presenter::PresenterSpritePane::windowPaint ( const css::awt::PaintEvent &  rEvent)
overridevirtual

◆ windowResized()

void SAL_CALL sdext::presenter::PresenterSpritePane::windowResized ( const css::awt::WindowEvent &  rEvent)
overridevirtual

◆ windowShown()

void SAL_CALL sdext::presenter::PresenterSpritePane::windowShown ( const css::lang::EventObject &  rEvent)
overridevirtual

Member Data Documentation

◆ mpSprite

std::shared_ptr<PresenterSprite> sdext::presenter::PresenterSpritePane::mpSprite
private

◆ mxParentCanvas

css::uno::Reference<css::rendering::XSpriteCanvas> sdext::presenter::PresenterSpritePane::mxParentCanvas
private

Definition at line 69 of file PresenterSpritePane.hxx.

Referenced by CreateCanvases(), disposing(), and UpdateCanvases().


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