Internal: class to store font properties. More...
Public Member Functions | |
Font (int version=4) | |
constructor with file's version to define the default encoding */ | |
bool | hasColor () const |
returns true if the font (or background) color is set | |
void | resetColor () |
resets to undef the font and the background color | |
![]() | |
WPSFont () | |
constructor | |
virtual | ~WPSFont () |
bool | isSet () const |
accessor | |
bool | operator== (WPSFont const &ft) const |
compares to font | |
bool | operator!= (WPSFont const &ft) const |
Static Public Member Functions | |
static Font | getDefault (int version) |
returns a default font (Courier12) with file's version to define the default encoding */ | |
![]() | |
static WPSFont | getDefault () |
Public Attributes | |
libwps_tools_win::Font::Type | m_type |
the font encoding type | |
uint32_t | m_backColor |
background color index | |
bool | m_special |
a flag to know if we have a special field (a note), ... | |
int | m_dlinkId |
a id to retrieve a file name ( dos ) | |
![]() | |
std::string | m_name |
font name | |
int | m_size |
font size | |
uint32_t | m_attributes |
the font attributes defined as a set of bits | |
uint32_t | m_color |
the font color | |
int | m_languageId |
the language (simplified locale name id) if known | |
std::string | m_extra |
public field use to add a message when the font is printed |
Friends | |
std::ostream & | operator<< (std::ostream &o, Font const &ft) |
operator<< |
Internal: class to store font properties.
|
inline |
constructor with file's version to define the default encoding */
|
inlinestatic |
returns a default font (Courier12) with file's version to define the default encoding */
|
inline |
returns true if the font (or background) color is set
|
inline |
resets to undef the font and the background color
|
friend |
operator<<
uint32_t WPS4TextInternal::Font::m_backColor |
background color index
Referenced by hasColor(), WPS4TextInternal::operator<<(), WPS4Text::readFont(), and resetColor().
int WPS4TextInternal::Font::m_dlinkId |
a id to retrieve a file name ( dos )
Referenced by WPS4TextInternal::operator<<(), WPS4Text::readFont(), and WPS4Text::readText().
bool WPS4TextInternal::Font::m_special |
a flag to know if we have a special field (a note), ...
Referenced by WPS4TextInternal::operator<<(), WPS4Text::readFont(), and WPS4Text::readText().
libwps_tools_win::Font::Type WPS4TextInternal::Font::m_type |
the font encoding type
Referenced by Font(), WPS4Text::readFont(), and WPS4Text::readText().