FWTextInternal::Paragraph Struct Reference

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

Inheritance diagram for FWTextInternal::Paragraph:
MWAWParagraph

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 (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 inches
MWAWParagraph updateToSent () const
 update the paragraph data to be sent to a listener
- 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_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
Border m_border
 the actual border
bool m_isTable
 a flag to know if this is a table
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
- 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

Internal: class to store the paragraph properties.

Constructor & Destructor Documentation

FWTextInternal::Paragraph::Paragraph ( )
inline

Constructor.

Member Function Documentation

bool FWTextInternal::Paragraph::getTableDimensions ( std::vector< float > &  dim) const
inline

returns the table dimension in inches

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

Friends And Related Function Documentation

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

operator<<

Member Data Documentation

int FWTextInternal::Paragraph::m_actCol
mutable

the index of the actual column to send

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

int FWTextInternal::Paragraph::m_align

the align value

Referenced by FWText::send(), setAlign(), and updateToSent().

double FWTextInternal::Paragraph::m_befAftSpacings[2]

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

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

Border FWTextInternal::Paragraph::m_border

the actual border

Referenced by setBorder(), and updateToSent().

Vec2f FWTextInternal::Paragraph::m_dim

the zone dimension

Referenced by getTableDimensions(), FWText::readParagraphTabs(), and updateFromRuler().

double FWTextInternal::Paragraph::m_interSpacing

the spacing

Referenced by setInterlineSpacing(), and updateToSent().

WPXUnit FWTextInternal::Paragraph::m_interSpacingUnit

the spacing unit

Referenced by setInterlineSpacing(), and updateToSent().

bool FWTextInternal::Paragraph::m_isSent
mutable
bool FWTextInternal::Paragraph::m_isTable

a flag to know if this is a table

Referenced by isTable(), FWText::readParagraphTabs(), updateFromRuler(), and updateToSent().

std::vector<int> FWTextInternal::Paragraph::m_tableFlags

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

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