a small struct to define the script position in MWAWFont More...
#include <MWAWFont.hxx>
Public Member Functions | |
| Script (float delta=0, WPXUnit deltaUnit=WPX_PERCENT, int scale=100) | |
| constructor More... | |
| bool | isSet () const |
| return true if the position is not default More... | |
| std::string | str (float fSize) const |
| return a string which correspond to style:text-position More... | |
| bool | operator== (Script const &oth) const |
| operator== More... | |
| bool | operator!= (Script const &oth) const |
| operator!= More... | |
| bool | operator< (Script const &oth) const |
| operator< More... | |
| bool | operator<= (Script const &oth) const |
| operator<= More... | |
| bool | operator> (Script const &oth) const |
| operator> More... | |
| bool | operator>= (Script const &oth) const |
| operator>= More... | |
| int | cmp (Script const &oth) const |
| small comparison function More... | |
Static Public Member Functions | |
| static Script | sub () |
| return a yposition which correspond to a basic subscript More... | |
| static Script | sub100 () |
| return a yposition which correspond to a basic subscript100 More... | |
| static Script | super () |
| return a yposition which correspond to a basic superscript More... | |
| static Script | super100 () |
| return a yposition which correspond to a basic superscript100 More... | |
Public Attributes | |
| float | m_delta |
| the ydelta More... | |
| WPXUnit | m_deltaUnit |
| the ydelta unit ( point or percent ) More... | |
| int | m_scale |
| the font scaling ( in percent ) More... | |
a small struct to define the script position in MWAWFont
|
inline |
constructor
Referenced by isSet(), sub(), sub100(), super(), and super100().
|
inline |
small comparison function
Referenced by MWAWFont::cmp(), operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().
|
inline |
return true if the position is not default
|
inline |
operator!=
|
inline |
operator<
|
inline |
operator<=
|
inline |
operator==
|
inline |
operator>
|
inline |
operator>=
| std::string MWAWFont::Script::str | ( | float | fSize | ) | const |
return a string which correspond to style:text-position
|
inlinestatic |
return a yposition which correspond to a basic subscript
Referenced by CWText::readChar(), CWText::readFont(), LWText::readFont2(), and NSText::readFonts().
|
inlinestatic |
return a yposition which correspond to a basic subscript100
Referenced by CWText::readChar(), MSW1Parser::readFont(), HMWJText::readFont(), HMWKText::readFont(), MSK3Text::readFont(), CWText::readFont(), MSK4Text::readFont(), MSKGraph::readFont(), MDWParser::readFonts(), WPParser::readFonts(), MWParser::readInformations(), MSWTextStyles::readParagraph(), MSKGraph::readTable(), MWParser::readText(), WNText::send(), and FWTextInternal::Font::update().
|
inlinestatic |
return a yposition which correspond to a basic superscript
Referenced by CWText::readChar(), HMWJText::readFont(), HMWKText::readFont(), CWText::readFont(), MWProStructures::readFont(), LWText::readFont2(), and NSText::readFonts().
|
inlinestatic |
return a yposition which correspond to a basic superscript100
Referenced by CWText::readChar(), MSW1Parser::readFont(), HMWJText::readFont(), HMWKText::readFont(), MSK3Text::readFont(), CWText::readFont(), MSK4Text::readFont(), MSKGraph::readFont(), MDWParser::readFonts(), WPParser::readFonts(), MWParser::readInformations(), MSWTextStyles::readParagraph(), MSKGraph::readTable(), MWParser::readText(), WNText::send(), and FWTextInternal::Font::update().
| float MWAWFont::Script::m_delta |
the ydelta
Referenced by cmp().
| WPXUnit MWAWFont::Script::m_deltaUnit |
the ydelta unit ( point or percent )
Referenced by cmp().
| int MWAWFont::Script::m_scale |
the font scaling ( in percent )
Referenced by cmp().