34 #ifndef MWAW_SECTION_H
35 #define MWAW_SECTION_H
40 #include <libwpd/libwpd.h>
57 void setColumns(
int num,
double width, WPXUnit widthUnit,
double colSep=0);
67 void addTo(WPXPropertyList &propList)
const;
69 void addColumnsTo(WPXPropertyListVector &propList)
const;
76 for (
size_t c=0; c <
m_columns.size(); c++) {
107 for (
int i = 0; i < 4; i++)
111 bool addTo(WPXPropertyList &propList)
const;
118 for (
int i = 0; i < 4; i++) {
void setColumns(int num, double width, WPXUnit widthUnit, double colSep=0)
a function which sets n uniform columns
Definition: MWAWSection.cxx:99
void addTo(WPXPropertyList &propList) const
add to the propList
Definition: MWAWSection.cxx:119
double m_width
the total section width ( if set )
Definition: MWAWSection.hxx:94
int numColumns() const
returns the number of columns
Definition: MWAWSection.hxx:59
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:92
the class to store a color
Definition: libmwaw_internal.hxx:161
WPXUnit m_widthUnit
the width unit (default inches)
Definition: MWAWSection.hxx:132
bool hasSingleColumns() const
returns the true if the section has only one columns
Definition: MWAWSection.hxx:63
MWAWSection()
constructor
Definition: MWAWSection.hxx:50
MWAWBorder m_columnSeparator
the vertical separator between columns
Definition: MWAWSection.hxx:96
struct to store the columns properties
Definition: MWAWSection.hxx:104
a border
Definition: libmwaw_internal.hxx:232
friend std::ostream & operator<<(std::ostream &o, Column const &column)
operator <<
Definition: MWAWSection.cxx:42
friend std::ostream & operator<<(std::ostream &o, MWAWSection const &sec)
operator <<
Definition: MWAWSection.cxx:83
bool m_balanceText
true if the text is balanced between different columns
Definition: MWAWSection.hxx:98
double m_margins[4]
the margins in inches using libmwaw::Position orders
Definition: MWAWSection.hxx:134
MWAWColor m_backgroundColor
the background color
Definition: MWAWSection.hxx:100
Definition: libmwaw_internal.hxx:234
bool operator==(Column const &col) const
operator==
Definition: MWAWSection.hxx:125
a class which stores section properties
Definition: MWAWSection.hxx:45
Style m_style
the border style
Definition: libmwaw_internal.hxx:265
Column()
constructor
Definition: MWAWSection.hxx:106
bool addTo(WPXPropertyList &propList) const
add a column to the propList
Definition: MWAWSection.cxx:53
double m_width
the columns width
Definition: MWAWSection.hxx:130
void addColumnsTo(WPXPropertyListVector &propList) const
add tabs to the propList
Definition: MWAWSection.cxx:136
bool operator!=(Column const &col) const
operator!=
Definition: MWAWSection.hxx:115
bool operator!=(MWAWSection const &sec) const
operator!=
Definition: MWAWSection.hxx:73
bool operator==(MWAWSection const &sec) const
operator==
Definition: MWAWSection.hxx:87