LibreOffice Module starmath (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SmFace Class Referencefinal

#include <utility.hxx>

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

Public Member Functions

 SmFace ()
 
 SmFace (const Font &rFont)
 
 SmFace (const OUString &rName, const Size &rSize)
 
 SmFace (const SmFace &rFace)
 
void SetSize (const Size &rSize)
 
void SetBorderWidth (tools::Long nWidth)
 
tools::Long GetBorderWidth () const
 
tools::Long GetDefaultBorderWidth () const
 
void FreezeBorderWidth ()
 
SmFaceoperator= (const SmFace &rFace)
 
- 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
 

Private Member Functions

void Impl_Init ()
 

Private Attributes

tools::Long nBorderWidth
 

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 45 of file utility.hxx.

Constructor & Destructor Documentation

◆ SmFace() [1/4]

SmFace::SmFace ( )
inline

Definition at line 52 of file utility.hxx.

References Font, and nBorderWidth.

◆ SmFace() [2/4]

SmFace::SmFace ( const Font rFont)
inline

Definition at line 54 of file utility.hxx.

References Font, and nBorderWidth.

◆ SmFace() [3/4]

SmFace::SmFace ( const OUString &  rName,
const Size rSize 
)
inline

Definition at line 56 of file utility.hxx.

References Font, and nBorderWidth.

◆ SmFace() [4/4]

SmFace::SmFace ( const SmFace rFace)
inline

Definition at line 59 of file utility.hxx.

References Font, and nBorderWidth.

Member Function Documentation

◆ FreezeBorderWidth()

void SmFace::FreezeBorderWidth ( )
inline

◆ GetBorderWidth()

tools::Long SmFace::GetBorderWidth ( ) const

◆ GetDefaultBorderWidth()

tools::Long SmFace::GetDefaultBorderWidth ( ) const
inline

Definition at line 68 of file utility.hxx.

References vcl::Font::GetFontSize(), and Size::Height().

Referenced by GetBorderWidth().

◆ Impl_Init()

void SmFace::Impl_Init ( )
private

◆ operator=()

SmFace & SmFace::operator= ( const SmFace rFace)

Definition at line 226 of file utility.cxx.

References nBorderWidth.

◆ SetBorderWidth()

void SmFace::SetBorderWidth ( tools::Long  nWidth)
inline

Definition at line 66 of file utility.hxx.

References nBorderWidth.

Referenced by SmModel::_setPropertyValues().

◆ SetSize()

void SmFace::SetSize ( const Size rSize)

we don't force a maximum value here because this may prevent eg the parentheses in "left ( ... right )" from matching up with large bodies (eg stack{...} with many entries). Of course this is holds only if characters are used and not polygons.

Definition at line 199 of file utility.cxx.

References o3tl::convert(), Size::Height(), o3tl::pt, Size::setHeight(), and SmO3tlLengthUnit().

Referenced by SmMathSymbolNode::AdaptToX(), SmMathSymbolNode::AdaptToY(), SmBraceNode::Arrange(), Impl_Init(), operator*=(), SmSpecialNode::Prepare(), SmMathSymbolNode::Prepare(), SmNode::SetFontSize(), and SmFormat::SetFontSize().

Member Data Documentation

◆ nBorderWidth

tools::Long SmFace::nBorderWidth
private

Definition at line 47 of file utility.hxx.

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


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