34 #ifndef STOFF_SECTION_H 35 #define STOFF_SECTION_H 40 #include <librevenge/librevenge.h> 61 void setColumns(
int num,
double width, librevenge::RVNGUnit widthUnit,
double colSep=0);
73 void addTo(librevenge::RVNGPropertyList &propList)
const;
75 void addColumnsTo(librevenge::RVNGPropertyListVector &propList)
const;
83 for (
size_t c=0; c <
m_columns.size(); c++) {
112 for (
int i = 0; i < 4; i++)
116 bool addTo(librevenge::RVNGPropertyList &propList)
const;
124 for (
int i = 0; i < 4; i++) {
void addColumnsTo(librevenge::RVNGPropertyListVector &propList) const
add tabs to the propList
Definition: STOFFSection.cxx:130
Definition: STOFFDocument.hxx:42
struct to store the columns properties
Definition: STOFFSection.hxx:108
friend std::ostream & operator<<(std::ostream &o, Column const &column)
operator <<
Definition: STOFFSection.cxx:44
std::vector< Column > m_columns
the different column
Definition: STOFFSection.hxx:98
librevenge::RVNGUnit m_widthUnit
the width unit (default inches)
Definition: STOFFSection.hxx:139
void addTo(librevenge::RVNGPropertyList &propList) const
add to the propList
Definition: STOFFSection.cxx:120
bool hasSingleColumns() const
returns the true if the section has only one columns
Definition: STOFFSection.hxx:68
STOFFSection()
constructor
Definition: STOFFSection.hxx:50
void setColumns(int num, double width, librevenge::RVNGUnit widthUnit, double colSep=0)
a function which sets n uniform columns
Definition: STOFFSection.cxx:99
bool m_balanceText
true if the text is balanced between different columns
Definition: STOFFSection.hxx:102
friend std::ostream & operator<<(std::ostream &o, STOFFSection const &sec)
operator <<
Definition: STOFFSection.cxx:86
bool addTo(librevenge::RVNGPropertyList &propList) const
add a column to the propList
Definition: STOFFSection.cxx:55
double m_margins[4]
the margins in inches using libstoff::Position orders
Definition: STOFFSection.hxx:141
bool operator==(Column const &col) const
operator==
Definition: STOFFSection.hxx:131
bool operator!=(STOFFSection const &sec) const
operator!=
Definition: STOFFSection.hxx:79
bool operator!=(Column const &col) const
operator!=
Definition: STOFFSection.hxx:120
int numColumns() const
returns the number of columns
Definition: STOFFSection.hxx:63
a class which stores section properties
Definition: STOFFSection.hxx:45
double m_width
the total section width ( if set )
Definition: STOFFSection.hxx:100
virtual ~STOFFSection()
destructor
Definition: STOFFSection.hxx:54
the class to store a color
Definition: libstaroffice_internal.hxx:179
bool operator==(STOFFSection const &sec) const
operator==
Definition: STOFFSection.hxx:92
STOFFColor m_backgroundColor
the background color
Definition: STOFFSection.hxx:104
double m_width
the columns width
Definition: STOFFSection.hxx:137
Column()
constructor
Definition: STOFFSection.hxx:110