LibreOffice Module svx (master) 1
Classes | Public Member Functions | Private 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]

Classes

struct  ScriptInfo
 

Public Member Functions

 CommonStylePreviewRenderer (const SfxObjectShell &rShell, OutputDevice &rOutputDev, SfxStyleSheetBase *pStyle, tools::Long nMaxHeight)
 
virtual ~CommonStylePreviewRenderer () override
 
virtual bool recalculate () 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, tools::Long nMaxHeight)
 
virtual ~StylePreviewRenderer ()
 
virtual bool recalculate ()=0
 
virtual bool render (const tools::Rectangle &aRectangle, RenderAlign eRenderAlign=RenderAlign::CENTER)=0
 

Private Member Functions

bool SetFontSize (const SfxItemSet &rSet, sal_uInt16 nSlot, SvxFont &rFont)
 
void CalcRenderSize ()
 
void CheckScript ()
 

Private Attributes

std::optional< SvxFontm_oFont
 
std::optional< SvxFontm_oCJKFont
 
std::optional< SvxFontm_oCTLFont
 
Color maFontColor
 
Color maHighlightColor
 
Color maBackgroundColor
 
tools::Long mnHeight
 
tools::Long mnBaseLine
 
OUString maStyleName
 
OUString maScriptText
 
std::vector< ScriptInfomaScriptChanges
 

Additional Inherited Members

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

Detailed Description

Definition at line 30 of file CommonStylePreviewRenderer.hxx.

Constructor & Destructor Documentation

◆ CommonStylePreviewRenderer()

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

Definition at line 48 of file CommonStylePreviewRenderer.cxx.

References COL_AUTO(), GetName(), maBackgroundColor, and mnHeight.

◆ ~CommonStylePreviewRenderer()

svx::CommonStylePreviewRenderer::~CommonStylePreviewRenderer ( )
overridevirtual

Definition at line 61 of file CommonStylePreviewRenderer.cxx.

Member Function Documentation

◆ CalcRenderSize()

void svx::CommonStylePreviewRenderer::CalcRenderSize ( )
private

◆ CheckScript()

void svx::CommonStylePreviewRenderer::CheckScript ( )
private

Definition at line 405 of file CommonStylePreviewRenderer.cxx.

References i, maScriptChanges, maScriptText, and maStyleName.

Referenced by recalculate().

◆ recalculate()

bool svx::CommonStylePreviewRenderer::recalculate ( )
overridevirtual

◆ render()

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

◆ SetFontSize()

bool svx::CommonStylePreviewRenderer::SetFontSize ( const SfxItemSet rSet,
sal_uInt16  nSlot,
SvxFont rFont 
)
private

Member Data Documentation

◆ m_oCJKFont

std::optional<SvxFont> svx::CommonStylePreviewRenderer::m_oCJKFont
private

Definition at line 33 of file CommonStylePreviewRenderer.hxx.

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

◆ m_oCTLFont

std::optional<SvxFont> svx::CommonStylePreviewRenderer::m_oCTLFont
private

Definition at line 34 of file CommonStylePreviewRenderer.hxx.

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

◆ m_oFont

std::optional<SvxFont> svx::CommonStylePreviewRenderer::m_oFont
private

Definition at line 32 of file CommonStylePreviewRenderer.hxx.

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

◆ maBackgroundColor

Color svx::CommonStylePreviewRenderer::maBackgroundColor
private

Definition at line 37 of file CommonStylePreviewRenderer.hxx.

Referenced by recalculate(), and render().

◆ maFontColor

Color svx::CommonStylePreviewRenderer::maFontColor
private

Definition at line 35 of file CommonStylePreviewRenderer.hxx.

Referenced by recalculate(), and render().

◆ maHighlightColor

Color svx::CommonStylePreviewRenderer::maHighlightColor
private

Definition at line 36 of file CommonStylePreviewRenderer.hxx.

Referenced by recalculate(), and render().

◆ maScriptChanges

std::vector<ScriptInfo> svx::CommonStylePreviewRenderer::maScriptChanges
private

Definition at line 54 of file CommonStylePreviewRenderer.hxx.

Referenced by CalcRenderSize(), CheckScript(), and render().

◆ maScriptText

OUString svx::CommonStylePreviewRenderer::maScriptText
private

Definition at line 41 of file CommonStylePreviewRenderer.hxx.

Referenced by CheckScript().

◆ maStyleName

OUString svx::CommonStylePreviewRenderer::maStyleName
private

Definition at line 40 of file CommonStylePreviewRenderer.hxx.

Referenced by CalcRenderSize(), CheckScript(), and render().

◆ mnBaseLine

tools::Long svx::CommonStylePreviewRenderer::mnBaseLine
private

Definition at line 39 of file CommonStylePreviewRenderer.hxx.

Referenced by CalcRenderSize(), and render().

◆ mnHeight

tools::Long svx::CommonStylePreviewRenderer::mnHeight
private

Definition at line 38 of file CommonStylePreviewRenderer.hxx.

Referenced by CalcRenderSize(), and render().


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