small structure to store border/fills properties in MRWText More...
Public Member Functions | |
| BorderFill () | |
| constructor | |
| bool | isDefault () const |
| return true if the properties are default properties | |
| void | resetBackgroundColor () |
| reset the background color | |
| bool | hasBackgroundColor () const |
| return true if we have a not white background color | |
| MWAWColor | getBackgroundColor (float percent) const |
| returns the background color knowing the pattern percent | |
| void | resetBorders () |
| reset the borders | |
| bool | hasBorders () const |
| return true if we have border | |
| MWAWBorder | getBorder (int pos) const |
| return a border corresponding to a pos | |
Public Attributes | |
| MWAWColor | m_foreColor |
| the foreground color | |
| MWAWColor | m_backColor |
| the background color | |
| int | m_patternId |
| the pattern id | |
| MWAWColor | m_borderColor |
| the border color | |
| int | m_borderTypes [4] |
| the border type L T R B | |
Friends | |
| std::ostream & | operator<< (std::ostream &o, BorderFill const &fill) |
| operator<< | |
small structure to store border/fills properties in MRWText
| MRWTextInternal::Paragraph::BorderFill::BorderFill | ( | ) | [inline] |
constructor
| MWAWColor MRWTextInternal::Paragraph::BorderFill::getBackgroundColor | ( | float | percent | ) | const [inline] |
returns the background color knowing the pattern percent
Referenced by MRWTextInternal::Paragraph::update().
| MWAWBorder MRWTextInternal::Paragraph::BorderFill::getBorder | ( | int | pos | ) | const |
return a border corresponding to a pos
Referenced by MRWTextInternal::Paragraph::update().
| bool MRWTextInternal::Paragraph::BorderFill::hasBackgroundColor | ( | ) | const [inline] |
return true if we have a not white background color
Referenced by isDefault(), MRWTextInternal::operator<<(), and MRWTextInternal::Paragraph::update().
| bool MRWTextInternal::Paragraph::BorderFill::hasBorders | ( | ) | const [inline] |
return true if we have border
Referenced by isDefault(), MRWTextInternal::operator<<(), and MRWTextInternal::Paragraph::update().
| bool MRWTextInternal::Paragraph::BorderFill::isDefault | ( | ) | const [inline] |
return true if the properties are default properties
Referenced by MRWTextInternal::operator<<().
| void MRWTextInternal::Paragraph::BorderFill::resetBackgroundColor | ( | ) | [inline] |
reset the background color
Referenced by MRWText::readRulers().
| void MRWTextInternal::Paragraph::BorderFill::resetBorders | ( | ) | [inline] |
reset the borders
Referenced by MRWText::readRulers().
| std::ostream& operator<< | ( | std::ostream & | o, |
| Paragraph::BorderFill const & | fill | ||
| ) | [friend] |
operator<<
the background color
Referenced by getBackgroundColor(), hasBackgroundColor(), MRWTextInternal::operator<<(), MRWText::readRulers(), and resetBackgroundColor().
the border color
Referenced by getBorder(), MRWTextInternal::operator<<(), and MRWText::readRulers().
the border type L T R B
Referenced by BorderFill(), getBorder(), hasBorders(), MRWTextInternal::operator<<(), MRWText::readRulers(), resetBorders(), and MRWTextInternal::Paragraph::update().
the foreground color
Referenced by getBackgroundColor(), hasBackgroundColor(), MRWTextInternal::operator<<(), MRWText::readRulers(), and resetBackgroundColor().
the pattern id
Referenced by hasBackgroundColor(), MRWTextInternal::operator<<(), MRWText::readRulers(), resetBackgroundColor(), and MRWText::sendTable().