34 #ifndef MWAW_SECTION_H
35 #define MWAW_SECTION_H
40 #include <libwpd/libwpd.h>
60 void setColumns(
int num,
double width, WPXUnit widthUnit,
double colSep=0);
70 void addTo(WPXPropertyList &propList)
const;
72 void addColumnsTo(WPXPropertyListVector &propList)
const;
79 for (
size_t c=0; c <
m_columns.size(); c++) {
110 for (
int i = 0; i < 4; i++)
114 bool addTo(WPXPropertyList &propList)
const;
121 for (
int i = 0; i < 4; i++) {
virtual ~MWAWSection()
destructor
Definition: MWAWSection.hxx:54
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:97
int numColumns() const
returns the number of columns
Definition: MWAWSection.hxx:62
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:95
the class to store a color
Definition: libmwaw_internal.hxx:166
WPXUnit m_widthUnit
the width unit (default inches)
Definition: MWAWSection.hxx:135
bool hasSingleColumns() const
returns the true if the section has only one columns
Definition: MWAWSection.hxx:66
MWAWSection()
constructor
Definition: MWAWSection.hxx:50
MWAWBorder m_columnSeparator
the vertical separator between columns
Definition: MWAWSection.hxx:99
struct to store the columns properties
Definition: MWAWSection.hxx:107
a border
Definition: libmwaw_internal.hxx:237
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:101
double m_margins[4]
the margins in inches using libmwaw::Position orders
Definition: MWAWSection.hxx:137
MWAWColor m_backgroundColor
the background color
Definition: MWAWSection.hxx:103
Definition: libmwaw_internal.hxx:239
bool operator==(Column const &col) const
operator==
Definition: MWAWSection.hxx:128
a class which stores section properties
Definition: MWAWSection.hxx:45
Style m_style
the border style
Definition: libmwaw_internal.hxx:270
Column()
constructor
Definition: MWAWSection.hxx:109
bool addTo(WPXPropertyList &propList) const
add a column to the propList
Definition: MWAWSection.cxx:53
double m_width
the columns width
Definition: MWAWSection.hxx:133
void addColumnsTo(WPXPropertyListVector &propList) const
add tabs to the propList
Definition: MWAWSection.cxx:136
bool operator!=(Column const &col) const
operator!=
Definition: MWAWSection.hxx:118
bool operator!=(MWAWSection const &sec) const
operator!=
Definition: MWAWSection.hxx:76
bool operator==(MWAWSection const &sec) const
operator==
Definition: MWAWSection.hxx:90