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++) {
bool operator!=(Column const &col) const
operator!=
Definition: MWAWSection.hxx:133
void setColumns(int num, double width, librevenge::RVNGUnit widthUnit, double colSep=0)
a function which sets n uniform columns
Definition: MWAWSection.cxx:109
bool operator!=(MWAWSection const &sec) const
operator!=
Definition: MWAWSection.hxx:87
Definition: MWAWDocument.hxx:56
librevenge::RVNGUnit m_widthUnit
the width unit (default inches)
Definition: MWAWSection.hxx:152
int numColumns() const
returns the number of columns
Definition: MWAWSection.hxx:71
double m_width
the total section width ( if set )
Definition: MWAWSection.hxx:110
virtual ~MWAWSection()
destructor
Definition: MWAWSection.cxx:89
bool operator==(MWAWSection const &sec) const
operator==
Definition: MWAWSection.hxx:102
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:108
the class to store a color
Definition: libmwaw_internal.hxx:192
void addTo(librevenge::RVNGPropertyList &propList) const
add to the propList
Definition: MWAWSection.cxx:130
MWAWSection()
constructor
Definition: MWAWSection.hxx:50
MWAWBorder m_columnSeparator
the vertical separator between columns
Definition: MWAWSection.hxx:112
struct to store the columns properties
Definition: MWAWSection.hxx:120
a border
Definition: libmwaw_internal.hxx:333
friend std::ostream & operator<<(std::ostream &o, Column const &column)
operator <<
Definition: MWAWSection.cxx:44
friend std::ostream & operator<<(std::ostream &o, MWAWSection const &sec)
operator <<
Definition: MWAWSection.cxx:93
bool m_balanceText
true if the text is balanced between different columns
Definition: MWAWSection.hxx:114
double m_margins[4]
the margins in inches using libmwaw::Position orders
Definition: MWAWSection.hxx:154
MWAWColor m_backgroundColor
the background color
Definition: MWAWSection.hxx:116
Definition: libmwaw_internal.hxx:335
a class which stores section properties
Definition: MWAWSection.hxx:45
Style m_style
the border style
Definition: libmwaw_internal.hxx:380
bool addTo(librevenge::RVNGPropertyList &propList) const
add a column to the propList
Definition: MWAWSection.cxx:55
bool operator==(Column const &col) const
operator==
Definition: MWAWSection.hxx:144
MWAWSection & operator=(MWAWSection const &)=default
Column()
constructor
Definition: MWAWSection.hxx:122
bool hasSingleColumns() const
returns the true if the section has only one columns
Definition: MWAWSection.hxx:76
void addColumnsTo(librevenge::RVNGPropertyListVector &propList) const
add tabs to the propList
Definition: MWAWSection.cxx:147
double m_width
the columns width
Definition: MWAWSection.hxx:150