LibreOffice Module cppcanvas (master) 1
Public Member Functions | Private Attributes | List of all members
cppcanvas::internal::TextLinesHelper Class Reference

#include <textlineshelper.hxx>

Collaboration diagram for cppcanvas::internal::TextLinesHelper:
[legend]

Public Member Functions

 TextLinesHelper (CanvasSharedPtr xCanvas, const OutDevState &rState)
 
::basegfx::B2DSize const & getOverallSize () const
 
void init (double nLineWidth, const tools::TextLineInfo &rLineInfo)
 Init textlines with specified linewidth and TextLineInfo. More...
 
void render (const css::rendering::RenderState &rRenderState, bool bNormalText) const
 Fill the textlines with colors. More...
 

Private Attributes

const CanvasSharedPtr mpCanvas
 
css::uno::Reference< css::rendering::XPolyPolygon2D > mxOverline
 
css::uno::Reference< css::rendering::XPolyPolygon2D > mxUnderline
 
css::uno::Reference< css::rendering::XPolyPolygon2D > mxStrikeout
 
::basegfx::B2DSize maOverallSize
 
bool mbIsOverlineColorSet
 
const css::uno::Sequence< double > maOverlineColor
 
bool mbIsUnderlineColorSet
 
const css::uno::Sequence< double > maUnderlineColor
 
bool mbOverlineWaveline
 
bool mbUnderlineWaveline
 
bool mbOverlineWavelineBold
 
bool mbUnderlineWavelineBold
 

Detailed Description

Definition at line 34 of file textlineshelper.hxx.

Constructor & Destructor Documentation

◆ TextLinesHelper()

cppcanvas::internal::TextLinesHelper::TextLinesHelper ( CanvasSharedPtr  xCanvas,
const OutDevState rState 
)

Definition at line 34 of file textlineshelper.cxx.

Member Function Documentation

◆ getOverallSize()

::basegfx::B2DSize const & cppcanvas::internal::TextLinesHelper::getOverallSize ( ) const
inline

Definition at line 58 of file textlineshelper.hxx.

References maOverallSize.

◆ init()

void cppcanvas::internal::TextLinesHelper::init ( double  nLineWidth,
const tools::TextLineInfo rLineInfo 
)

◆ render()

void cppcanvas::internal::TextLinesHelper::render ( const css::rendering::RenderState &  rRenderState,
bool  bNormalText 
) const

Fill the textlines with colors.

OutDevState::textUnderlineColor.

Parameters
rRenderStateUsed to invoke XCanvas::fillPolyPolygon.
bNormalTextUse overline color and underline color if the value is true, ignore those colors otherwise ( typical case is to render the shadow ).

Definition at line 85 of file textlineshelper.cxx.

References maOverlineColor, maUnderlineColor, mbIsOverlineColorSet, mbIsUnderlineColorSet, mbOverlineWaveline, mbOverlineWavelineBold, mbUnderlineWaveline, mbUnderlineWavelineBold, mpCanvas, mxOverline, mxStrikeout, and mxUnderline.

Member Data Documentation

◆ maOverallSize

::basegfx::B2DSize cppcanvas::internal::TextLinesHelper::maOverallSize
private

Definition at line 41 of file textlineshelper.hxx.

Referenced by getOverallSize(), and init().

◆ maOverlineColor

const css::uno::Sequence<double> cppcanvas::internal::TextLinesHelper::maOverlineColor
private

Definition at line 44 of file textlineshelper.hxx.

Referenced by render().

◆ maUnderlineColor

const css::uno::Sequence<double> cppcanvas::internal::TextLinesHelper::maUnderlineColor
private

Definition at line 47 of file textlineshelper.hxx.

Referenced by render().

◆ mbIsOverlineColorSet

bool cppcanvas::internal::TextLinesHelper::mbIsOverlineColorSet
private

Definition at line 43 of file textlineshelper.hxx.

Referenced by render().

◆ mbIsUnderlineColorSet

bool cppcanvas::internal::TextLinesHelper::mbIsUnderlineColorSet
private

Definition at line 46 of file textlineshelper.hxx.

Referenced by render().

◆ mbOverlineWaveline

bool cppcanvas::internal::TextLinesHelper::mbOverlineWaveline
private

Definition at line 49 of file textlineshelper.hxx.

Referenced by init(), and render().

◆ mbOverlineWavelineBold

bool cppcanvas::internal::TextLinesHelper::mbOverlineWavelineBold
private

Definition at line 52 of file textlineshelper.hxx.

Referenced by init(), and render().

◆ mbUnderlineWaveline

bool cppcanvas::internal::TextLinesHelper::mbUnderlineWaveline
private

Definition at line 50 of file textlineshelper.hxx.

Referenced by init(), and render().

◆ mbUnderlineWavelineBold

bool cppcanvas::internal::TextLinesHelper::mbUnderlineWavelineBold
private

Definition at line 53 of file textlineshelper.hxx.

Referenced by init(), and render().

◆ mpCanvas

const CanvasSharedPtr cppcanvas::internal::TextLinesHelper::mpCanvas
private

Definition at line 36 of file textlineshelper.hxx.

Referenced by init(), and render().

◆ mxOverline

css::uno::Reference<css::rendering::XPolyPolygon2D> cppcanvas::internal::TextLinesHelper::mxOverline
private

Definition at line 37 of file textlineshelper.hxx.

Referenced by init(), and render().

◆ mxStrikeout

css::uno::Reference<css::rendering::XPolyPolygon2D> cppcanvas::internal::TextLinesHelper::mxStrikeout
private

Definition at line 39 of file textlineshelper.hxx.

Referenced by init(), and render().

◆ mxUnderline

css::uno::Reference<css::rendering::XPolyPolygon2D> cppcanvas::internal::TextLinesHelper::mxUnderline
private

Definition at line 38 of file textlineshelper.hxx.

Referenced by init(), and render().


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