define the font properties More...
#include <WPSFont.h>
Public Member Functions | |
WPSFont () | |
constructor | |
virtual | ~WPSFont () |
destructor | |
void | addTo (librevenge::RVNGPropertyList &propList) const |
add to the propList | |
bool | isSet () const |
accessor | |
bool | operator== (WPSFont const &ft) const |
operator== | |
bool | operator!= (WPSFont const &ft) const |
operator!= | |
Static Public Member Functions | |
static WPSFont | getDefault () |
returns the default font ( Courier 12pt) | |
Public Attributes | |
std::string | m_name |
font name | |
double | 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, WPSFont const &ft) |
operator<< |
define the font properties
WPSFont::WPSFont | ( | ) | [inline] |
constructor
virtual WPSFont::~WPSFont | ( | ) | [inline, virtual] |
destructor
void WPSFont::addTo | ( | librevenge::RVNGPropertyList & | propList | ) | const |
add to the propList
Referenced by WKSContentListener::openSheetCell().
static WPSFont WPSFont::getDefault | ( | ) | [inline, static] |
returns the default font ( Courier 12pt)
Referenced by WPS4Text::flushExtra(), WPS8Graph::sendBorder(), WPS8Graph::sendObjects(), and WPS4Graph::sendObjects().
bool WPSFont::isSet | ( | ) | const [inline] |
accessor
bool WPSFont::operator!= | ( | WPSFont const & | ft | ) | const [inline] |
operator!=
bool WPSFont::operator== | ( | WPSFont const & | ft | ) | const |
operator==
Referenced by operator!=().
std::ostream& operator<< | ( | std::ostream & | o, |
WPSFont const & | ft | ||
) | [friend] |
operator<<
uint32_t WPSFont::m_attributes |
the font attributes defined as a set of bits
Referenced by addTo(), operator<<(), operator==(), WKS4Spreadsheet::readDOSCellProperty(), WKS4Spreadsheet::readDOSFieldProperty(), WKS4Parser::readFont(), and WPS4Text::readFont().
uint32_t WPSFont::m_color |
the font color
Referenced by addTo(), operator<<(), operator==(), WKS4Spreadsheet::readDOSCellExtraProperty(), WPS8TextStyle::readFont(), WKS4Parser::readFont(), and WPS4Text::readFont().
std::string WPSFont::m_extra |
public field use to add a message when the font is printed
Referenced by operator<<(), operator==(), WKS4Parser::readFont(), and WPS4Text::readFont().
the language (simplified locale name id) if known
Referenced by addTo(), operator==(), WPS8TextStyle::readFont(), WPSContentListener::setFont(), and WKSContentListener::setFont().
std::string WPSFont::m_name |
font name
Referenced by addTo(), WPS8TextStyleInternal::Font::def(), getDefault(), WPS4TextInternal::Font::getDefault(), WKS4ParserInternal::State::getDefaultFont(), isSet(), operator<<(), operator==(), WPS8TextStyle::readFont(), WKS4Parser::readFont(), WPS4Text::readFont(), WPSContentListener::setFont(), WKSContentListener::setFont(), WKSContentParsingState::WKSContentParsingState(), and WPSContentParsingState::WPSContentParsingState().
double WPSFont::m_size |
font size
Referenced by addTo(), WPS8TextStyleInternal::Font::def(), getDefault(), WPS4TextInternal::Font::getDefault(), WKS4ParserInternal::State::getDefaultFont(), operator<<(), operator==(), WPS8TextStyle::readFont(), WKS4Parser::readFont(), WPS4Text::readFont(), WPSContentListener::setFont(), WKSContentListener::setFont(), WKSContentParsingState::WKSContentParsingState(), and WPSContentParsingState::WPSContentParsingState().