Internal: class to store the paragraph properties. More...
Public Member Functions | |
Paragraph () | |
Constructor. More... | |
Paragraph (Paragraph const &)=default | |
~Paragraph () final | |
destructor More... | |
bool | isTable () const |
returns true if this is a table More... | |
void | setAlign (int align) |
set the align type More... | |
void | setInterlineSpacing (double spacing, librevenge::RVNGUnit unit) |
set the interline spacing More... | |
void | setSpacings (double spacing, bool before) |
set the before/after spacing ( negative in point, positive in percent ) More... | |
void | setBorder (FullWrtStruct::Border const &border) |
set the border type More... | |
void | updateFromRuler (Paragraph const &ruler) |
update the paragraph data from a ruler More... | |
bool | getTableDimensions (std::vector< float > &dim) const |
returns the table dimension in points More... | |
MWAWParagraph | updateToSent () const |
update the paragraph data to be sent to a listener More... | |
![]() | |
MWAWParagraph () | |
constructor More... | |
MWAWParagraph (MWAWParagraph const &)=default | |
MWAWParagraph & | operator= (MWAWParagraph const &)=default |
MWAWParagraph & | operator= (MWAWParagraph &&)=default |
virtual | ~MWAWParagraph () |
destructor More... | |
bool | operator== (MWAWParagraph const &p) const |
operator== More... | |
bool | operator!= (MWAWParagraph const &p) const |
operator!= More... | |
int | cmp (MWAWParagraph const &p) const |
a comparison function More... | |
double | getMarginsWidth () const |
return the paragraph margin width (in inches) More... | |
bool | hasBorders () const |
check if the paragraph has some borders More... | |
bool | hasDifferentBorders () const |
check if the paragraph has different borders More... | |
void | resizeBorders (size_t newSize) |
a function used to resize the borders list ( adding empty borders if needed ) More... | |
void | setInterline (double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed) |
set the interline More... | |
void | addTo (librevenge::RVNGPropertyList &propList, bool inTable) const |
add to the propList More... | |
void | insert (MWAWParagraph const ¶) |
insert the set values of para in the actual paragraph More... | |
Public Attributes | |
int | m_align |
the align value More... | |
double | m_interSpacing |
the spacing More... | |
librevenge::RVNGUnit | m_interSpacingUnit |
the spacing unit More... | |
double | m_befAftSpacings [2] |
the before/after spacing ( negative in point, positive in percent) More... | |
MWAWVec2f | m_dim |
the zone dimension More... | |
FullWrtStruct::Border | m_border |
the actual border More... | |
bool | m_isTable |
a flag to know if this is a table More... | |
int | m_tableBorderId |
the table border id More... | |
std::vector< int > | m_tableFlags |
the list of table limit More... | |
int | m_actCol |
the index of the actual column to send More... | |
bool | m_isSent |
a flag to know if the parser is send or not More... | |
![]() | |
MWAWVariable< double > | m_margins [3] |
the margins More... | |
MWAWVariable< librevenge::RVNGUnit > | m_marginsUnit |
the margins INCH, ... More... | |
MWAWVariable< double > | m_spacings [3] |
the line spacing More... | |
MWAWVariable< librevenge::RVNGUnit > | m_spacingsInterlineUnit |
the interline unit PERCENT or INCH, ... More... | |
MWAWVariable< LineSpacingType > | m_spacingsInterlineType |
the interline type: fixed, atLeast, ... More... | |
MWAWVariable< std::vector< MWAWTabStop > > | m_tabs |
the tabulations More... | |
MWAWVariable< bool > | m_tabsRelativeToLeftMargin |
true if the tabs are relative to left margin, false if there are relative to the page margin (default) More... | |
MWAWVariable< Justification > | m_justify |
the justification More... | |
MWAWVariable< int > | m_breakStatus |
a list of bits: 0x1 (unbreakable), 0x2 (do not break after) More... | |
MWAWVariable< libmwaw::WritingMode > | m_writingMode |
the writing mode More... | |
MWAWVariable< int > | m_listLevelIndex |
the actual level index More... | |
MWAWVariable< int > | m_listId |
the list id (if know ) More... | |
MWAWVariable< int > | m_listStartValue |
the list start value (if set ) More... | |
MWAWVariable< MWAWListLevel > | m_listLevel |
the actual level More... | |
MWAWVariable< MWAWColor > | m_backgroundColor |
the background color More... | |
std::vector< MWAWVariable< MWAWBorder > > | m_borders |
list of border ( order MWAWBorder::Pos) More... | |
MWAWVariable< int > | m_dropNumCharacters |
the drop number character More... | |
MWAWVariable< int > | m_dropNumLines |
the drop number of lines More... | |
std::string | m_styleName |
the style name More... | |
std::string | m_extra |
a string to store some errors More... | |
Friends | |
std::ostream & | operator<< (std::ostream &o, Paragraph const &ind) |
operator<< More... | |
Additional Inherited Members | |
![]() | |
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... | |
Internal: class to store the paragraph properties.
|
inline |
Constructor.
|
default |
|
final |
destructor
|
inline |
returns the table dimension in points
Referenced by FullWrtText::sendTable().
|
inline |
returns true if this is a table
Referenced by FullWrtText::send().
|
inline |
set the align type
Referenced by FullWrtText::send().
|
inline |
set the border type
Referenced by FullWrtText::send().
|
inline |
set the interline spacing
Referenced by FullWrtText::send().
|
inline |
set the before/after spacing ( negative in point, positive in percent )
Referenced by FullWrtText::send().
|
inline |
update the paragraph data from a ruler
Referenced by FullWrtText::send().
|
inline |
update the paragraph data to be sent to a listener
Referenced by FullWrtText::send().
|
friend |
operator<<
|
mutable |
the index of the actual column to send
Referenced by FullWrtText::sendTable(), and updateToSent().
int FullWrtTextInternal::Paragraph::m_align |
the align value
Referenced by FullWrtText::send(), setAlign(), and updateToSent().
double FullWrtTextInternal::Paragraph::m_befAftSpacings[2] |
the before/after spacing ( negative in point, positive in percent)
Referenced by Paragraph(), setSpacings(), and updateToSent().
FullWrtStruct::Border FullWrtTextInternal::Paragraph::m_border |
the actual border
Referenced by setBorder(), and updateToSent().
MWAWVec2f FullWrtTextInternal::Paragraph::m_dim |
the zone dimension
Referenced by getTableDimensions(), FullWrtText::readParagraphTabs(), and updateFromRuler().
double FullWrtTextInternal::Paragraph::m_interSpacing |
the spacing
Referenced by setInterlineSpacing(), and updateToSent().
librevenge::RVNGUnit FullWrtTextInternal::Paragraph::m_interSpacingUnit |
the spacing unit
Referenced by setInterlineSpacing(), and updateToSent().
|
mutable |
a flag to know if the parser is send or not
Referenced by FullWrtText::send(), FullWrtText::sendTable(), setAlign(), setBorder(), setInterlineSpacing(), setSpacings(), updateFromRuler(), and updateToSent().
bool FullWrtTextInternal::Paragraph::m_isTable |
a flag to know if this is a table
Referenced by isTable(), FullWrtText::readParagraphTabs(), updateFromRuler(), and updateToSent().
int FullWrtTextInternal::Paragraph::m_tableBorderId |
the table border id
Referenced by FullWrtText::readParagraphTabs(), FullWrtText::sendTable(), and updateFromRuler().
std::vector<int> FullWrtTextInternal::Paragraph::m_tableFlags |
the list of table limit
Referenced by getTableDimensions(), FullWrtText::readParagraphTabs(), updateFromRuler(), and updateToSent().