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

Synchronize painting of windows and canvases. More...

#include <PresenterPaintManager.hxx>

Collaboration diagram for sdext::presenter::PresenterPaintManager:
[legend]

Public Member Functions

 PresenterPaintManager (const css::uno::Reference< css::awt::XWindow > &rxParentWindow, const css::uno::Reference< css::drawing::XPresenterHelper > &rxPresenterHelper, const rtl::Reference< PresenterPaneContainer > &rpPaneContainer)
 Create paint manager with the window that is the top node in the local window hierarchy. More...
 
::std::function< void(const css::awt::Rectangle &rRepaintBox)> GetInvalidator (const css::uno::Reference< css::awt::XWindow > &rxWindow)
 
void Invalidate (const css::uno::Reference< css::awt::XWindow > &rxWindow)
 Request a repaint of the whole window. More...
 
void Invalidate (const css::uno::Reference< css::awt::XWindow > &rxWindow, const sal_Int16 nInvalidateFlags)
 
void Invalidate (const css::uno::Reference< css::awt::XWindow > &rxWindow, const css::awt::Rectangle &rRepaintBox, const bool bSynchronous=false)
 Request a repaint of a part of a window. More...
 
void Invalidate (const css::uno::Reference< css::awt::XWindow > &rxWindow, const css::awt::Rectangle &rRepaintBox, const sal_Int16 nInvalidateFlags)
 

Private Attributes

css::uno::Reference< css::awt::XWindow > mxParentWindow
 
css::uno::Reference< css::awt::XWindowPeer > mxParentWindowPeer
 
css::uno::Reference< css::drawing::XPresenterHelper > mxPresenterHelper
 
::rtl::Reference< PresenterPaneContainermpPaneContainer
 

Detailed Description

Synchronize painting of windows and canvases.

At the moment there is just some processing of invalidate calls. This could be extended to process incoming windowPaint() calls.

Definition at line 40 of file PresenterPaintManager.hxx.

Constructor & Destructor Documentation

sdext::presenter::PresenterPaintManager::PresenterPaintManager ( const css::uno::Reference< css::awt::XWindow > &  rxParentWindow,
const css::uno::Reference< css::drawing::XPresenterHelper > &  rxPresenterHelper,
const rtl::Reference< PresenterPaneContainer > &  rpPaneContainer 
)

Create paint manager with the window that is the top node in the local window hierarchy.

Definition at line 31 of file PresenterPaintManager.cxx.

Member Function Documentation

std::function< void(const css::awt::Rectangle &rRepaintBox)> sdext::presenter::PresenterPaintManager::GetInvalidator ( const css::uno::Reference< css::awt::XWindow > &  rxWindow)

Definition at line 43 of file PresenterPaintManager.cxx.

References Invalidate().

void sdext::presenter::PresenterPaintManager::Invalidate ( const css::uno::Reference< css::awt::XWindow > &  rxWindow)

Request a repaint of the whole window.

Parameters
rxWindowMay be the parent window or one of its descendents.

Definition at line 52 of file PresenterPaintManager.cxx.

References mpPaneContainer.

Referenced by GetInvalidator(), and Invalidate().

void sdext::presenter::PresenterPaintManager::Invalidate ( const css::uno::Reference< css::awt::XWindow > &  rxWindow,
const sal_Int16  nInvalidateFlags 
)

Definition at line 67 of file PresenterPaintManager.cxx.

References mxParentWindow, mxParentWindowPeer, and mxPresenterHelper.

void sdext::presenter::PresenterPaintManager::Invalidate ( const css::uno::Reference< css::awt::XWindow > &  rxWindow,
const css::awt::Rectangle &  rRepaintBox,
const bool  bSynchronous = false 
)

Request a repaint of a part of a window.

Parameters
rxWindowMay be the parent window or one of its descendents.

Definition at line 90 of file PresenterPaintManager.cxx.

References Invalidate(), and mpPaneContainer.

void sdext::presenter::PresenterPaintManager::Invalidate ( const css::uno::Reference< css::awt::XWindow > &  rxWindow,
const css::awt::Rectangle &  rRepaintBox,
const sal_Int16  nInvalidateFlags 
)

Definition at line 109 of file PresenterPaintManager.cxx.

References mxParentWindow, mxParentWindowPeer, and mxPresenterHelper.

Member Data Documentation

::rtl::Reference<PresenterPaneContainer> sdext::presenter::PresenterPaintManager::mpPaneContainer
private

Definition at line 82 of file PresenterPaintManager.hxx.

Referenced by Invalidate().

css::uno::Reference<css::awt::XWindow> sdext::presenter::PresenterPaintManager::mxParentWindow
private

Definition at line 79 of file PresenterPaintManager.hxx.

Referenced by Invalidate().

css::uno::Reference<css::awt::XWindowPeer> sdext::presenter::PresenterPaintManager::mxParentWindowPeer
private

Definition at line 80 of file PresenterPaintManager.hxx.

Referenced by Invalidate().

css::uno::Reference<css::drawing::XPresenterHelper> sdext::presenter::PresenterPaintManager::mxPresenterHelper
private

Definition at line 81 of file PresenterPaintManager.hxx.

Referenced by Invalidate().


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