MSWStruct::Paragraph Struct Reference

the paragraph structure of a Microsoft Word file More...

#include <MSWStruct.hxx>

Inheritance diagram for MSWStruct::Paragraph:
MWAWParagraph

List of all members.

Public Member Functions

 Paragraph (int version)
 Constructor.
void insert (Paragraph const &para, 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< ParagraphInfom_info
 the dimension
Variable< Fontm_font
 the font
Variable< Fontm_modFont
 font (modifier)
Variable< Sectionm_section
 the section
Variable< MWAWBorderm_bordersStyle
 the border style ( old v3)
Variable< bool > m_inCell
 a cell/textbox
Variable< bool > m_tableDef
 a table flag
Variable< Tablem_table
 the table

Friends

std::ostream & operator<< (std::ostream &o, Paragraph const &ind)
 operator<<

Detailed Description

the paragraph structure of a Microsoft Word file


Constructor & Destructor Documentation

MSWStruct::Paragraph::Paragraph ( int  version) [inline]

Constructor.


Member Function Documentation

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().

bool MSWStruct::Paragraph::read ( MWAWInputStreamPtr input,
long  endPos 
)

try to read a data

Referenced by MSWTextStyles::readParagraph().

update the paragraph to obtain the final paragraph

Referenced by MSWText::prepareParagraphProperties().


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
Paragraph const &  ind 
) [friend]

operator<<


Member Data Documentation

the delete tabulation

Referenced by insert(), MSWStruct::operator<<(), and read().

the file version

Referenced by read().


The documentation for this struct was generated from the following files: