LibreOffice Module svx (master)  1
Public Member Functions | Private Attributes | List of all members
svx::CommonStylePreviewRenderer Class Referencefinal

#include <CommonStylePreviewRenderer.hxx>

Inheritance diagram for svx::CommonStylePreviewRenderer:
[legend]
Collaboration diagram for svx::CommonStylePreviewRenderer:
[legend]

Public Member Functions

 CommonStylePreviewRenderer (const SfxObjectShell &rShell, OutputDevice &rOutputDev, SfxStyleSheetBase *pStyle, long nMaxHeight)
 
virtual ~CommonStylePreviewRenderer () override
 
virtual bool recalculate () override
 
virtual Size getRenderSize () override
 
virtual bool render (const tools::Rectangle &aRectangle, RenderAlign eRenderAlign=RenderAlign::CENTER) override
 
- Public Member Functions inherited from sfx2::StylePreviewRenderer
 StylePreviewRenderer (const SfxObjectShell &rShell, OutputDevice &rOutputDev, SfxStyleSheetBase *pStyle, long nMaxHeight)
 
virtual ~StylePreviewRenderer ()
 

Private Attributes

std::unique_ptr< SvxFontm_pFont
 
Color maFontColor
 
Color maBackgroundColor
 
Size maPixelSize
 
OUString const maStyleName
 

Additional Inherited Members

- Public Types inherited from sfx2::StylePreviewRenderer
enum  RenderAlign {
  RenderAlign::TOP,
  RenderAlign::CENTER
}
 
- Protected Attributes inherited from sfx2::StylePreviewRenderer
const SfxObjectShellmrShell
 
OutputDevicemrOutputDev
 
SfxStyleSheetBasempStyle
 
long const mnMaxHeight
 

Detailed Description

Definition at line 29 of file CommonStylePreviewRenderer.hxx.

Constructor & Destructor Documentation

svx::CommonStylePreviewRenderer::CommonStylePreviewRenderer ( const SfxObjectShell rShell,
OutputDevice rOutputDev,
SfxStyleSheetBase pStyle,
long  nMaxHeight 
)

Definition at line 48 of file CommonStylePreviewRenderer.cxx.

References COL_AUTO().

svx::CommonStylePreviewRenderer::~CommonStylePreviewRenderer ( )
overridevirtual

Definition at line 60 of file CommonStylePreviewRenderer.cxx.

Member Function Documentation

Size svx::CommonStylePreviewRenderer::getRenderSize ( )
overridevirtual
bool svx::CommonStylePreviewRenderer::recalculate ( )
overridevirtual
bool svx::CommonStylePreviewRenderer::render ( const tools::Rectangle aRectangle,
RenderAlign  eRenderAlign = RenderAlign::CENTER 
)
overridevirtual

Member Data Documentation

std::unique_ptr<SvxFont> svx::CommonStylePreviewRenderer::m_pFont
private

Definition at line 31 of file CommonStylePreviewRenderer.hxx.

Referenced by getRenderSize(), recalculate(), and render().

Color svx::CommonStylePreviewRenderer::maBackgroundColor
private

Definition at line 33 of file CommonStylePreviewRenderer.hxx.

Referenced by recalculate(), and render().

Color svx::CommonStylePreviewRenderer::maFontColor
private

Definition at line 32 of file CommonStylePreviewRenderer.hxx.

Referenced by recalculate(), and render().

Size svx::CommonStylePreviewRenderer::maPixelSize
private

Definition at line 34 of file CommonStylePreviewRenderer.hxx.

Referenced by getRenderSize(), recalculate(), and render().

OUString const svx::CommonStylePreviewRenderer::maStyleName
private

Definition at line 35 of file CommonStylePreviewRenderer.hxx.

Referenced by getRenderSize(), and render().


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