FWTextInternal::Paragraph Struct Reference

Internal: class to store the paragraph properties. More...

Inheritance diagram for FWTextInternal::Paragraph:
MWAWParagraph

List of all members.

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<<

Detailed Description

Internal: class to store the paragraph properties.


Constructor & Destructor Documentation

Constructor.


Member Function Documentation

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

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

update the paragraph data to be sent to a listener

Referenced by FWText::send().


Friends And Related Function Documentation

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

operator<<


Member Data Documentation

the index of the actual column to send

Referenced by FWText::sendTable(), and updateToSent().

the before/after spacing ( negative in point, positive in percent)

Referenced by Paragraph(), setSpacings(), and updateToSent().


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