Go to the documentation of this file.
34 #ifndef MWAW_PARAGRAPH
35 # define MWAW_PARAGRAPH
40 #include <librevenge/librevenge.h>
50 explicit MWAWTabStop(
double position = 0.0,
Alignment alignment =
LEFT, uint16_t leaderCharacter=
'\0', uint16_t decimalCharacter =
'.')
58 void addTo(librevenge::RVNGPropertyListVector &propList,
double decalX=0.0)
const;
136 void addTo(librevenge::RVNGPropertyList &propList,
bool inTable)
const;
@ Fixed
Definition: MWAWParagraph.hxx:94
bool operator==(MWAWTabStop const &tabs) const
operator==
Definition: MWAWParagraph.hxx:60
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:167
bool operator==(MWAWParagraph const &p) const
operator==
Definition: MWAWParagraph.hxx:104
@ LEFT
Definition: MWAWParagraph.hxx:48
MWAWParagraph & operator=(MWAWParagraph &&)=default
int cmp(MWAWParagraph const &p) const
a comparison function
Definition: MWAWParagraph.cxx:179
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:78
MWAWParagraph()
constructor
Definition: MWAWParagraph.cxx:145
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVariable< int > m_listStartValue
the list start value (if set )
Definition: MWAWParagraph.hxx:178
void resizeBorders(size_t newSize)
a function used to resize the borders list ( adding empty borders if needed )
Definition: MWAWParagraph.hxx:122
MWAWParagraph(MWAWParagraph const &)=default
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:356
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:171
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
std::string m_styleName
the style name
Definition: MWAWParagraph.hxx:188
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:174
@ CENTER
Definition: MWAWParagraph.hxx:48
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:129
the class to store a color
Definition: libmwaw_internal.hxx:192
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:283
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:156
@ JustificationFullAllLines
Definition: MWAWParagraph.hxx:91
void addTo(librevenge::RVNGPropertyList &propList, bool inTable) const
add to the propList
Definition: MWAWParagraph.cxx:302
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
std::string str() const
print the color in the form #rrggbb
Definition: libmwaw_internal.cxx:232
MWAWVariable< MWAWListLevel > m_listLevel
the actual level
Definition: MWAWParagraph.hxx:180
MWAWVariable< LineSpacingType > m_spacingsInterlineType
the interline type: fixed, atLeast, ...
Definition: MWAWParagraph.hxx:160
@ None
Definition: libmwaw_internal.hxx:335
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
@ 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:635
LineSpacingType
the line spacing type: fixed or at least
Definition: MWAWParagraph.hxx:94
@ NoBreakBit
Definition: MWAWParagraph.hxx:88
std::vector< MWAWVariable< MWAWBorder > > m_borders
list of border ( order MWAWBorder::Pos)
Definition: MWAWParagraph.hxx:186
@ AtLeast
Definition: MWAWParagraph.hxx:94
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
MWAWVariable< int > m_breakStatus
a list of bits: 0x1 (unbreakable), 0x2 (do not break after)
Definition: MWAWParagraph.hxx:169
Justification
an enum used to defined the paragraph justification: left, center, right, full ...
Definition: MWAWParagraph.hxx:90
bool operator!=(MWAWTabStop const &tabs) const
operator!=
Definition: MWAWParagraph.hxx:65
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:164
@ Bottom
Definition: libmwaw_internal.hxx:176
MWAWVariable< MWAWColor > m_backgroundColor
the background color
Definition: MWAWParagraph.hxx:183
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:296
a border
Definition: libmwaw_internal.hxx:333
bool addTo(librevenge::RVNGPropertyList &propList, std::string which="") const
add the border property to proplist (if needed )
Definition: libmwaw_internal.cxx:444
std::string writingModeToString(WritingMode mode)
a function to convert a writing mode in string lt-rb, ...
Definition: libmwaw_internal.cxx:184
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
void insert(MWAWVariable const &orig)
update the current value if orig is set
Definition: libmwaw_internal.hxx:600
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
uint16_t m_decimalCharacter
the decimal char
Definition: MWAWParagraph.hxx:80
@ JustificationLeft
Definition: MWAWParagraph.hxx:90
virtual ~MWAWParagraph()
destructor
Definition: MWAWParagraph.cxx:175
@ Top
Definition: libmwaw_internal.hxx:176
Style m_style
the border style
Definition: libmwaw_internal.hxx:380
bool hasBorders() const
check if the paragraph has some borders
Definition: MWAWParagraph.cxx:272
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:150
std::ostream & operator<<(std::ostream &o, MWAWTabStop const &tab)
Definition: MWAWParagraph.cxx:109
@ Right
Definition: libmwaw_internal.hxx:176
MWAWVariable< librevenge::RVNGUnit > m_spacingsInterlineUnit
the interline unit PERCENT or INCH, ...
Definition: MWAWParagraph.hxx:158
@ JustificationFull
Definition: MWAWParagraph.hxx:90
@ JustificationRight
Definition: MWAWParagraph.hxx:91
bool operator!=(MWAWParagraph const &p) const
operator!=
Definition: MWAWParagraph.hxx:109
T const & get() const
return the current value
Definition: libmwaw_internal.hxx:630
@ Left
Definition: libmwaw_internal.hxx:176
@ BAR
Definition: MWAWParagraph.hxx:48
MWAWParagraph & operator=(MWAWParagraph const &)=default
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:289
static float getScaleFactor(librevenge::RVNGUnit orig, librevenge::RVNGUnit dest)
Definition: MWAWPosition.hxx:159
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:233
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:190
MWAWVariable< int > m_listId
the list id (if know )
Definition: MWAWParagraph.hxx:176
@ NoBreakWithNextBit
Definition: MWAWParagraph.hxx:88
@ WritingInherited
Definition: libmwaw_internal.hxx:185
friend std::ostream & operator<<(std::ostream &o, MWAWParagraph const &ft)
operator <<
Definition: MWAWParagraph.cxx:426
void setSet(bool newVal)
define if the variable is set
Definition: libmwaw_internal.hxx:640
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20