MWAWSection Class Reference documentation

Classes | Public Member Functions | Public Attributes | Friends | List of all members
MWAWSection Class Reference

a class which stores section properties More...

`#include <MWAWSection.hxx>`

Inheritance diagram for MWAWSection:

## Classes
struct | Column
| struct to store the columns properties More...

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

## Public Attributes
std::vector< Column > | m_columns
| the different column More...
double | m_width
| the total section width ( if set ) More...
MWAWBorder | m_columnSeparator
| the vertical separator between columns More...
bool | m_balanceText
| true if the text is balanced between different columns More...
MWAWColor | m_backgroundColor
| the background color More...

## Friends
std::ostream & | operator<< (std::ostream &o, MWAWSection const &sec)
| operator << More...

## Detailed Description

a class which stores section properties

## Constructor & Destructor Documentation

## ◆ MWAWSection()

MWAWSection::MWAWSection | ( |  | ) |
| inline

constructor

## ◆ ~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

returns the number of columns

Referenced by MarinerWrtText::send(), ClarisWksText::sendText(), WriterPlsParser::sendWindow(), and GreatWksText::sendZone().

## ◆ operator!=()

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

operator!=

Referenced by operator==().

## ◆ operator==()

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

operator==

## ◆ setColumns()

void MWAWSection::setColumns | ( | int | num,
|  | double | width,
|  | librevenge::RVNGUnit | widthUnit,
|  | double | colSep = `0`
| ) |  |

a function which sets n uniform columns

Note
  : this erases previous columns and border if there are some

Referenced by HanMacWrdKTextInternal::Section::getSection(), HanMacWrdJTextInternal::Section::getSection(), MsWks4Zone::readContentZones(), BeagleWksText::readSection(), LightWayTxtText::sendMainText(), MacWrtProStructuresListenerState::sendSection(), MsWrd1Parser::sendText(), NisusWrtText::sendText(), and WriteNowText::sendZone().

## 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(), operator!=(), and operator<<().

## ◆ m_balanceText

bool MWAWSection::m_balanceText

true if the text is balanced between different columns

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

## ◆ m_columns

std::vector<Column> MWAWSection::m_columns

the different column

Referenced by addColumnsTo(), addTo(), WriterPlsParser::findSection(), ClarisWksDocument::getMainSection(), GreatWksDRParserInternal::State::getSection(), GreatWksParserInternal::State::getSection(), HanMacWrdKTextInternal::Section::getSection(), MsWrdStruct::Section::getSection(), HanMacWrdJTextInternal::Section::getSection(), ClarisWksTextInternal::Section::getSection(), FullWrtTextInternal::PageInfo::getSection(), MacWrtProStructuresInternal::Section::getSection(), hasSingleColumns(), numColumns(), operator!=(), operator<<(), MarinerWrtParser::readZoneDim(), and setColumns().

## ◆ m_columnSeparator

MWAWBorder MWAWSection::m_columnSeparator

the vertical separator between columns

Referenced by addTo(), GreatWksDRParserInternal::State::getSection(), GreatWksParserInternal::State::getSection(), MWAWSection(), operator!=(), operator<<(), MsWks4Zone::readContentZones(), MarinerWrtParser::readDocInfo(), and BeagleWksText::readSection().

## ◆ m_width

double MWAWSection::m_width

the total section width ( if set )

Referenced by operator<<().

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

- MWAWSection.hxx
- MWAWSection.cxx