LibreOffice Module sd (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, css::uno::Reference< css::drawing::XPresenterHelper > xPresenterHelper, rtl::Reference< PresenterPaneContainer > xPaneContainer)
 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

◆ PresenterPaintManager()

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

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

Definition at line 32 of file PresenterPaintManager.cxx.

Member Function Documentation

◆ GetInvalidator()

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

Definition at line 44 of file PresenterPaintManager.cxx.

References Invalidate().

◆ Invalidate() [1/4]

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 53 of file PresenterPaintManager.cxx.

References Invalidate(), and mpPaneContainer.

Referenced by GetInvalidator(), and Invalidate().

◆ Invalidate() [2/4]

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 91 of file PresenterPaintManager.cxx.

References Invalidate(), and mpPaneContainer.

◆ Invalidate() [3/4]

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 110 of file PresenterPaintManager.cxx.

References mxParentWindow, mxParentWindowPeer, and mxPresenterHelper.

◆ Invalidate() [4/4]

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

Definition at line 68 of file PresenterPaintManager.cxx.

References mxParentWindow, mxParentWindowPeer, and mxPresenterHelper.

Member Data Documentation

◆ mpPaneContainer

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

Definition at line 82 of file PresenterPaintManager.hxx.

Referenced by Invalidate().

◆ mxParentWindow

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

Definition at line 79 of file PresenterPaintManager.hxx.

Referenced by Invalidate().

◆ mxParentWindowPeer

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

Definition at line 80 of file PresenterPaintManager.hxx.

Referenced by Invalidate().

◆ mxPresenterHelper

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: