MSWStruct::Paragraph Struct Reference

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

#include <MSWStruct.hxx>

Inheritance diagram for MSWStruct::Paragraph:
MWAWParagraph

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
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 Member Functions inherited from MWAWParagraph
 MWAWParagraph ()
 constructor
virtual ~MWAWParagraph ()
 destructor
bool operator== (MWAWParagraph const &p) const
 operator==
bool operator!= (MWAWParagraph const &p) const
 operator!=
double getMarginsWidth () const
 return the paragraph margin width (in inches)
bool hasBorders () const
 check if the paragraph has some borders
bool hasDifferentBorders () const
 check if the paragraph has different borders
void resizeBorders (size_t newSize)
 a function used to resize the borders list ( adding empty borders if needed )
void setInterline (double value, WPXUnit unit, LineSpacingType type=Fixed)
 set the interline
void addTo (WPXPropertyList &propList, bool inTable) const
 add to the propList
void addTabsTo (WPXPropertyListVector &propList, double decalX=0.0) const
 add tabs to the propList
void insert (MWAWParagraph const &para)
 insert the set values of para in the actual paragraph

Public Attributes

int m_version
 the file version
Variable< int > m_styleId
 the style id (if known)
Variable< std::vector< float > > m_deletedTabs
 the delete tabulation
Variable< ParagraphInfom_info
 the dimension
Variable< Fontm_font
 the font (simplified)
Variable< Fontm_font2
 font ( not simplified )
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
- Public Attributes inherited from MWAWParagraph
Variable< double > m_margins [3]
 the margins
Variable< WPXUnit > m_marginsUnit
 the margins INCH, ...
Variable< double > m_spacings [3]
 the line spacing
Variable< WPXUnit > m_spacingsInterlineUnit
 the interline unit PERCENT or INCH, ...
Variable< LineSpacingTypem_spacingsInterlineType
 the interline type: fixed, atLeast, ...
Variable< std::vector
< MWAWTabStop > > 
m_tabs
 the tabulations
Variable< bool > m_tabsRelativeToLeftMargin
 true if the tabs are relative to left margin (default)
Variable< Justificationm_justify
 the justification
Variable< int > m_breakStatus
 a list of bits: 0x1 (unbreakable), 0x2 (do not break after)
Variable< int > m_listLevelIndex
 the actual level index
Variable< int > m_listId
 the list id (if know )
Variable< int > m_listStartValue
 the list start value (if set )
Variable< MWAWListLevelm_listLevel
 the actual level
Variable< MWAWColorm_backgroundColor
 the background color
std::vector< Variable
< MWAWBorder > > 
m_borders
 list of border ( order MWAWBorder::Pos)
std::string m_extra
 a string to store some errors

Friends

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

Additional Inherited Members

- Public Types inherited from MWAWParagraph
enum  { NoBreakBit = 0x1, NoBreakWithNextBit = 0x2 }
 some bit use to defined the break status More...
enum  Justification {
  JustificationLeft, JustificationFull, JustificationCenter, JustificationRight,
  JustificationFullAllLines
}
 an enum used to defined the paragraph justification: left, center, right, full ... More...
enum  LineSpacingType { Fixed, AtLeast }
 the line spacing type: fixed or at least More...

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

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

bool MSWStruct::Paragraph::inTable ( ) const
inline

returns true if we are in table

Referenced by MSWText::prepareTables().

void MSWStruct::Paragraph::print ( std::ostream &  o,
MWAWFontConverterPtr  converter 
) const
bool MSWStruct::Paragraph::read ( MWAWInputStreamPtr input,
long  endPos 
)

try to read a data

Referenced by MSWTextStyles::readParagraph().

Friends And Related Function Documentation

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

operator<<

Member Data Documentation

Variable<MWAWBorder> MSWStruct::Paragraph::m_bordersStyle

the border style ( old v3)

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

Variable<std::vector<float> > MSWStruct::Paragraph::m_deletedTabs

the delete tabulation

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

Variable<Font> MSWStruct::Paragraph::m_font
Variable<Font> MSWStruct::Paragraph::m_font2
Variable<bool> MSWStruct::Paragraph::m_inCell

a cell/textbox

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

Variable<ParagraphInfo> MSWStruct::Paragraph::m_info
Variable<Font> MSWStruct::Paragraph::m_modFont

font (modifier)

Referenced by getFont(), insert(), print(), and MSWTextStyles::readParagraph().

Variable<Section> MSWStruct::Paragraph::m_section
Variable<int> MSWStruct::Paragraph::m_styleId
Variable<Table> MSWStruct::Paragraph::m_table
Variable<bool> MSWStruct::Paragraph::m_tableDef
int MSWStruct::Paragraph::m_version

the file version

Referenced by read().


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

Generated on Wed May 22 2013 18:12:48 for libmwaw by doxygen 1.8.1.2