Go to the documentation of this file.
34 #ifndef MWAW_SECTION_H
35 #define MWAW_SECTION_H
40 #include <librevenge/librevenge.h>
68 void setColumns(
int num,
double width, librevenge::RVNGUnit widthUnit,
double colSep=0);
80 void addTo(librevenge::RVNGPropertyList &propList)
const;
82 void addColumnsTo(librevenge::RVNGPropertyListVector &propList)
const;
90 for (
size_t c=0; c <
m_columns.size(); c++) {
128 bool addTo(librevenge::RVNGPropertyList &propList)
const;
136 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:143
MWAWSection()
constructor
Definition: MWAWSection.hxx:50
MWAWBorder m_columnSeparator
the vertical separator between columns
Definition: MWAWSection.hxx:111
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
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:70
Column()
constructor
Definition: MWAWSection.hxx:121
bool operator!=(MWAWSection const &sec) const
operator!=
Definition: MWAWSection.hxx:86
Definition: libmwaw_internal.hxx:176
a border
Definition: libmwaw_internal.hxx:333
double m_width
the total section width ( if set )
Definition: MWAWSection.hxx:109
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:107
double m_width
the columns width
Definition: MWAWSection.hxx:149
struct to store the columns properties
Definition: MWAWSection.hxx:119
a class which stores section properties
Definition: MWAWSection.hxx:45
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:132
MWAWColor m_backgroundColor
the background color
Definition: MWAWSection.hxx:115
bool hasSingleColumns() const
returns the true if the section has only one columns
Definition: MWAWSection.hxx:75
librevenge::RVNGUnit m_widthUnit
the width unit (default inches)
Definition: MWAWSection.hxx:151
Definition: libmwaw_internal.hxx:176
bool m_balanceText
true if the text is balanced between different columns
Definition: MWAWSection.hxx:113
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:158
Definition: MWAWDocument.hxx:56
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:153
bool operator==(MWAWSection const &sec) const
operator==
Definition: MWAWSection.hxx:101
Generated on Wed Jul 24 2024 03:57:32 for libmwaw by
doxygen 1.8.16