the paragraph structure of a Microsoft Word file More...
#include <MSWStruct.hxx>
Public Member Functions | |
Paragraph (int version) | |
Constructor. | |
void | insert (Paragraph const ¶, bool insertModif=true) |
insert the new values | |
bool | read (MWAWInputStreamPtr &input, long endPos) |
try to read a data | |
void | updateParagraphToFinalState (Paragraph const *style=0) |
update the paragraph to obtain the final paragraph | |
bool | getFont (Font &font, Font const *styleFont=0) const |
returns the font which correspond to the paragraph if possible | |
bool | inTable () const |
returns true if we are in table | |
void | print (std::ostream &o, MWAWFontConverterPtr converter) const |
operator<< | |
int | getNumLines () const |
returns the number of line stored in m_info or -1 | |
Public Attributes | |
int | m_version |
the file version | |
Variable< int > | m_styleId |
the style id (if known) | |
Variable< double > | m_interline |
the interline if set | |
std::vector< float > | m_deletedTabs |
the delete tabulation | |
Variable< ParagraphInfo > | m_info |
the dimension | |
Variable< Font > | m_font |
the font | |
Variable< Font > | m_modFont |
font (modifier) | |
Variable< Section > | m_section |
the section | |
Variable< MWAWBorder > | m_bordersStyle |
the border style ( old v3) | |
Variable< bool > | m_inCell |
a cell/textbox | |
Variable< bool > | m_tableDef |
a table flag | |
Variable< Table > | m_table |
the table | |
Friends | |
std::ostream & | operator<< (std::ostream &o, Paragraph const &ind) |
operator<< |
the paragraph structure of a Microsoft Word file
MSWStruct::Paragraph::Paragraph | ( | int | version | ) | [inline] |
Constructor.
bool MSWStruct::Paragraph::getFont | ( | Font & | font, |
Font const * | styleFont = 0 |
||
) | const |
returns the font which correspond to the paragraph if possible
Referenced by MSWText::prepareFontProperties().
int MSWStruct::Paragraph::getNumLines | ( | ) | const [inline] |
returns the number of line stored in m_info or -1
void MSWStruct::Paragraph::insert | ( | Paragraph const & | para, |
bool | insertModif = true |
||
) |
insert the new values
Referenced by MSWText::prepareParagraphProperties(), and MSWText::prepareTableLimits().
bool MSWStruct::Paragraph::inTable | ( | ) | const [inline] |
returns true if we are in table
Referenced by MSWText::prepareParagraphProperties().
void MSWStruct::Paragraph::print | ( | std::ostream & | o, |
MWAWFontConverterPtr | converter | ||
) | const |
operator<<
Referenced by MSWText::prepareData(), MSWTextStyles::readPLC(), MSWTextStyles::readPropertyModifier(), and MSWTextStyles::readTextStructList().
bool MSWStruct::Paragraph::read | ( | MWAWInputStreamPtr & | input, |
long | endPos | ||
) |
try to read a data
Referenced by MSWTextStyles::readParagraph().
void MSWStruct::Paragraph::updateParagraphToFinalState | ( | Paragraph const * | style = 0 | ) |
update the paragraph to obtain the final paragraph
Referenced by MSWText::prepareParagraphProperties().
std::ostream& operator<< | ( | std::ostream & | o, |
Paragraph const & | ind | ||
) | [friend] |
operator<<
the border style ( old v3)
Referenced by insert(), MSWStruct::operator<<(), and read().
std::vector<float> MSWStruct::Paragraph::m_deletedTabs |
the delete tabulation
Referenced by insert(), MSWStruct::operator<<(), and read().
the font
Referenced by getFont(), MSWTextStyles::getSectionFont(), insert(), print(), and MSWTextStyles::readParagraph().
a cell/textbox
Referenced by insert(), inTable(), MSWStruct::operator<<(), and read().
the dimension
Referenced by getNumLines(), insert(), MSWStruct::operator<<(), and MSWTextStyles::readPLC().
the interline if set
Referenced by insert(), MSWStruct::operator<<(), read(), and updateParagraphToFinalState().
font (modifier)
Referenced by getFont(), insert(), print(), and MSWTextStyles::readParagraph().
the section
Referenced by insert(), MSWStruct::operator<<(), read(), and MSWTextStyles::sendSection().
the style id (if known)
Referenced by insert(), MSWStruct::operator<<(), MSWText::prepareFontProperties(), MSWText::prepareParagraphProperties(), MSWText::prepareTableLimits(), read(), and MSWTextStyles::readPLC().
the table
Referenced by insert(), MSWStruct::operator<<(), MSWText::prepareTableLimits(), and read().
a table flag
Referenced by insert(), MSWStruct::operator<<(), MSWText::prepareTableLimits(), and read().
the file version
Referenced by read().