Go to the documentation of this file.
34 #ifndef MWAW_PARAGRAPH
35 # define MWAW_PARAGRAPH
40 #include <librevenge/librevenge.h>
50 MWAWTabStop(
double position = 0.0,
Alignment alignment =
LEFT, uint16_t leaderCharacter=
'\0', uint16_t decimalCharacter =
'.') :
55 void addTo(librevenge::RVNGPropertyListVector &propList,
double decalX=0.0)
const;
130 void addTo(librevenge::RVNGPropertyList &propList,
bool inTable)
const;
@ Fixed
Definition: MWAWParagraph.hxx:91
bool operator==(MWAWTabStop const &tabs) const
operator==
Definition: MWAWParagraph.hxx:57
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:161
bool operator==(MWAWParagraph const &p) const
operator==
Definition: MWAWParagraph.hxx:98
@ LEFT
Definition: MWAWParagraph.hxx:48
int cmp(MWAWParagraph const &p) const
a comparison function
Definition: MWAWParagraph.cxx:162
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:75
MWAWParagraph()
constructor
Definition: MWAWParagraph.cxx:145
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
MWAWVariable< int > m_listStartValue
the list start value (if set )
Definition: MWAWParagraph.hxx:172
void resizeBorders(size_t newSize)
a function used to resize the borders list ( adding empty borders if needed )
Definition: MWAWParagraph.hxx:116
MWAWTabStop(double position=0.0, Alignment alignment=LEFT, uint16_t leaderCharacter='\0', uint16_t decimalCharacter='.')
constructor
Definition: MWAWParagraph.hxx:50
bool isEmpty() const
returns true if the border is empty
Definition: libmwaw_internal.hxx:327
Alignment
the tab alignment
Definition: MWAWParagraph.hxx:48
int cmp(MWAWTabStop const &tabs) const
a comparison function
Definition: MWAWParagraph.cxx:95
MWAWVariable< libmwaw::WritingMode > m_writingMode
the writing mode
Definition: MWAWParagraph.hxx:165
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:156
std::string m_styleName
the style name
Definition: MWAWParagraph.hxx:182
void addTo(librevenge::RVNGPropertyListVector &propList, double decalX=0.0) const
add a tab to the propList
Definition: MWAWParagraph.cxx:48
MWAWVariable< int > m_listLevelIndex
the actual level index
Definition: MWAWParagraph.hxx:168
@ CENTER
Definition: MWAWParagraph.hxx:48
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:123
the class to store a color
Definition: libmwaw_internal.hxx:182
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libmwaw_internal.cxx:63
bool hasDifferentBorders() const
check if the paragraph has different borders
Definition: MWAWParagraph.cxx:267
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:150
@ JustificationFullAllLines
Definition: MWAWParagraph.hxx:88
void addTo(librevenge::RVNGPropertyList &propList, bool inTable) const
add to the propList
Definition: MWAWParagraph.cxx:286
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
std::string str() const
print the color in the form #rrggbb
Definition: libmwaw_internal.cxx:231
MWAWVariable< MWAWListLevel > m_listLevel
the actual level
Definition: MWAWParagraph.hxx:174
MWAWVariable< LineSpacingType > m_spacingsInterlineType
the interline type: fixed, atLeast, ...
Definition: MWAWParagraph.hxx:154
@ None
Definition: libmwaw_internal.hxx:316
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:142
@ DECIMAL
Definition: MWAWParagraph.hxx:48
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
bool isSet() const
return true if the variable is set
Definition: libmwaw_internal.hxx:586
LineSpacingType
the line spacing type: fixed or at least
Definition: MWAWParagraph.hxx:91
std::vector< MWAWVariable< MWAWBorder > > m_borders
list of border ( order MWAWBorder::Pos)
Definition: MWAWParagraph.hxx:180
@ AtLeast
Definition: MWAWParagraph.hxx:91
@ JustificationCenter
Definition: MWAWParagraph.hxx:87
MWAWVariable< int > m_breakStatus
a list of bits: 0x1 (unbreakable), 0x2 (do not break after)
Definition: MWAWParagraph.hxx:163
Justification
an enum used to defined the paragraph justification: left, center, right, full ...
Definition: MWAWParagraph.hxx:87
bool operator!=(MWAWTabStop const &tabs) const
operator!=
Definition: MWAWParagraph.hxx:62
MWAWVariable< bool > m_tabsRelativeToLeftMargin
true if the tabs are relative to left margin, false if there are relative to the page margin (default...
Definition: MWAWParagraph.hxx:158
@ Bottom
Definition: libmwaw_internal.hxx:166
MWAWVariable< MWAWColor > m_backgroundColor
the background color
Definition: MWAWParagraph.hxx:177
friend std::ostream & operator<<(std::ostream &o, MWAWTabStop const &ft)
operator <<
Definition: MWAWParagraph.cxx:109
double getMarginsWidth() const
return the paragraph margin width (in inches)
Definition: MWAWParagraph.cxx:280
a border
Definition: libmwaw_internal.hxx:314
bool addTo(librevenge::RVNGPropertyList &propList, std::string which="") const
add the border property to proplist (if needed )
Definition: libmwaw_internal.cxx:432
std::string writingModeToString(WritingMode mode)
a function to convert a writing mode in string lt-rb, ...
Definition: libmwaw_internal.cxx:183
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:73
void insert(MWAWVariable const &orig)
update the current value if orig is set
Definition: libmwaw_internal.hxx:551
double m_position
the tab position
Definition: MWAWParagraph.hxx:71
uint16_t m_decimalCharacter
the decimal char
Definition: MWAWParagraph.hxx:77
@ JustificationLeft
Definition: MWAWParagraph.hxx:87
virtual ~MWAWParagraph()
destructor
Definition: MWAWParagraph.cxx:158
@ Top
Definition: libmwaw_internal.hxx:166
Style m_style
the border style
Definition: libmwaw_internal.hxx:350
bool hasBorders() const
check if the paragraph has some borders
Definition: MWAWParagraph.cxx:256
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:144
@ NoBreakWithNextBit
Definition: MWAWParagraph.hxx:85
std::ostream & operator<<(std::ostream &o, MWAWTabStop const &tab)
Definition: MWAWParagraph.cxx:109
@ Right
Definition: libmwaw_internal.hxx:166
MWAWVariable< librevenge::RVNGUnit > m_spacingsInterlineUnit
the interline unit PERCENT or INCH, ...
Definition: MWAWParagraph.hxx:152
@ JustificationFull
Definition: MWAWParagraph.hxx:87
@ JustificationRight
Definition: MWAWParagraph.hxx:88
bool operator!=(MWAWParagraph const &p) const
operator!=
Definition: MWAWParagraph.hxx:103
T const & get() const
return the current value
Definition: libmwaw_internal.hxx:581
@ Left
Definition: libmwaw_internal.hxx:166
@ BAR
Definition: MWAWParagraph.hxx:48
int cmp(MWAWListLevel const &levl) const
comparison function ( compare all values excepted m_startValues
Definition: MWAWList.cxx:116
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:51
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:270
static float getScaleFactor(librevenge::RVNGUnit orig, librevenge::RVNGUnit dest)
Definition: MWAWPosition.hxx:143
Definition: MWAWDocument.hxx:57
@ RIGHT
Definition: MWAWParagraph.hxx:48
void insert(MWAWParagraph const ¶)
insert the set values of para in the actual paragraph
Definition: MWAWParagraph.cxx:216
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:184
MWAWVariable< int > m_listId
the list id (if know )
Definition: MWAWParagraph.hxx:170
@ WritingInherited
Definition: libmwaw_internal.hxx:175
friend std::ostream & operator<<(std::ostream &o, MWAWParagraph const &ft)
operator <<
Definition: MWAWParagraph.cxx:410
@ NoBreakBit
Definition: MWAWParagraph.hxx:85
void setSet(bool newVal)
define if the variable is set
Definition: libmwaw_internal.hxx:591
Generated on Wed Jun 17 2020 06:30:12 for libmwaw by
doxygen 1.8.18