LibreOffice Module drawinglayer (master) 1
Public Member Functions | Private Attributes | List of all members
drawinglayer::primitive2d::TextLayouterDevice Class Reference

TextLayouterDevice class. More...

#include <textlayoutdevice.hxx>

Collaboration diagram for drawinglayer::primitive2d::TextLayouterDevice:
[legend]

Public Member Functions

 TextLayouterDevice ()
 constructor/destructor More...
 
 ~TextLayouterDevice () COVERITY_NOEXCEPT_FALSE
 
void setFont (const vcl::Font &rFont)
 tooling methods More...
 
void setFontAttribute (const attribute::FontAttribute &rFontAttribute, double fFontScaleX, double fFontScaleY, const css::lang::Locale &rLocale)
 
double getTextHeight () const
 
double getOverlineHeight () const
 
double getOverlineOffset () const
 
double getUnderlineHeight () const
 
double getUnderlineOffset () const
 
double getStrikeoutOffset () const
 
double getTextWidth (const OUString &rText, sal_uInt32 nIndex, sal_uInt32 nLength) const
 
void getTextOutlines (basegfx::B2DPolyPolygonVector &, const OUString &rText, sal_uInt32 nIndex, sal_uInt32 nLength, const ::std::vector< double > &rDXArray, const ::std::vector< sal_Bool > &rKashidaArray) const
 
basegfx::B2DRange getTextBoundRect (const OUString &rText, sal_uInt32 nIndex, sal_uInt32 nLength) const
 
double getFontAscent () const
 
double getFontDescent () const
 
void addTextRectActions (const tools::Rectangle &rRectangle, const OUString &rText, DrawTextFlags nStyle, GDIMetaFile &rGDIMetaFile) const
 
::std::vector< double > getTextArray (const OUString &rText, sal_uInt32 nIndex, sal_uInt32 nLength, bool bCaret=false) const
 

Private Attributes

SolarMutexGuard maSolarGuard
 internally used VirtualDevice More...
 
VirtualDevicemrDevice
 

Detailed Description

TextLayouterDevice class.

This helper class exists to isolate all accesses to VCL text formatting/handling functionality for primitive implementations. When in the future FontHandling may move to an own library independent from VCL, primitives will be prepared.

Definition at line 61 of file textlayoutdevice.hxx.

Constructor & Destructor Documentation

◆ TextLayouterDevice()

drawinglayer::primitive2d::TextLayouterDevice::TextLayouterDevice ( )

constructor/destructor

Definition at line 158 of file textlayoutdevice.cxx.

◆ ~TextLayouterDevice()

drawinglayer::primitive2d::TextLayouterDevice::~TextLayouterDevice ( )

Definition at line 163 of file textlayoutdevice.cxx.

Member Function Documentation

◆ addTextRectActions()

void drawinglayer::primitive2d::TextLayouterDevice::addTextRectActions ( const tools::Rectangle rRectangle,
const OUString &  rText,
DrawTextFlags  nStyle,
GDIMetaFile rGDIMetaFile 
) const

◆ getFontAscent()

double drawinglayer::primitive2d::TextLayouterDevice::getFontAscent ( ) const

◆ getFontDescent()

double drawinglayer::primitive2d::TextLayouterDevice::getFontDescent ( ) const

◆ getOverlineHeight()

double drawinglayer::primitive2d::TextLayouterDevice::getOverlineHeight ( ) const

◆ getOverlineOffset()

double drawinglayer::primitive2d::TextLayouterDevice::getOverlineOffset ( ) const

◆ getStrikeoutOffset()

double drawinglayer::primitive2d::TextLayouterDevice::getStrikeoutOffset ( ) const

◆ getTextArray()

std::vector< double > drawinglayer::primitive2d::TextLayouterDevice::getTextArray ( const OUString &  rText,
sal_uInt32  nIndex,
sal_uInt32  nLength,
bool  bCaret = false 
) const

◆ getTextBoundRect()

basegfx::B2DRange drawinglayer::primitive2d::TextLayouterDevice::getTextBoundRect ( const OUString &  rText,
sal_uInt32  nIndex,
sal_uInt32  nLength 
) const

◆ getTextHeight()

double drawinglayer::primitive2d::TextLayouterDevice::getTextHeight ( ) const

Definition at line 209 of file textlayoutdevice.cxx.

References OutputDevice::GetTextHeight(), and mrDevice.

◆ getTextOutlines()

void drawinglayer::primitive2d::TextLayouterDevice::getTextOutlines ( basegfx::B2DPolyPolygonVector ,
const OUString &  rText,
sal_uInt32  nIndex,
sal_uInt32  nLength,
const ::std::vector< double > &  rDXArray,
const ::std::vector< sal_Bool > &  rKashidaArray 
) const

◆ getTextWidth()

double drawinglayer::primitive2d::TextLayouterDevice::getTextWidth ( const OUString &  rText,
sal_uInt32  nIndex,
sal_uInt32  nLength 
) const

◆ getUnderlineHeight()

double drawinglayer::primitive2d::TextLayouterDevice::getUnderlineHeight ( ) const

◆ getUnderlineOffset()

double drawinglayer::primitive2d::TextLayouterDevice::getUnderlineOffset ( ) const

◆ setFont()

void drawinglayer::primitive2d::TextLayouterDevice::setFont ( const vcl::Font rFont)

◆ setFontAttribute()

void drawinglayer::primitive2d::TextLayouterDevice::setFontAttribute ( const attribute::FontAttribute rFontAttribute,
double  fFontScaleX,
double  fFontScaleY,
const css::lang::Locale &  rLocale 
)

Member Data Documentation

◆ maSolarGuard

SolarMutexGuard drawinglayer::primitive2d::TextLayouterDevice::maSolarGuard
private

internally used VirtualDevice

Definition at line 64 of file textlayoutdevice.hxx.

◆ mrDevice

VirtualDevice& drawinglayer::primitive2d::TextLayouterDevice::mrDevice
private

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