LibreOffice Module sfx2 (master) 1
Public Types | Public Member Functions | Protected Attributes | List of all members
sfx2::StylePreviewRenderer Class Referenceabstract

#include <StylePreviewRenderer.hxx>

Collaboration diagram for sfx2::StylePreviewRenderer:
[legend]

Public Types

enum class  RenderAlign {
  TOP ,
  CENTER
}
 

Public Member Functions

 StylePreviewRenderer (const SfxObjectShell &rShell, OutputDevice &rOutputDev, SfxStyleSheetBase *pStyle, tools::Long nMaxHeight)
 
virtual ~StylePreviewRenderer ()
 
virtual bool recalculate ()=0
 
virtual bool render (const tools::Rectangle &aRectangle, RenderAlign eRenderAlign=RenderAlign::CENTER)=0
 

Protected Attributes

const SfxObjectShellmrShell
 
OutputDevicemrOutputDev
 
SfxStyleSheetBasempStyle
 
tools::Long mnMaxHeight
 

Detailed Description

Definition at line 22 of file StylePreviewRenderer.hxx.

Member Enumeration Documentation

◆ RenderAlign

Enumerator
TOP 
CENTER 

Definition at line 31 of file StylePreviewRenderer.hxx.

Constructor & Destructor Documentation

◆ StylePreviewRenderer()

sfx2::StylePreviewRenderer::StylePreviewRenderer ( const SfxObjectShell rShell,
OutputDevice rOutputDev,
SfxStyleSheetBase pStyle,
tools::Long  nMaxHeight 
)
inline

Definition at line 36 of file StylePreviewRenderer.hxx.

◆ ~StylePreviewRenderer()

virtual sfx2::StylePreviewRenderer::~StylePreviewRenderer ( )
inlinevirtual

Definition at line 46 of file StylePreviewRenderer.hxx.

Member Function Documentation

◆ recalculate()

virtual bool sfx2::StylePreviewRenderer::recalculate ( )
pure virtual

◆ render()

virtual bool sfx2::StylePreviewRenderer::render ( const tools::Rectangle aRectangle,
RenderAlign  eRenderAlign = RenderAlign::CENTER 
)
pure virtual

Member Data Documentation

◆ mnMaxHeight

tools::Long sfx2::StylePreviewRenderer::mnMaxHeight
protected

Definition at line 28 of file StylePreviewRenderer.hxx.

◆ mpStyle

SfxStyleSheetBase* sfx2::StylePreviewRenderer::mpStyle
protected

Definition at line 27 of file StylePreviewRenderer.hxx.

◆ mrOutputDev

OutputDevice& sfx2::StylePreviewRenderer::mrOutputDev
protected

Definition at line 26 of file StylePreviewRenderer.hxx.

◆ mrShell

const SfxObjectShell& sfx2::StylePreviewRenderer::mrShell
protected

Definition at line 25 of file StylePreviewRenderer.hxx.


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