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

#include <txtattr.hxx>

Inheritance diagram for TextAttribFontWeight:
Collaboration diagram for TextAttribFontWeight:

Public Member Functions

 TextAttribFontWeight (FontWeight eWeight)
virtual void SetFont (vcl::Font &rFont) const override
virtual std::unique_ptr< TextAttribClone () const override
virtual bool operator== (const TextAttrib &rAttr) const override
FontWeight getFontWeight () const
- Public Member Functions inherited from TextAttrib
virtual ~TextAttrib ()
sal_uInt16 Which () const
virtual void SetFont (vcl::Font &rFont) const =0
virtual std::unique_ptr< TextAttribClone () const =0
virtual bool operator== (const TextAttrib &rAttr) const =0
bool operator!= (const TextAttrib &rAttr) const

Private Attributes

FontWeight meWeight

Additional Inherited Members

- Protected Member Functions inherited from TextAttrib
 TextAttrib (sal_uInt16 nWhich)
 TextAttrib (const TextAttrib &)=default

Detailed Description

Definition at line 77 of file txtattr.hxx.

Constructor & Destructor Documentation

◆ TextAttribFontWeight()

TextAttribFontWeight::TextAttribFontWeight ( FontWeight  eWeight)

Definition at line 53 of file txtattr.cxx.

Referenced by Clone().

Member Function Documentation

◆ Clone()

std::unique_ptr< TextAttrib > TextAttribFontWeight::Clone ( ) const

Implements TextAttrib.

Definition at line 63 of file txtattr.cxx.

References TextAttribFontWeight().

◆ getFontWeight()

FontWeight TextAttribFontWeight::getFontWeight ( ) const

Definition at line 89 of file txtattr.hxx.

◆ operator==()

bool TextAttribFontWeight::operator== ( const TextAttrib rAttr) const

Implements TextAttrib.

Definition at line 68 of file txtattr.cxx.

References meWeight.

◆ SetFont()

void TextAttribFontWeight::SetFont ( vcl::Font rFont) const

Implements TextAttrib.

Definition at line 58 of file txtattr.cxx.

References meWeight, and vcl::Font::SetWeight().

Member Data Documentation

◆ meWeight

FontWeight TextAttribFontWeight::meWeight

Definition at line 80 of file txtattr.hxx.

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

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