LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
ImplFont Class Reference

#include <impfont.hxx>

Collaboration diagram for ImplFont:
[legend]

Public Member Functions

 ImplFont ()
 
 ImplFont (const ImplFont &)
 
const OUString & GetFamilyName () const
 
FontFamily GetFamilyType ()
 
const OUString & GetStyleName () const
 
FontWeight GetWeight ()
 
FontItalic GetItalic ()
 
FontPitch GetPitch ()
 
FontWidth GetWidthType ()
 
TextAlign GetAlignment () const
 
rtl_TextEncoding GetCharSet () const
 
const SizeGetFontSize () const
 
void SetFamilyName (const OUString &sFamilyName)
 
void SetStyleName (const OUString &sStyleName)
 
void SetFamilyType (const FontFamily eFontFamily)
 
void SetPitch (const FontPitch ePitch)
 
void SetItalic (const FontItalic eItalic)
 
void SetWeight (const FontWeight eWeight)
 
void SetWidthType (const FontWidth eWidthType)
 
void SetAlignment (const TextAlign eAlignment)
 
void SetCharSet (const rtl_TextEncoding eCharSet)
 
void SetFontSize (const Size &rSize)
 
FontFamily GetFamilyTypeNoAsk () const
 
FontWeight GetWeightNoAsk () const
 
FontItalic GetItalicNoAsk () const
 
FontPitch GetPitchNoAsk () const
 
FontWidth GetWidthTypeNoAsk () const
 
int GetQuality () const
 
void SetQuality (int nQuality)
 
void IncreaseQualityBy (int nQualityAmount)
 
void DecreaseQualityBy (int nQualityAmount)
 
tools::Long GetCalculatedAverageFontWidth () const
 
void SetCalculatedAverageFontWidth (tools::Long nNew)
 
bool operator== (const ImplFont &) const
 
bool EqualIgnoreColor (const ImplFont &) const
 
size_t GetHashValue () const
 
size_t GetHashValueIgnoreColor () const
 

Private Member Functions

void AskConfig ()
 

Private Attributes

OUString maFamilyName
 
OUString maStyleName
 
FontWeight meWeight
 
FontFamily meFamily
 
FontPitch mePitch
 
FontWidth meWidthType
 
FontItalic meItalic
 
TextAlign meAlign
 
FontLineStyle meUnderline
 
FontLineStyle meOverline
 
FontStrikeout meStrikeout
 
FontRelief meRelief
 
FontEmphasisMark meEmphasisMark
 
FontKerning meKerning
 
short mnSpacing
 
Size maAverageFontSize
 
rtl_TextEncoding meCharSet
 
LanguageTag maLanguageTag
 
LanguageTag maCJKLanguageTag
 
bool mbOutline:1
 
bool mbConfigLookup:1
 
bool mbShadow:1
 
bool mbVertical:1
 
bool mbTransparent:1
 
Color maColor
 
Color maFillColor
 
bool mbWordLine:1
 
Degree10 mnOrientation
 
int mnQuality
 
tools::Long mnCalculatedAverageFontWidth
 

Friends

class vcl::Font
 
SvStreamReadImplFont (SvStream &rIStm, ImplFont &, tools::Long &)
 
SvStreamWriteImplFont (SvStream &rOStm, const ImplFont &, tools::Long)
 

Detailed Description

Definition at line 33 of file impfont.hxx.

Constructor & Destructor Documentation

◆ ImplFont() [1/2]

ImplFont::ImplFont ( )
explicit

◆ ImplFont() [2/2]

ImplFont::ImplFont ( const ImplFont rImplFont)
explicit

Definition at line 982 of file font/font.cxx.

References maColor, maFillColor, and maLanguageTag.

Member Function Documentation

◆ AskConfig()

void ImplFont::AskConfig ( )
private

◆ DecreaseQualityBy()

void ImplFont::DecreaseQualityBy ( int  nQualityAmount)
inline

Definition at line 85 of file impfont.hxx.

References mnQuality.

◆ EqualIgnoreColor()

bool ImplFont::EqualIgnoreColor ( const ImplFont rOther) const

◆ GetAlignment()

TextAlign ImplFont::GetAlignment ( ) const
inline

Definition at line 48 of file impfont.hxx.

References meAlign.

◆ GetCalculatedAverageFontWidth()

tools::Long ImplFont::GetCalculatedAverageFontWidth ( ) const
inline

Definition at line 87 of file impfont.hxx.

References mnCalculatedAverageFontWidth.

◆ GetCharSet()

rtl_TextEncoding ImplFont::GetCharSet ( ) const
inline

Definition at line 49 of file impfont.hxx.

References meCharSet.

◆ GetFamilyName()

const OUString & ImplFont::GetFamilyName ( ) const
inline

Definition at line 40 of file impfont.hxx.

References maFamilyName.

◆ GetFamilyType()

FontFamily ImplFont::GetFamilyType ( )
inline

Definition at line 41 of file impfont.hxx.

References AskConfig(), FAMILY_DONTKNOW, and meFamily.

◆ GetFamilyTypeNoAsk()

FontFamily ImplFont::GetFamilyTypeNoAsk ( ) const
inline

Definition at line 74 of file impfont.hxx.

References meFamily.

◆ GetFontSize()

const Size & ImplFont::GetFontSize ( ) const
inline

Definition at line 50 of file impfont.hxx.

References maAverageFontSize.

◆ GetHashValue()

size_t ImplFont::GetHashValue ( ) const

Definition at line 1067 of file font/font.cxx.

References GetHashValueIgnoreColor(), o3tl::hash_combine(), maColor, and maFillColor.

◆ GetHashValueIgnoreColor()

size_t ImplFont::GetHashValueIgnoreColor ( ) const

◆ GetItalic()

FontItalic ImplFont::GetItalic ( )
inline

Definition at line 45 of file impfont.hxx.

References AskConfig(), ITALIC_DONTKNOW, and meItalic.

◆ GetItalicNoAsk()

FontItalic ImplFont::GetItalicNoAsk ( ) const
inline

Definition at line 76 of file impfont.hxx.

References meItalic.

◆ GetPitch()

FontPitch ImplFont::GetPitch ( )
inline

Definition at line 46 of file impfont.hxx.

References AskConfig(), mePitch, and PITCH_DONTKNOW.

◆ GetPitchNoAsk()

FontPitch ImplFont::GetPitchNoAsk ( ) const
inline

Definition at line 77 of file impfont.hxx.

References mePitch.

◆ GetQuality()

int ImplFont::GetQuality ( ) const
inline

Definition at line 81 of file impfont.hxx.

References mnQuality.

◆ GetStyleName()

const OUString & ImplFont::GetStyleName ( ) const
inline

Definition at line 42 of file impfont.hxx.

References maStyleName.

◆ GetWeight()

FontWeight ImplFont::GetWeight ( )
inline

Definition at line 44 of file impfont.hxx.

References AskConfig(), meWeight, and WEIGHT_DONTKNOW.

Referenced by AskConfig().

◆ GetWeightNoAsk()

FontWeight ImplFont::GetWeightNoAsk ( ) const
inline

Definition at line 75 of file impfont.hxx.

References meWeight.

◆ GetWidthType()

FontWidth ImplFont::GetWidthType ( )
inline

Definition at line 47 of file impfont.hxx.

References AskConfig(), meWidthType, and WIDTH_DONTKNOW.

◆ GetWidthTypeNoAsk()

FontWidth ImplFont::GetWidthTypeNoAsk ( ) const
inline

Definition at line 78 of file impfont.hxx.

References meWidthType.

◆ IncreaseQualityBy()

void ImplFont::IncreaseQualityBy ( int  nQualityAmount)
inline

Definition at line 84 of file impfont.hxx.

References mnQuality.

◆ operator==()

bool ImplFont::operator== ( const ImplFont rOther) const

Definition at line 1015 of file font/font.cxx.

References EqualIgnoreColor(), maColor, and maFillColor.

◆ SetAlignment()

void ImplFont::SetAlignment ( const TextAlign  eAlignment)
inline

Definition at line 60 of file impfont.hxx.

References meAlign.

◆ SetCalculatedAverageFontWidth()

void ImplFont::SetCalculatedAverageFontWidth ( tools::Long  nNew)
inline

Definition at line 88 of file impfont.hxx.

References mnCalculatedAverageFontWidth.

◆ SetCharSet()

void ImplFont::SetCharSet ( const rtl_TextEncoding  eCharSet)
inline

Definition at line 61 of file impfont.hxx.

References meCharSet.

◆ SetFamilyName()

void ImplFont::SetFamilyName ( const OUString &  sFamilyName)
inline

Definition at line 52 of file impfont.hxx.

References maFamilyName.

◆ SetFamilyType()

void ImplFont::SetFamilyType ( const FontFamily  eFontFamily)
inline

Definition at line 54 of file impfont.hxx.

References meFamily.

◆ SetFontSize()

void ImplFont::SetFontSize ( const Size rSize)
inline

Definition at line 62 of file impfont.hxx.

References Size::Height(), maAverageFontSize, and mnCalculatedAverageFontWidth.

◆ SetItalic()

void ImplFont::SetItalic ( const FontItalic  eItalic)
inline

Definition at line 57 of file impfont.hxx.

References meItalic.

◆ SetPitch()

void ImplFont::SetPitch ( const FontPitch  ePitch)
inline

Definition at line 56 of file impfont.hxx.

References mePitch.

◆ SetQuality()

void ImplFont::SetQuality ( int  nQuality)
inline

Definition at line 83 of file impfont.hxx.

References mnQuality.

◆ SetStyleName()

void ImplFont::SetStyleName ( const OUString &  sStyleName)
inline

Definition at line 53 of file impfont.hxx.

References maStyleName.

◆ SetWeight()

void ImplFont::SetWeight ( const FontWeight  eWeight)
inline

Definition at line 58 of file impfont.hxx.

References meWeight.

Referenced by AskConfig().

◆ SetWidthType()

void ImplFont::SetWidthType ( const FontWidth  eWidthType)
inline

Definition at line 59 of file impfont.hxx.

References meWidthType.

Friends And Related Function Documentation

◆ ReadImplFont

SvStream & ReadImplFont ( SvStream rIStm,
ImplFont rImplFont,
tools::Long rnNormedFontScaling 
)
friend

Definition at line 467 of file font/font.cxx.

◆ vcl::Font

friend class vcl::Font
friend

Definition at line 97 of file impfont.hxx.

◆ WriteImplFont

SvStream & WriteImplFont ( SvStream rOStm,
const ImplFont rImplFont,
tools::Long  nNormedFontScaling 
)
friend

Definition at line 546 of file font/font.cxx.

Member Data Documentation

◆ maAverageFontSize

Size ImplFont::maAverageFontSize
private

Definition at line 119 of file impfont.hxx.

Referenced by EqualIgnoreColor(), GetFontSize(), GetHashValueIgnoreColor(), and SetFontSize().

◆ maCJKLanguageTag

LanguageTag ImplFont::maCJKLanguageTag
private

Definition at line 123 of file impfont.hxx.

Referenced by EqualIgnoreColor(), and GetHashValueIgnoreColor().

◆ maColor

Color ImplFont::maColor
private

Definition at line 133 of file impfont.hxx.

Referenced by GetHashValue(), and operator==().

◆ maFamilyName

OUString ImplFont::maFamilyName
private

◆ maFillColor

Color ImplFont::maFillColor
private

Definition at line 134 of file impfont.hxx.

Referenced by GetHashValue(), and operator==().

◆ maLanguageTag

LanguageTag ImplFont::maLanguageTag
private

Definition at line 122 of file impfont.hxx.

Referenced by EqualIgnoreColor(), and GetHashValueIgnoreColor().

◆ maStyleName

OUString ImplFont::maStyleName
private

Definition at line 105 of file impfont.hxx.

Referenced by EqualIgnoreColor(), GetHashValueIgnoreColor(), GetStyleName(), and SetStyleName().

◆ mbConfigLookup

bool ImplFont::mbConfigLookup
private

Definition at line 127 of file impfont.hxx.

Referenced by AskConfig().

◆ mbOutline

bool ImplFont::mbOutline
private

Definition at line 126 of file impfont.hxx.

Referenced by EqualIgnoreColor(), and GetHashValueIgnoreColor().

◆ mbShadow

bool ImplFont::mbShadow
private

Definition at line 128 of file impfont.hxx.

Referenced by EqualIgnoreColor(), and GetHashValueIgnoreColor().

◆ mbTransparent

bool ImplFont::mbTransparent
private

Definition at line 130 of file impfont.hxx.

Referenced by EqualIgnoreColor(), and GetHashValueIgnoreColor().

◆ mbVertical

bool ImplFont::mbVertical
private

Definition at line 129 of file impfont.hxx.

Referenced by EqualIgnoreColor(), and GetHashValueIgnoreColor().

◆ mbWordLine

bool ImplFont::mbWordLine
private

Definition at line 137 of file impfont.hxx.

Referenced by EqualIgnoreColor(), and GetHashValueIgnoreColor().

◆ meAlign

TextAlign ImplFont::meAlign
private

Definition at line 111 of file impfont.hxx.

Referenced by EqualIgnoreColor(), GetAlignment(), GetHashValueIgnoreColor(), and SetAlignment().

◆ meCharSet

rtl_TextEncoding ImplFont::meCharSet
private

Definition at line 120 of file impfont.hxx.

Referenced by EqualIgnoreColor(), GetCharSet(), GetHashValueIgnoreColor(), and SetCharSet().

◆ meEmphasisMark

FontEmphasisMark ImplFont::meEmphasisMark
private

Definition at line 116 of file impfont.hxx.

Referenced by EqualIgnoreColor(), and GetHashValueIgnoreColor().

◆ meFamily

FontFamily ImplFont::meFamily
private

◆ meItalic

FontItalic ImplFont::meItalic
private

◆ meKerning

FontKerning ImplFont::meKerning
private

Definition at line 117 of file impfont.hxx.

Referenced by EqualIgnoreColor(), and GetHashValueIgnoreColor().

◆ meOverline

FontLineStyle ImplFont::meOverline
private

Definition at line 113 of file impfont.hxx.

Referenced by EqualIgnoreColor(), and GetHashValueIgnoreColor().

◆ mePitch

FontPitch ImplFont::mePitch
private

◆ meRelief

FontRelief ImplFont::meRelief
private

Definition at line 115 of file impfont.hxx.

Referenced by EqualIgnoreColor(), and GetHashValueIgnoreColor().

◆ meStrikeout

FontStrikeout ImplFont::meStrikeout
private

Definition at line 114 of file impfont.hxx.

Referenced by EqualIgnoreColor(), and GetHashValueIgnoreColor().

◆ meUnderline

FontLineStyle ImplFont::meUnderline
private

Definition at line 112 of file impfont.hxx.

Referenced by EqualIgnoreColor(), and GetHashValueIgnoreColor().

◆ meWeight

FontWeight ImplFont::meWeight
private

◆ meWidthType

FontWidth ImplFont::meWidthType
private

Definition at line 109 of file impfont.hxx.

Referenced by AskConfig(), GetWidthType(), GetWidthTypeNoAsk(), and SetWidthType().

◆ mnCalculatedAverageFontWidth

tools::Long ImplFont::mnCalculatedAverageFontWidth
private

◆ mnOrientation

Degree10 ImplFont::mnOrientation
private

Definition at line 140 of file impfont.hxx.

Referenced by EqualIgnoreColor(), and GetHashValueIgnoreColor().

◆ mnQuality

int ImplFont::mnQuality
private

Definition at line 142 of file impfont.hxx.

Referenced by DecreaseQualityBy(), GetQuality(), IncreaseQualityBy(), and SetQuality().

◆ mnSpacing

short ImplFont::mnSpacing
private

Definition at line 118 of file impfont.hxx.

Referenced by EqualIgnoreColor(), and GetHashValueIgnoreColor().


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