a small struct to define a line in MWAWFont More...
#include <MWAWFont.hxx>
Public Types | |
| enum | Style { None, Simple, Dot, LargeDot, Dash, Wave } |
| the line style More... | |
| enum | Type { Single, Double, Triple } |
| the line style More... | |
Public Member Functions | |
| Line (Style style=None, Type type=Single, bool wordFlag=false, float w=1.0) | |
| constructor | |
| bool | isSet () const |
| return true if the line is not empty | |
| void | addTo (librevenge::RVNGPropertyList &propList, std::string const &type) const |
| add a line to the propList knowing the type (line-through, underline, overline ) | |
| bool | operator== (Line const &oth) const |
| operator== | |
| bool | operator!= (Line const &oth) const |
| operator!= | |
| int | cmp (Line const &oth) const |
| small comparison function | |
Public Attributes | |
| Style | m_style |
| the style | |
| Type | m_type |
| the type | |
| bool | m_word |
| word or not word line | |
| float | m_width |
| the width in point | |
| MWAWVariable< MWAWColor > | m_color |
| the color ( if not set, we use the font color ) | |
Friends | |
| std::ostream & | operator<< (std::ostream &o, Line const &line) |
| operator<< | |
a small struct to define a line in MWAWFont
| enum MWAWFont::Line::Type |
| MWAWFont::Line::Line | ( | Style | style = None, |
| Type | type = Single, |
||
| bool | wordFlag = false, |
||
| float | w = 1.0 |
||
| ) | [inline] |
constructor
| void MWAWFont::Line::addTo | ( | librevenge::RVNGPropertyList & | propList, |
| std::string const & | type | ||
| ) | const |
add a line to the propList knowing the type (line-through, underline, overline )
Referenced by MWAWFont::addTo().
| int MWAWFont::Line::cmp | ( | Line const & | oth | ) | const [inline] |
small comparison function
Referenced by operator!=(), and operator==().
| bool MWAWFont::Line::isSet | ( | ) | const [inline] |
return true if the line is not empty
Referenced by addTo(), MWAWFont::addTo(), MWAWFont::getDebugString(), MWAWFont::hasDecorationLines(), LightWayTxtTextInternal::Font::merge(), operator<<(), MoreText::sendText(), and MsWrdStruct::Font::updateFontToFinalState().
| bool MWAWFont::Line::operator!= | ( | Line const & | oth | ) | const [inline] |
operator!=
| bool MWAWFont::Line::operator== | ( | Line const & | oth | ) | const [inline] |
operator==
| std::ostream& operator<< | ( | std::ostream & | o, |
| MWAWFont::Line const & | line | ||
| ) | [friend] |
operator<<
the color ( if not set, we use the font color )
Referenced by addTo(), cmp(), operator<<(), MWAWFont::setOverlineColor(), MWAWFont::setStrikeOutColor(), and MWAWFont::setUnderlineColor().
the style
Referenced by addTo(), cmp(), isSet(), operator<<(), MsWrdTextStyles::readFont(), MWAWFont::setOverlineStyle(), MWAWFont::setStrikeOutStyle(), and MWAWFont::setUnderlineStyle().
the type
Referenced by addTo(), cmp(), operator<<(), MWAWFont::setOverlineType(), MWAWFont::setStrikeOutType(), and MWAWFont::setUnderlineType().
| float MWAWFont::Line::m_width |
the width in point
Referenced by addTo(), cmp(), isSet(), operator<<(), MWAWFont::setOverlineWidth(), MWAWFont::setStrikeOutWidth(), and MWAWFont::setUnderlineWidth().
word or not word line
Referenced by addTo(), cmp(), operator<<(), MWAWFont::setOverlineWordFlag(), MWAWFont::setStrikeOutWordFlag(), and MWAWFont::setUnderlineWordFlag().