Go to the documentation of this file.
34 #ifndef MWAW_SECTION_H
35 #define MWAW_SECTION_H
40 #include <librevenge/librevenge.h>
69 void setColumns(
int num,
double width, librevenge::RVNGUnit widthUnit,
double colSep=0);
81 void addTo(librevenge::RVNGPropertyList &propList)
const;
83 void addColumnsTo(librevenge::RVNGPropertyListVector &propList)
const;
91 for (
size_t c=0; c <
m_columns.size(); c++) {
129 bool addTo(librevenge::RVNGPropertyList &propList)
const;
137 for (
int i = 0; i < 4; i++) {
MWAWSection & operator=(MWAWSection const &)=default
bool addTo(librevenge::RVNGPropertyList &propList) const
add a column to the propList
Definition: MWAWSection.cxx:55
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
virtual ~MWAWSection()
destructor
Definition: MWAWSection.cxx:89
void addColumnsTo(librevenge::RVNGPropertyListVector &propList) const
add tabs to the propList
Definition: MWAWSection.cxx:147
void addTo(librevenge::RVNGPropertyList &propList) const
add to the propList
Definition: MWAWSection.cxx:130
bool operator==(Column const &col) const
operator==
Definition: MWAWSection.hxx:144
MWAWSection()
constructor
Definition: MWAWSection.hxx:50
MWAWBorder m_columnSeparator
the vertical separator between columns
Definition: MWAWSection.hxx:112
the class to store a color
Definition: libmwaw_internal.hxx:192
void setColumns(int num, double width, librevenge::RVNGUnit widthUnit, double colSep=0)
a function which sets n uniform columns
Definition: MWAWSection.cxx:109
std::string str() const
print the color in the form #rrggbb
Definition: libmwaw_internal.cxx:232
@ None
Definition: libmwaw_internal.hxx:335
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:387
int numColumns() const
returns the number of columns
Definition: MWAWSection.hxx:71
Column()
constructor
Definition: MWAWSection.hxx:122
bool operator!=(MWAWSection const &sec) const
operator!=
Definition: MWAWSection.hxx:87
MWAWSection(MWAWSection const &)=default
@ Bottom
Definition: libmwaw_internal.hxx:176
a border
Definition: libmwaw_internal.hxx:333
double m_width
the total section width ( if set )
Definition: MWAWSection.hxx:110
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:108
double m_width
the columns width
Definition: MWAWSection.hxx:150
struct to store the columns properties
Definition: MWAWSection.hxx:120
a class which stores section properties
Definition: MWAWSection.hxx:46
@ Top
Definition: libmwaw_internal.hxx:176
friend std::ostream & operator<<(std::ostream &o, MWAWSection const &sec)
operator <<
Definition: MWAWSection.cxx:93
Style m_style
the border style
Definition: libmwaw_internal.hxx:380
bool operator!=(Column const &col) const
operator!=
Definition: MWAWSection.hxx:133
MWAWColor m_backgroundColor
the background color
Definition: MWAWSection.hxx:116
bool hasSingleColumns() const
returns the true if the section has only one columns
Definition: MWAWSection.hxx:76
librevenge::RVNGUnit m_widthUnit
the width unit (default inches)
Definition: MWAWSection.hxx:152
@ Right
Definition: libmwaw_internal.hxx:176
MWAWSection & operator=(MWAWSection &&)=default
bool m_balanceText
true if the text is balanced between different columns
Definition: MWAWSection.hxx:114
@ Left
Definition: libmwaw_internal.hxx:176
friend std::ostream & operator<<(std::ostream &o, Column const &column)
operator <<
Definition: MWAWSection.cxx:44
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
std::ostream & operator<<(std::ostream &o, MWAWSection::Column const &col)
Definition: MWAWSection.cxx:44
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:393
double m_margins[4]
the margins in inches using libmwaw::Position orders
Definition: MWAWSection.hxx:154
bool operator==(MWAWSection const &sec) const
operator==
Definition: MWAWSection.hxx:102
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20