Go to the documentation of this file.
34 #ifndef MWAW_SECTION_H
35 #define MWAW_SECTION_H
40 #include <librevenge/librevenge.h>
66 void setColumns(
int num,
double width, librevenge::RVNGUnit widthUnit,
double colSep=0);
78 void addTo(librevenge::RVNGPropertyList &propList)
const;
80 void addColumnsTo(librevenge::RVNGPropertyListVector &propList)
const;
88 for (
size_t c=0; c <
m_columns.size(); c++) {
126 bool addTo(librevenge::RVNGPropertyList &propList)
const;
134 for (
int i = 0; i < 4; i++) {
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:88
void addColumnsTo(librevenge::RVNGPropertyListVector &propList) const
add tabs to the propList
Definition: MWAWSection.cxx:146
void addTo(librevenge::RVNGPropertyList &propList) const
add to the propList
Definition: MWAWSection.cxx:129
bool operator==(Column const &col) const
operator==
Definition: MWAWSection.hxx:141
MWAWSection()
constructor
Definition: MWAWSection.hxx:50
MWAWBorder m_columnSeparator
the vertical separator between columns
Definition: MWAWSection.hxx:109
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:108
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:68
Column()
constructor
Definition: MWAWSection.hxx:119
bool operator!=(MWAWSection const &sec) const
operator!=
Definition: MWAWSection.hxx:84
@ 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:107
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:105
double m_width
the columns width
Definition: MWAWSection.hxx:147
struct to store the columns properties
Definition: MWAWSection.hxx:117
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:92
Style m_style
the border style
Definition: libmwaw_internal.hxx:380
bool operator!=(Column const &col) const
operator!=
Definition: MWAWSection.hxx:130
MWAWColor m_backgroundColor
the background color
Definition: MWAWSection.hxx:113
bool hasSingleColumns() const
returns the true if the section has only one columns
Definition: MWAWSection.hxx:73
librevenge::RVNGUnit m_widthUnit
the width unit (default inches)
Definition: MWAWSection.hxx:149
@ Right
Definition: libmwaw_internal.hxx:176
bool m_balanceText
true if the text is balanced between different columns
Definition: MWAWSection.hxx:111
@ 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:156
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:151
bool operator==(MWAWSection const &sec) const
operator==
Definition: MWAWSection.hxx:99
Generated on Tue Apr 24 2018 22:55:11 for libmwaw by
doxygen 1.8.20