LibreOffice Module sdext (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
 
- Public Member Functions inherited from sdext::presenter::PresenterPaneBase
 PresenterPaneBase (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const ::rtl::Reference< PresenterController > &rpPresenterController)
 
virtual ~PresenterPaneBase () override
 
 PresenterPaneBase (const PresenterPaneBase &)=delete
 
PresenterPaneBaseoperator= (const PresenterPaneBase &)=delete
 
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 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
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 38 of file PresenterSpritePane.hxx.

Constructor & Destructor Documentation

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

Definition at line 46 of file PresenterSpritePane.cxx.

Member Function Documentation

void sdext::presenter::PresenterSpritePane::CreateCanvases ( const css::uno::Reference< css::rendering::XSpriteCanvas > &  rxParentCanvas)
overrideprivatevirtual
void sdext::presenter::PresenterSpritePane::disposing ( )
overridevirtual
Reference< rendering::XCanvas > SAL_CALL sdext::presenter::PresenterSpritePane::getCanvas ( )
overridevirtual
Reference< awt::XWindow > SAL_CALL sdext::presenter::PresenterSpritePane::getWindow ( )
overridevirtual
void sdext::presenter::PresenterSpritePane::UpdateCanvases ( )
private
void SAL_CALL sdext::presenter::PresenterSpritePane::windowHidden ( const css::lang::EventObject &  rEvent)
overridevirtual
void SAL_CALL sdext::presenter::PresenterSpritePane::windowMoved ( const css::awt::WindowEvent &  rEvent)
overridevirtual
void SAL_CALL sdext::presenter::PresenterSpritePane::windowPaint ( const css::awt::PaintEvent &  rEvent)
overridevirtual
void SAL_CALL sdext::presenter::PresenterSpritePane::windowResized ( const css::awt::WindowEvent &  rEvent)
overridevirtual
void SAL_CALL sdext::presenter::PresenterSpritePane::windowShown ( const css::lang::EventObject &  rEvent)
overridevirtual

Member Data Documentation

std::shared_ptr<PresenterSprite> sdext::presenter::PresenterSpritePane::mpSprite
private
css::uno::Reference<css::rendering::XSpriteCanvas> sdext::presenter::PresenterSpritePane::mxParentCanvas
private

Definition at line 71 of file PresenterSpritePane.hxx.

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


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