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

#include <font.hxx>

Inheritance diagram for vcl::Font:
[legend]
Collaboration diagram for vcl::Font:
[legend]

Public Types

typedef o3tl::cow_wrapper< ImplFontImplType
 

Public Member Functions

 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
 
FontAlign GetAlignment () const
 
rtl_TextEncoding GetCharSet () const
 
bool IsSymbolFont () 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 (FontAlign)
 
void SetCharSet (rtl_TextEncoding)
 
void SetSymbolFlag (bool)
 
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 (long nHeight)
 
long GetFontHeight () const
 
void SetAverageFontWidth (long nWidth)
 
long GetAverageFontWidth () 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 (short nLineOrientation)
 
short GetOrientation () const
 
void SetVertical (bool bVertical)
 
bool IsVertical () const
 
void SetKerning (FontKerning nKerning)
 
FontKerning GetKerning () const
 
bool IsKerning () 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 IsUnderlineAbove () const
 

Static Public Member Functions

static Font identifyFont (const void *pBuffer, sal_uInt32 nLen)
 

Private Attributes

ImplType mpImplFont
 

Friends

VCL_DLLPUBLIC SvStreamReadFont (SvStream &rIStm, vcl::Font &)
 
VCL_DLLPUBLIC SvStreamWriteFont (SvStream &rOStm, const vcl::Font &)
 

Detailed Description

Definition at line 46 of file font.hxx.

Member Typedef Documentation

Definition at line 164 of file font.hxx.

Constructor & Destructor Documentation

Font::Font ( )
explicit

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

References get().

Font::Font ( const Font rFont)

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

Font::Font ( vcl::Font &&  rFont)
noexcept

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

Font::Font ( const OUString &  rFamilyName,
const Size rSize 
)
explicit

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

References mpImplFont, ImplFont::SetFamilyName(), and ImplFont::SetFontSize().

Font::Font ( const OUString &  rFamilyName,
const OUString &  rStyleName,
const Size rSize 
)
explicit
Font::Font ( FontFamily  eFamily,
const Size rSize 
)
explicit

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

References mpImplFont, ImplFont::SetFamilyType(), and ImplFont::SetFontSize().

Font::~Font ( )
virtual

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

Member Function Documentation

void Font::DecreaseQualityBy ( int  nQualityAmount)

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

References ImplFont::DecreaseQualityBy(), and mpImplFont.

FontAlign Font::GetAlignment ( ) const
long Font::GetAverageFontWidth ( ) const
rtl_TextEncoding Font::GetCharSet ( ) const
LanguageType Font::GetCJKContextLanguage ( ) const
const LanguageTag & Font::GetCJKContextLanguageTag ( ) const

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

References ImplFont::maCJKLanguageTag, and mpImplFont.

Referenced by Merge().

const Color & Font::GetColor ( ) const
FontEmphasisMark Font::GetEmphasisMark ( ) const
const OUString & Font::GetFamilyName ( ) const
FontFamily Font::GetFamilyType ( )
FontFamily Font::GetFamilyType ( ) const

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

References ImplFont::GetFamilyTypeNoAsk(), and mpImplFont.

const Color & Font::GetFillColor ( ) const
void Font::GetFontAttributes ( FontAttributes rAttrs) const
long Font::GetFontHeight ( ) const
const Size & Font::GetFontSize ( ) const
FontItalic Font::GetItalic ( )
FontItalic Font::GetItalic ( ) const

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

References ImplFont::GetItalicNoAsk(), and mpImplFont.

FontKerning Font::GetKerning ( ) const

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

References ImplFont::meKerning, and mpImplFont.

Referenced by OutputDevice::ImplPrepareLayoutArgs().

LanguageType Font::GetLanguage ( ) const
const LanguageTag & Font::GetLanguageTag ( ) const

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

References ImplFont::maLanguageTag, and mpImplFont.

Referenced by OutputDevice::ImplPrepareLayoutArgs(), and Merge().

short Font::GetOrientation ( ) const
FontLineStyle Font::GetOverline ( ) const
FontPitch Font::GetPitch ( )
FontPitch Font::GetPitch ( ) const

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

References ImplFont::GetPitchNoAsk(), and mpImplFont.

int Font::GetQuality ( ) const

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

References ImplFont::GetQuality(), and mpImplFont.

FontRelief Font::GetRelief ( ) const
FontStrikeout Font::GetStrikeout ( ) const
const OUString & Font::GetStyleName ( ) const
FontLineStyle Font::GetUnderline ( ) const
FontWeight Font::GetWeight ( )
FontWeight Font::GetWeight ( ) const

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

References ImplFont::GetWeightNoAsk(), and mpImplFont.

FontWidth Font::GetWidthType ( )

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

References ImplFont::GetWidthType(), and mpImplFont.

Referenced by Merge().

FontWidth Font::GetWidthType ( ) const

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

References ImplFont::GetWidthTypeNoAsk(), and mpImplFont.

Font Font::identifyFont ( const void pBuffer,
sal_uInt32  nLen 
)
static

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

Referenced by vcl::FontIdentificator::initialize().

void Font::IncreaseQualityBy ( int  nQualityAmount)

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

References ImplFont::IncreaseQualityBy(), and mpImplFont.

bool Font::IsKerning ( ) const

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

References ImplFont::meKerning, mpImplFont, and NONE.

Referenced by OutputDevice::ImplPrepareLayoutArgs(), and Merge().

bool Font::IsOutline ( ) const
bool Font::IsSameInstance ( const Font rFont) const

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

References mpImplFont.

Referenced by OutputDevice::SetFont().

bool Font::IsShadow ( ) const
bool Font::IsSymbolFont ( ) const

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

References ImplFont::IsSymbolFont(), and mpImplFont.

Referenced by SetSymbolFlag().

bool Font::IsTransparent ( ) const
bool vcl::Font::IsUnderlineAbove ( ) const
inline
bool Font::IsVertical ( ) const
bool Font::IsWordLineMode ( ) const
void Font::Merge ( const Font rFont)
bool vcl::Font::operator!= ( const Font rFont) const
inline

Definition at line 155 of file font.hxx.

References operator==().

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

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

References mpImplFont.

Font & Font::operator= ( vcl::Font &&  rFont)
noexcept

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

References mpImplFont.

bool Font::operator== ( const Font rFont) const

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

References mpImplFont.

Referenced by FontMetric::operator!=(), and operator!=().

void Font::SetAlignment ( FontAlign  eAlign)
void Font::SetAverageFontWidth ( long  nWidth)
void Font::SetCharSet ( rtl_TextEncoding  eCharSet)
void Font::SetCJKContextLanguage ( LanguageType  eLanguage)

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

References ImplFont::maCJKLanguageTag, mpImplFont, and LanguageTag::reset().

void Font::SetCJKContextLanguageTag ( const LanguageTag rLanguageTag)

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

References ImplFont::maCJKLanguageTag, and mpImplFont.

Referenced by Merge().

void Font::SetColor ( const Color rColor)
void Font::SetEmphasisMark ( FontEmphasisMark  eEmphasisMark)

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

References ImplFont::meEmphasisMark, and mpImplFont.

Referenced by Merge().

void Font::SetFamily ( FontFamily  eFamily)
void Font::SetFamilyName ( const OUString &  rFamilyName)
void Font::SetFillColor ( const Color rColor)
void Font::SetFontHeight ( long  nHeight)
void Font::SetFontSize ( const Size rSize)
void Font::SetItalic ( FontItalic  eItalic)
void Font::SetKerning ( FontKerning  nKerning)

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

References ImplFont::meKerning, and mpImplFont.

Referenced by Merge().

void Font::SetLanguage ( LanguageType  eLanguage)

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

References ImplFont::maLanguageTag, mpImplFont, and LanguageTag::reset().

Referenced by OutputDevice::GetDefaultFont().

void Font::SetLanguageTag ( const LanguageTag rLanguageTag)

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

References ImplFont::maLanguageTag, and mpImplFont.

Referenced by Merge().

void Font::SetOrientation ( short  nLineOrientation)
void Font::SetOutline ( bool  bOutline)
void Font::SetOverline ( FontLineStyle  eOverline)

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

References ImplFont::meOverline, and mpImplFont.

Referenced by Merge().

void Font::SetPitch ( FontPitch  ePitch)
void Font::SetQuality ( int  nQuality)

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

References mpImplFont, and ImplFont::SetQuality().

Referenced by OutputDevice::GetDevFont(), and OutputDevice::GetFontMetric().

void Font::SetRelief ( FontRelief  eRelief)

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

References ImplFont::meRelief, and mpImplFont.

Referenced by vcl::PDFWriterImpl::drawRelief(), and Merge().

void Font::SetShadow ( bool  bShadow)
void Font::SetStrikeout ( FontStrikeout  eStrikeout)

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

References ImplFont::meStrikeout, and mpImplFont.

Referenced by SVMConverter::ImplConvertFromSVM1(), and Merge().

void Font::SetStyleName ( const OUString &  rStyleName)

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

References ImplFont::maStyleName, and mpImplFont.

Referenced by OutputDevice::GetDevFont(), OutputDevice::GetFontMetric(), and Merge().

void Font::SetSymbolFlag ( bool  bSymbol)
void Font::SetTransparent ( bool  bTransparent)
void Font::SetUnderline ( FontLineStyle  eUnderline)
void Font::SetVertical ( bool  bVertical)

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

References ImplFont::mbVertical, and mpImplFont.

Referenced by Merge().

void Font::SetWeight ( FontWeight  eWeight)
void Font::SetWidthType ( FontWidth  eWidth)
void Font::SetWordLineMode ( bool  bWordLine)

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

References ImplFont::mbWordLine, and mpImplFont.

Referenced by Merge().

Friends And Related Function Documentation

VCL_DLLPUBLIC SvStream& ReadFont ( SvStream rIStm,
vcl::Font  
)
friend

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

VCL_DLLPUBLIC SvStream& WriteFont ( SvStream rOStm,
const vcl::Font  
)
friend

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

Member Data Documentation

ImplType vcl::Font::mpImplFont
private

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