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

#include <txtattr.hxx>

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

Public Member Functions

 TextAttribFontColor (const Color &rColor)
 
const ColorGetColor () const
 
virtual void SetFont (vcl::Font &rFont) const override
 
virtual std::unique_ptr< TextAttribClone () const override
 
virtual bool operator== (const TextAttrib &rAttr) const override
 
- 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

Color maColor
 

Additional Inherited Members

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

Detailed Description

Definition at line 61 of file txtattr.hxx.

Constructor & Destructor Documentation

◆ TextAttribFontColor()

TextAttribFontColor::TextAttribFontColor ( const Color rColor)

Definition at line 32 of file txtattr.cxx.

References maColor.

Referenced by Clone().

Member Function Documentation

◆ Clone()

std::unique_ptr< TextAttrib > TextAttribFontColor::Clone ( ) const
overridevirtual

Implements TextAttrib.

Definition at line 42 of file txtattr.cxx.

References TextAttribFontColor().

◆ GetColor()

const Color & TextAttribFontColor::GetColor ( ) const
inline

Definition at line 69 of file txtattr.hxx.

References maColor.

Referenced by TextEngine::SeekCursor().

◆ operator==()

bool TextAttribFontColor::operator== ( const TextAttrib rAttr) const
overridevirtual

Implements TextAttrib.

Definition at line 47 of file txtattr.cxx.

References maColor.

◆ SetFont()

void TextAttribFontColor::SetFont ( vcl::Font rFont) const
overridevirtual

Implements TextAttrib.

Definition at line 37 of file txtattr.cxx.

References maColor, and vcl::Font::SetColor().

Member Data Documentation

◆ maColor

Color TextAttribFontColor::maColor
private

Definition at line 64 of file txtattr.hxx.

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


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