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

#include <metric.hxx>

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

Public Member Functions

 FontMetric ()
 
 FontMetric (const FontMetric &)
 
 FontMetric (vcl::font::PhysicalFontFace const &rFace)
 
 ~FontMetric () override
 
tools::Long GetAscent () const
 
tools::Long GetDescent () const
 
tools::Long GetInternalLeading () const
 
tools::Long GetExternalLeading () const
 
tools::Long GetLineHeight () const
 
tools::Long GetSlant () const
 
tools::Long GetBulletOffset () const
 
tools::Long GetHangingBaseline () const
 
void SetAscent (tools::Long nAscent)
 
void SetDescent (tools::Long nDescent)
 
void SetExternalLeading (tools::Long nExtLeading)
 
void SetInternalLeading (tools::Long nIntLeading)
 
void SetLineHeight (tools::Long nHeight)
 
void SetSlant (tools::Long nSlant)
 
void SetBulletOffset (tools::Long nOffset)
 
void SetHangingBaseline (tools::Long nBaseline)
 
bool IsFullstopCentered () const
 
void SetFullstopCenteredFlag (bool bCentered)
 
FontMetricoperator= (const FontMetric &rMetric)
 
FontMetricoperator= (FontMetric &&rMetric)
 
bool operator== (const FontMetric &rMetric) const
 
bool operator!= (const FontMetric &rMetric) const
 
bool EqualIgnoreColor (const FontMetric &) const
 
size_t GetHashValue () const
 
size_t GetHashValueIgnoreColor () const
 
- 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
 
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 (TextAlign)
 
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 EqualIgnoreColor (const Font &) const
 
size_t GetHashValue () const
 
size_t GetHashValueIgnoreColor () const
 
bool IsUnderlineAbove () const
 

Private Member Functions

bool EqualNoBase (const FontMetric &) const
 
size_t GetHashValueNoBase () const
 

Private Attributes

tools::Long mnAscent
 
tools::Long mnDescent
 
tools::Long mnIntLeading
 
tools::Long mnExtLeading
 
tools::Long mnLineHeight
 
tools::Long mnSlant
 
tools::Long mnBulletOffset
 
tools::Long mnHangingBaseline
 
bool mbFullstopCentered
 

Additional Inherited Members

- Public Types inherited from vcl::Font
typedef o3tl::cow_wrapper< ImplFontImplType
 
- Static Public Member Functions inherited from vcl::Font
static Font identifyFont (const void *pBuffer, sal_uInt32 nLen)
 

Detailed Description

Definition at line 35 of file metric.hxx.

Constructor & Destructor Documentation

FontMetric::FontMetric ( )
explicit

Definition at line 44 of file fontmetric.cxx.

References false.

FontMetric::FontMetric ( const FontMetric )
default
FontMetric::FontMetric ( vcl::font::PhysicalFontFace const &  rFace)
FontMetric::~FontMetric ( )
override

Definition at line 73 of file fontmetric.cxx.

Member Function Documentation

bool FontMetric::EqualIgnoreColor ( const FontMetric r) const

Definition at line 106 of file fontmetric.cxx.

References EqualNoBase().

bool FontMetric::EqualNoBase ( const FontMetric r) const
private

Definition at line 81 of file fontmetric.cxx.

References mbFullstopCentered, mnAscent, mnDescent, mnExtLeading, mnIntLeading, and mnSlant.

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

tools::Long FontMetric::GetAscent ( ) const
inline
tools::Long FontMetric::GetBulletOffset ( ) const
inline

Definition at line 49 of file metric.hxx.

tools::Long FontMetric::GetDescent ( ) const
inline
tools::Long FontMetric::GetExternalLeading ( ) const
inline

Definition at line 46 of file metric.hxx.

Referenced by operator<<().

tools::Long FontMetric::GetHangingBaseline ( ) const
inline

Definition at line 50 of file metric.hxx.

size_t FontMetric::GetHashValue ( ) const

Definition at line 125 of file fontmetric.cxx.

References GetHashValueNoBase(), and o3tl::hash_combine().

size_t FontMetric::GetHashValueIgnoreColor ( ) const
size_t FontMetric::GetHashValueNoBase ( ) const
private
tools::Long FontMetric::GetInternalLeading ( ) const
inline

Definition at line 45 of file metric.hxx.

Referenced by operator<<().

tools::Long FontMetric::GetLineHeight ( ) const
inline

Definition at line 47 of file metric.hxx.

Referenced by vcl::PDFWriterImpl::drawLayout(), and operator<<().

tools::Long FontMetric::GetSlant ( ) const
inline

Definition at line 48 of file metric.hxx.

Referenced by operator<<().

bool FontMetric::IsFullstopCentered ( ) const
inline

Definition at line 61 of file metric.hxx.

bool FontMetric::operator!= ( const FontMetric rMetric) const
inline

Definition at line 69 of file metric.hxx.

References vcl::Font::operator==().

FontMetric & FontMetric::operator= ( const FontMetric rMetric)
default
FontMetric & FontMetric::operator= ( FontMetric &&  rMetric)
default
bool FontMetric::operator== ( const FontMetric rMetric) const

Definition at line 99 of file fontmetric.cxx.

References EqualNoBase().

void FontMetric::SetAscent ( tools::Long  nAscent)
inline

Definition at line 52 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

void FontMetric::SetBulletOffset ( tools::Long  nOffset)
inline

Definition at line 58 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

void FontMetric::SetDescent ( tools::Long  nDescent)
inline

Definition at line 53 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

void FontMetric::SetExternalLeading ( tools::Long  nExtLeading)
inline

Definition at line 54 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

void FontMetric::SetFullstopCenteredFlag ( bool  bCentered)
inline

Definition at line 63 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

void FontMetric::SetHangingBaseline ( tools::Long  nBaseline)
inline

Definition at line 59 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

void FontMetric::SetInternalLeading ( tools::Long  nIntLeading)
inline

Definition at line 55 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

void FontMetric::SetLineHeight ( tools::Long  nHeight)
inline

Definition at line 56 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

void FontMetric::SetSlant ( tools::Long  nSlant)
inline

Definition at line 57 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

Member Data Documentation

bool FontMetric::mbFullstopCentered
private

Definition at line 90 of file metric.hxx.

Referenced by EqualNoBase(), and GetHashValueNoBase().

tools::Long FontMetric::mnAscent
private

Definition at line 81 of file metric.hxx.

Referenced by EqualNoBase(), and GetHashValueNoBase().

tools::Long FontMetric::mnBulletOffset
private

Definition at line 87 of file metric.hxx.

tools::Long FontMetric::mnDescent
private

Definition at line 82 of file metric.hxx.

Referenced by EqualNoBase(), and GetHashValueNoBase().

tools::Long FontMetric::mnExtLeading
private

Definition at line 84 of file metric.hxx.

Referenced by EqualNoBase(), and GetHashValueNoBase().

tools::Long FontMetric::mnHangingBaseline
private

Definition at line 88 of file metric.hxx.

tools::Long FontMetric::mnIntLeading
private

Definition at line 83 of file metric.hxx.

Referenced by EqualNoBase(), and GetHashValueNoBase().

tools::Long FontMetric::mnLineHeight
private

Definition at line 85 of file metric.hxx.

tools::Long FontMetric::mnSlant
private

Definition at line 86 of file metric.hxx.

Referenced by EqualNoBase(), and GetHashValueNoBase().


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