Internal: class to store the paragraph properties. More...
Public Member Functions | |
| Paragraph () | |
| Constructor. | |
| bool | isTable () const |
| returns true if this is a table | |
| void | setAlign (int align) |
| set the align type | |
| void | setInterlineSpacing (double spacing, WPXUnit unit) |
| set the interline spacing | |
| void | setSpacings (double spacing, bool before) |
| set the before/after spacing ( negative in point, positive in percent ) | |
| void | setBorder (FWStruct::Border border) |
| set the border type | |
| void | updateFromRuler (Paragraph const &ruler) |
| update the paragraph data from a ruler | |
| bool | getTableDimensions (std::vector< float > &dim) const |
| returns the table dimension in points | |
| MWAWParagraph | updateToSent () const |
| update the paragraph data to be sent to a listener | |
Public Attributes | |
| int | m_align |
| the align value | |
| double | m_interSpacing |
| the spacing | |
| WPXUnit | m_interSpacingUnit |
| the spacing unit | |
| double | m_befAftSpacings [2] |
| the before/after spacing ( negative in point, positive in percent) | |
| Vec2f | m_dim |
| the zone dimension | |
| FWStruct::Border | m_border |
| the actual border | |
| bool | m_isTable |
| a flag to know if this is a table | |
| int | m_tableBorderId |
| the table border id | |
| std::vector< int > | m_tableFlags |
| the list of table limit | |
| int | m_actCol |
| the index of the actual column to send | |
| bool | m_isSent |
| a flag to know if the parser is send or not | |
Friends | |
| std::ostream & | operator<< (std::ostream &o, Paragraph const &ind) |
| operator<< | |
Internal: class to store the paragraph properties.
| FWTextInternal::Paragraph::Paragraph | ( | ) | [inline] |
Constructor.
| bool FWTextInternal::Paragraph::getTableDimensions | ( | std::vector< float > & | dim | ) | const [inline] |
returns the table dimension in points
Referenced by FWText::sendTable().
| bool FWTextInternal::Paragraph::isTable | ( | ) | const [inline] |
returns true if this is a table
Referenced by FWText::send().
| void FWTextInternal::Paragraph::setAlign | ( | int | align | ) | [inline] |
set the align type
Referenced by FWText::send().
| void FWTextInternal::Paragraph::setBorder | ( | FWStruct::Border | border | ) | [inline] |
set the border type
Referenced by FWText::send().
| void FWTextInternal::Paragraph::setInterlineSpacing | ( | double | spacing, |
| WPXUnit | unit | ||
| ) | [inline] |
set the interline spacing
Referenced by FWText::send().
| void FWTextInternal::Paragraph::setSpacings | ( | double | spacing, |
| bool | before | ||
| ) | [inline] |
set the before/after spacing ( negative in point, positive in percent )
Referenced by FWText::send().
| void FWTextInternal::Paragraph::updateFromRuler | ( | Paragraph const & | ruler | ) | [inline] |
update the paragraph data from a ruler
Referenced by FWText::send().
| MWAWParagraph FWTextInternal::Paragraph::updateToSent | ( | ) | const [inline] |
update the paragraph data to be sent to a listener
Referenced by FWText::send().
| std::ostream& operator<< | ( | std::ostream & | o, |
| Paragraph const & | ind | ||
| ) | [friend] |
operator<<
int FWTextInternal::Paragraph::m_actCol [mutable] |
the index of the actual column to send
Referenced by FWText::sendTable(), and updateToSent().
the align value
Referenced by FWText::send(), setAlign(), and updateToSent().
the before/after spacing ( negative in point, positive in percent)
Referenced by Paragraph(), setSpacings(), and updateToSent().
the actual border
Referenced by setBorder(), and updateToSent().
the zone dimension
Referenced by getTableDimensions(), FWText::readParagraphTabs(), and updateFromRuler().
the spacing
Referenced by setInterlineSpacing(), and updateToSent().
the spacing unit
Referenced by setInterlineSpacing(), and updateToSent().
bool FWTextInternal::Paragraph::m_isSent [mutable] |
a flag to know if the parser is send or not
Referenced by FWText::send(), FWText::sendTable(), setAlign(), setBorder(), setInterlineSpacing(), setSpacings(), updateFromRuler(), and updateToSent().
a flag to know if this is a table
Referenced by isTable(), FWText::readParagraphTabs(), updateFromRuler(), and updateToSent().
the table border id
Referenced by FWText::readParagraphTabs(), FWText::sendTable(), and updateFromRuler().
| std::vector<int> FWTextInternal::Paragraph::m_tableFlags |
the list of table limit
Referenced by getTableDimensions(), FWText::readParagraphTabs(), updateFromRuler(), and updateToSent().