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 (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 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 48 of file include/vcl/font.hxx.

Member Typedef Documentation

Definition at line 169 of file include/vcl/font.hxx.

Constructor & Destructor Documentation

Font::Font ( )
explicit

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

References get().

Font::Font ( const Font rFont)

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

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

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

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

Definition at line 65 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 78 of file font/font.cxx.

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

Font::~Font ( )
virtual

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

Member Function Documentation

void Font::DecreaseQualityBy ( int  nQualityAmount)

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

References ImplFont::DecreaseQualityBy(), and mpImplFont.

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

Definition at line 839 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 857 of file font/font.cxx.

References ImplFont::GetFamilyTypeNoAsk(), and mpImplFont.

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

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

References ImplFont::GetItalicNoAsk(), and mpImplFont.

FontKerning Font::GetKerning ( ) const

Definition at line 845 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 838 of file font/font.cxx.

References ImplFont::maLanguageTag, and mpImplFont.

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

tools::Long Font::GetOrCalculateAverageFontWidth ( ) const
Degree10 Font::GetOrientation ( ) const
FontLineStyle Font::GetOverline ( ) const
FontPitch Font::GetPitch ( )
FontPitch Font::GetPitch ( ) const

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

References ImplFont::GetPitchNoAsk(), and mpImplFont.

int Font::GetQuality ( ) const

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

References ImplFont::GetQuality(), and mpImplFont.

FontRelief Font::GetRelief ( ) const
FontStrikeout Font::GetStrikeout ( ) const
const OUString & Font::GetStyleName ( ) const

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

References ImplFont::maStyleName, and mpImplFont.

Referenced by Merge(), and MetafileXmlDump::writeXml().

FontLineStyle Font::GetUnderline ( ) const
FontWeight Font::GetWeight ( )
FontWeight Font::GetWeight ( ) const

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

References ImplFont::GetWeightNoAsk(), and mpImplFont.

FontWidth Font::GetWidthType ( )

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

References ImplFont::GetWidthType(), and mpImplFont.

Referenced by Merge().

FontWidth Font::GetWidthType ( ) const

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

References ImplFont::GetWidthTypeNoAsk(), and mpImplFont.

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

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

void Font::IncreaseQualityBy ( int  nQualityAmount)

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

References ImplFont::IncreaseQualityBy(), and mpImplFont.

bool Font::IsKerning ( ) const

Definition at line 218 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 872 of file font/font.cxx.

References mpImplFont.

Referenced by OutputDevice::SetFont().

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

Definition at line 150 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

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

References ImplFont::mbWordLine, and mpImplFont.

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

void Font::Merge ( const Font rFont)
bool vcl::Font::operator!= ( const Font rFont) const
inline

Definition at line 160 of file include/vcl/font.hxx.

References operator==().

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

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

References mpImplFont.

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

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

References mpImplFont.

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

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

References mpImplFont.

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

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

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

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

void Font::SetCJKContextLanguageTag ( const LanguageTag rLanguageTag)

Definition at line 176 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 277 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 ( tools::Long  nHeight)
void Font::SetFontSize ( const Size rSize)
void Font::SetItalic ( FontItalic  eItalic)
void Font::SetKerning ( FontKerning  nKerning)

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

References ImplFont::meKerning, and mpImplFont.

Referenced by Merge().

void Font::SetLanguage ( LanguageType  eLanguage)
void Font::SetLanguageTag ( const LanguageTag rLanguageTag)

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

References maLanguageTag, ImplFont::maLanguageTag, and mpImplFont.

Referenced by Merge().

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

Definition at line 259 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 860 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 271 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 265 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 120 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 206 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 283 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 514 of file font/font.cxx.

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

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

Member Data Documentation

ImplType vcl::Font::mpImplFont
private

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