MWAWSection Class Reference

a class which stores section properties More...

#include <MWAWSection.hxx>

Inheritance diagram for MWAWSection:
BeagleWksTextInternal::Section

Classes

struct  Column
 struct to store the columns properties More...
 

Public Member Functions

 MWAWSection ()
 constructor
 
 MWAWSection (MWAWSection const &)=default
 
MWAWSectionoperator= (MWAWSection const &)=default
 
MWAWSectionoperator= (MWAWSection &&)=default
 
virtual ~MWAWSection ()
 destructor
 
void setColumns (int num, double width, librevenge::RVNGUnit widthUnit, double colSep=0)
 a function which sets n uniform columns
 
int numColumns () const
 returns the number of columns
 
bool hasSingleColumns () const
 returns the true if the section has only one columns
 
void addTo (librevenge::RVNGPropertyList &propList) const
 add to the propList
 
void addColumnsTo (librevenge::RVNGPropertyListVector &propList) const
 add tabs to the propList
 
bool operator!= (MWAWSection const &sec) const
 operator!=
 
bool operator== (MWAWSection const &sec) const
 operator==
 

Public Attributes

std::vector< Columnm_columns
 the different column
 
double m_width
 the total section width ( if set )
 
MWAWBorder m_columnSeparator
 the vertical separator between columns
 
bool m_balanceText
 true if the text is balanced between different columns
 
MWAWColor m_backgroundColor
 the background color
 

Friends

std::ostream & operator<< (std::ostream &o, MWAWSection const &sec)
 operator <<
 

Detailed Description

a class which stores section properties

Constructor & Destructor Documentation

◆ MWAWSection() [1/2]

MWAWSection::MWAWSection ( )
inline

constructor

◆ MWAWSection() [2/2]

MWAWSection::MWAWSection ( MWAWSection const &  )
default

◆ ~MWAWSection()

MWAWSection::~MWAWSection ( )
virtual

destructor

Member Function Documentation

◆ addColumnsTo()

void MWAWSection::addColumnsTo ( librevenge::RVNGPropertyListVector &  propList) const

add tabs to the propList

◆ addTo()

void MWAWSection::addTo ( librevenge::RVNGPropertyList &  propList) const

add to the propList

◆ hasSingleColumns()

bool MWAWSection::hasSingleColumns ( ) const
inline

returns the true if the section has only one columns

◆ numColumns()

int MWAWSection::numColumns ( ) const
inline

◆ operator!=()

bool MWAWSection::operator!= ( MWAWSection const &  sec) const
inline

operator!=

Referenced by operator==().

◆ operator=() [1/2]

MWAWSection & MWAWSection::operator= ( MWAWSection &&  )
default

◆ operator=() [2/2]

MWAWSection & MWAWSection::operator= ( MWAWSection const &  )
default

◆ operator==()

bool MWAWSection::operator== ( MWAWSection const &  sec) const
inline

operator==

◆ setColumns()

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  o,
MWAWSection const &  sec 
)
friend

operator <<

Member Data Documentation

◆ m_backgroundColor

MWAWColor MWAWSection::m_backgroundColor

the background color

Referenced by addTo(), and operator!=().

◆ m_balanceText

bool MWAWSection::m_balanceText

true if the text is balanced between different columns

Referenced by addTo(), MsWrdStruct::Section::getSection(), operator!=(), and BeagleWksTextInternal::Section::Section().

◆ m_columns

◆ m_columnSeparator

◆ m_width

double MWAWSection::m_width

the total section width ( if set )


The documentation for this class was generated from the following files:

Generated on Wed May 3 2023 07:18:29 for libmwaw by doxygen 1.9.6