LibreOffice Module editeng (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SvxFont Class Reference

#include <svxfont.hxx>

Inheritance diagram for SvxFont:
[legend]
Collaboration diagram for SvxFont:
[legend]

Public Member Functions

 SvxFont ()
 
 SvxFont (const vcl::Font &rFont)
 
 SvxFont (const SvxFont &rFont)
 
short GetEscapement () const
 
void SetEscapement (const short nNewEsc)
 
void SetNonAutoEscapement (short nNewEsc, const OutputDevice *pOutDev=nullptr)
 
sal_uInt8 GetPropr () const
 
void SetPropr (const sal_uInt8 nNewPropr)
 
void SetProprRel (const sal_uInt8 nNewPropr)
 
SvxCaseMap GetCaseMap () const
 
void SetCaseMap (const SvxCaseMap eNew)
 
bool IsCaseMap () const
 
bool IsCapital () const
 
bool IsEsc () const
 
OUString CalcCaseMap (const OUString &rTxt) const
 
void DoOnCapitals (SvxDoCapitals &rDo) const
 
void SetPhysFont (OutputDevice &rOut) const
 
vcl::Font ChgPhysFont (OutputDevice &rOut) const
 
Size GetCapitalSize (const OutputDevice *pOut, const OUString &rTxt, const sal_Int32 nIdx, const sal_Int32 nLen) const
 
void DrawCapital (OutputDevice *pOut, const Point &rPos, const OUString &rTxt, const sal_Int32 nIdx, const sal_Int32 nLen) const
 
Size GetPhysTxtSize (const OutputDevice *pOut, const OUString &rTxt, const sal_Int32 nIdx, const sal_Int32 nLen) const
 
Size GetPhysTxtSize (const OutputDevice *pOut)
 
Size GetTextSize (const OutputDevice &rOut, const OUString &rTxt, const sal_Int32 nIdx=0, const sal_Int32 nLen=SAL_MAX_INT32) const
 
void QuickDrawText (OutputDevice *pOut, const Point &rPos, const OUString &rTxt, const sal_Int32 nIdx=0, const sal_Int32 nLen=SAL_MAX_INT32, o3tl::span< const sal_Int32 > pDXArray={}, o3tl::span< const sal_Bool > pKashidaArray={}) const
 
Size QuickGetTextSize (const OutputDevice *pOut, const OUString &rTxt, const sal_Int32 nIdx, const sal_Int32 nLen, KernArray *pDXArray=nullptr) const
 
void DrawPrev (OutputDevice *pOut, Printer *pPrinter, const Point &rPos, const OUString &rTxt, const sal_Int32 nIdx=0, const sal_Int32 nLen=SAL_MAX_INT32) const
 
SvxFontoperator= (const SvxFont &rFont)
 
SvxFontoperator= (const Font &rFont)
 
- Public Member Functions inherited from vcl::Font
 Font ()
 
 Font (const Font &)
 
 Font (Font &&) noexcept
 
 Font (const OUString &rFamilyName, const Size &)
 
 Font (const OUString &rFamilyName, const OUString &rStyleName, const Size &)
 
 Font (FontFamily eFamily, const Size &)
 
virtual ~Font ()
 
const OUString & GetFamilyName () const
 
FontFamily GetFamilyType ()
 
FontFamily GetFamilyType () const
 
const OUString & GetStyleName () const
 
FontWeight GetWeight ()
 
FontWeight GetWeight () const
 
FontItalic GetItalic ()
 
FontItalic GetItalic () const
 
FontPitch GetPitch ()
 
FontPitch GetPitch () const
 
FontWidth GetWidthType ()
 
FontWidth GetWidthType () const
 
TextAlign GetAlignment () const
 
rtl_TextEncoding GetCharSet () const
 
FontEmphasisMark GetEmphasisMarkStyle () const
 
void SetFamilyName (const OUString &rFamilyName)
 
void SetStyleName (const OUString &rStyleName)
 
void SetFamily (FontFamily)
 
void SetPitch (FontPitch ePitch)
 
void SetItalic (FontItalic)
 
void SetWeight (FontWeight)
 
void SetWidthType (FontWidth)
 
void SetAlignment (TextAlign)
 
void SetCharSet (rtl_TextEncoding)
 
int GetQuality () const
 
void SetQuality (int)
 
void IncreaseQualityBy (int)
 
void DecreaseQualityBy (int)
 
const ColorGetColor () const
 
const ColorGetFillColor () const
 
bool IsTransparent () const
 
void SetColor (const Color &)
 
void SetFillColor (const Color &)
 
void SetTransparent (bool bTransparent)
 
void SetFontSize (const Size &)
 
const SizeGetFontSize () const
 
void SetFontHeight (tools::Long nHeight)
 
tools::Long GetFontHeight () const
 
void SetAverageFontWidth (tools::Long nWidth)
 
tools::Long GetAverageFontWidth () const
 
tools::Long GetOrCalculateAverageFontWidth () const
 
void SetLanguageTag (const LanguageTag &)
 
const LanguageTagGetLanguageTag () const
 
void SetCJKContextLanguageTag (const LanguageTag &)
 
const LanguageTagGetCJKContextLanguageTag () const
 
void SetLanguage (LanguageType)
 
LanguageType GetLanguage () const
 
void SetCJKContextLanguage (LanguageType)
 
LanguageType GetCJKContextLanguage () const
 
void SetOrientation (Degree10 nLineOrientation)
 
Degree10 GetOrientation () const
 
void SetVertical (bool bVertical)
 
bool IsVertical () const
 
void SetKerning (FontKerning nKerning)
 
FontKerning GetKerning () const
 
bool IsKerning () const
 
void SetFixKerning (const short nSpacing)
 
short GetFixKerning () const
 
bool IsFixKerning () const
 
void SetOutline (bool bOutline)
 
bool IsOutline () const
 
void SetShadow (bool bShadow)
 
bool IsShadow () const
 
void SetRelief (FontRelief)
 
FontRelief GetRelief () const
 
void SetUnderline (FontLineStyle)
 
FontLineStyle GetUnderline () const
 
void SetOverline (FontLineStyle)
 
FontLineStyle GetOverline () const
 
void SetStrikeout (FontStrikeout)
 
FontStrikeout GetStrikeout () const
 
void SetEmphasisMark (FontEmphasisMark)
 
FontEmphasisMark GetEmphasisMark () const
 
void SetWordLineMode (bool bWordLine)
 
bool IsWordLineMode () const
 
void Merge (const Font &rFont)
 
void GetFontAttributes (FontAttributes &rAttrs) const
 
Fontoperator= (const Font &)
 
Fontoperator= (Font &&) noexcept
 
bool operator== (const Font &) const
 
bool operator!= (const Font &rFont) const
 
bool IsSameInstance (const Font &) const
 
bool EqualIgnoreColor (const Font &) const
 
size_t GetHashValueIgnoreColor () const
 
bool IsUnderlineAbove () const
 

Static Public Member Functions

static tools::Polygon DrawArrow (OutputDevice &rOut, const tools::Rectangle &rRect, const Size &rSize, const Color &rCol, bool bLeftOrTop, bool bVertical)
 
- Static Public Member Functions inherited from vcl::Font
static Font identifyFont (const void *pBuffer, sal_uInt32 nLen)
 

Private Attributes

SvxCaseMap eCaseMap
 
short nEsc
 
sal_uInt8 nPropr
 

Additional Inherited Members

- Public Types inherited from vcl::Font
typedef o3tl::cow_wrapper< ImplFontImplType
 

Detailed Description

Definition at line 40 of file svxfont.hxx.

Constructor & Destructor Documentation

◆ SvxFont() [1/3]

SvxFont::SvxFont ( )

Definition at line 43 of file svxfont.cxx.

References eCaseMap, LANGUAGE_SYSTEM, nEsc, NotMapped, nPropr, and vcl::Font::SetLanguage().

◆ SvxFont() [2/3]

SvxFont::SvxFont ( const vcl::Font rFont)

Definition at line 51 of file svxfont.cxx.

References eCaseMap, Font, LANGUAGE_SYSTEM, nEsc, NotMapped, nPropr, and vcl::Font::SetLanguage().

◆ SvxFont() [3/3]

SvxFont::SvxFont ( const SvxFont rFont)

Member Function Documentation

◆ CalcCaseMap()

OUString SvxFont::CalcCaseMap ( const OUString &  rTxt) const

◆ ChgPhysFont()

vcl::Font SvxFont::ChgPhysFont ( OutputDevice rOut) const

Definition at line 401 of file svxfont.cxx.

References OutputDevice::GetFont(), and SetPhysFont().

Referenced by DrawPrev(), and GetTextSize().

◆ DoOnCapitals()

void SvxFont::DoOnCapitals ( SvxDoCapitals rDo) const

◆ DrawArrow()

tools::Polygon SvxFont::DrawArrow ( OutputDevice rOut,
const tools::Rectangle rRect,
const Size rSize,
const Color rCol,
bool  bLeftOrTop,
bool  bVertical 
)
static

◆ DrawCapital()

void SvxFont::DrawCapital ( OutputDevice pOut,
const Point rPos,
const OUString &  rTxt,
const sal_Int32  nIdx,
const sal_Int32  nLen 
) const

Definition at line 855 of file svxfont.cxx.

References DoOnCapitals(), vcl::Font::GetFixKerning(), and pOut.

Referenced by DrawPrev(), and QuickDrawText().

◆ DrawPrev()

void SvxFont::DrawPrev ( OutputDevice pOut,
Printer pPrinter,
const Point rPos,
const OUString &  rTxt,
const sal_Int32  nIdx = 0,
const sal_Int32  nLen = SAL_MAX_INT32 
) const

◆ GetCapitalSize()

Size SvxFont::GetCapitalSize ( const OutputDevice pOut,
const OUString &  rTxt,
const sal_Int32  nIdx,
const sal_Int32  nLen 
) const

◆ GetCaseMap()

SvxCaseMap SvxFont::GetCaseMap ( ) const
inline

Definition at line 62 of file svxfont.hxx.

Referenced by EditEngine::SetFontInfoInItemSet(), and SvxFont().

◆ GetEscapement()

short SvxFont::GetEscapement ( ) const
inline

◆ GetPhysTxtSize() [1/2]

Size SvxFont::GetPhysTxtSize ( const OutputDevice pOut)

◆ GetPhysTxtSize() [2/2]

Size SvxFont::GetPhysTxtSize ( const OutputDevice pOut,
const OUString &  rTxt,
const sal_Int32  nIdx,
const sal_Int32  nLen 
) const

◆ GetPropr()

sal_uInt8 SvxFont::GetPropr ( ) const
inline

◆ GetTextSize()

Size SvxFont::GetTextSize ( const OutputDevice rOut,
const OUString &  rTxt,
const sal_Int32  nIdx = 0,
const sal_Int32  nLen = SAL_MAX_INT32 
) const

◆ IsCapital()

bool SvxFont::IsCapital ( ) const
inline

Definition at line 67 of file svxfont.hxx.

References SmallCaps.

Referenced by DrawPrev(), GetTextSize(), and QuickDrawText().

◆ IsCaseMap()

bool SvxFont::IsCaseMap ( ) const
inline

Definition at line 66 of file svxfont.hxx.

References NotMapped.

Referenced by CalcCaseMap(), DrawPrev(), GetPhysTxtSize(), QuickDrawText(), and QuickGetTextSize().

◆ IsEsc()

bool SvxFont::IsEsc ( ) const
inline

Definition at line 68 of file svxfont.hxx.

Referenced by QuickDrawText().

◆ operator=() [1/2]

SvxFont & SvxFont::operator= ( const Font rFont)

◆ operator=() [2/2]

SvxFont & SvxFont::operator= ( const SvxFont rFont)

Definition at line 685 of file svxfont.cxx.

References eCaseMap, nEsc, and nPropr.

◆ QuickDrawText()

void SvxFont::QuickDrawText ( OutputDevice pOut,
const Point rPos,
const OUString &  rTxt,
const sal_Int32  nIdx = 0,
const sal_Int32  nLen = SAL_MAX_INT32,
o3tl::span< const sal_Int32 >  pDXArray = {},
o3tl::span< const sal_Bool pKashidaArray = {} 
) const

◆ QuickGetTextSize()

Size SvxFont::QuickGetTextSize ( const OutputDevice pOut,
const OUString &  rTxt,
const sal_Int32  nIdx,
const sal_Int32  nLen,
KernArray pDXArray = nullptr 
) const

◆ SetCaseMap()

void SvxFont::SetCaseMap ( const SvxCaseMap  eNew)
inline

Definition at line 63 of file svxfont.hxx.

Referenced by CreateFont(), and EditCharAttribCaseMap::SetFont().

◆ SetEscapement()

void SvxFont::SetEscapement ( const short  nNewEsc)
inline

Definition at line 53 of file svxfont.hxx.

Referenced by ImpEditEngine::Paint(), and ImpEditEngine::SeekCursor().

◆ SetNonAutoEscapement()

void SvxFont::SetNonAutoEscapement ( short  nNewEsc,
const OutputDevice pOutDev = nullptr 
)

◆ SetPhysFont()

void SvxFont::SetPhysFont ( OutputDevice rOut) const

◆ SetPropr()

void SvxFont::SetPropr ( const sal_uInt8  nNewPropr)
inline

◆ SetProprRel()

void SvxFont::SetProprRel ( const sal_uInt8  nNewPropr)
inline

Definition at line 59 of file svxfont.hxx.

Member Data Documentation

◆ eCaseMap

SvxCaseMap SvxFont::eCaseMap
private

Definition at line 42 of file svxfont.hxx.

Referenced by CalcCaseMap(), operator=(), and SvxFont().

◆ nEsc

short SvxFont::nEsc
private

Definition at line 43 of file svxfont.hxx.

Referenced by DrawPrev(), operator=(), QuickDrawText(), SetNonAutoEscapement(), and SvxFont().

◆ nPropr

sal_uInt8 SvxFont::nPropr
private

Definition at line 44 of file svxfont.hxx.

Referenced by DrawPrev(), operator=(), SetNonAutoEscapement(), SetPhysFont(), and SvxFont().


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