MWAWListLevel Struct Reference documentation

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Types | Public Member Functions | Public Attributes | Friends | List of all members
MWAWListLevel Struct Reference

small structure to keep information about a list level More...

`#include <MWAWList.hxx>`

## Public Types
enum | Type { DEFAULT, NONE, BULLET, DECIMAL, LOWER_ALPHA, UPPER_ALPHA, LOWER_ROMAN, UPPER_ROMAN, LABEL }
| the type of the level More...
enum | Alignment { LEFT, RIGHT, CENTER }
| the item alignment More...

## Public Member Functions
| MWAWListLevel ()
| basic constructor More...
| ~MWAWListLevel ()
| destructor More...
bool | isDefault () const
| returns true if the level type was not set More...
bool | isNumeric () const
| returns true if the list is decimal, alpha or roman More...
void | addTo (librevenge::RVNGPropertyList &propList) const
| add the information of this level in the propList More...
int | getStartValue () const
| returns the start value (if set) or 1 More...
int | cmp (MWAWListLevel const &levl) const
| comparison function ( compare all values excepted m_startValues More...

## Public Attributes
Type | m_type
| the type of the level More...
double | m_labelBeforeSpace
| the extra space between inserting a label More...
double | m_labelWidth
| the minimum label width More...
double | m_labelAfterSpace
| the minimum distance between the label and the text More...
int | m_numBeforeLabels
| the number of label to show before this More...
Alignment | m_alignment
| the alignment ( left, center, ...) More...
int | m_startValue
| the actual value (if this is an ordered level ) More...
librevenge::RVNGString | m_label
| the text label More...
librevenge::RVNGString | m_prefix
| string which preceedes the number if we have an ordered level More...
librevenge::RVNGString | m_suffix
| string which follows the number if we have an ordered level More...
librevenge::RVNGString | m_bullet
| the bullet if we have an bullet level More...
std::string | m_extra
| extra data More...

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

## Detailed Description

small structure to keep information about a list level

## Member Enumeration Documentation

enum MWAWListLevel::Alignment

the item alignment

Enumerator
LEFT |
RIGHT |
CENTER |

enum MWAWListLevel::Type

the type of the level

Enumerator
DEFAULT |
NONE |
BULLET |
DECIMAL |
LOWER_ALPHA |
UPPER_ALPHA |
LOWER_ROMAN |
UPPER_ROMAN |
LABEL |

## Constructor & Destructor Documentation

MWAWListLevel::MWAWListLevel | ( |  | ) |
| inline

basic constructor

MWAWListLevel::~MWAWListLevel | ( |  | ) |
| inline

destructor

## Member Function Documentation

void MWAWListLevel::addTo | ( | librevenge::RVNGPropertyList & | propList | ) | const

add the information of this level in the propList

int MWAWListLevel::cmp | ( | MWAWListLevel const & | levl | ) | const

comparison function ( compare all values excepted m_startValues

Referenced by MWAWParagraph::cmp(), and MWAWList::isCompatibleWith().

int MWAWListLevel::getStartValue | ( |  | ) | const
| inline

returns the start value (if set) or 1

Referenced by addTo(), and MWAWList::set().

bool MWAWListLevel::isDefault | ( |  | ) | const
| inline

returns true if the level type was not set

bool MWAWListLevel::isNumeric | ( |  | ) | const
| inline

returns true if the list is decimal, alpha or roman

Referenced by MindWrtParserInternal::ZoneInfo::updateListId().

## Friends And Related Function Documentation

std::ostream& operator<< | ( | std::ostream & | o,
|  | MWAWListLevel const & | ft
| ) |  |
| friend

operator<<

## Member Data Documentation

Alignment MWAWListLevel::m_alignment

the alignment ( left, center, ...)

Referenced by addTo(), cmp(), operator<<(), and MarinerWrtText::readRulers().

librevenge::RVNGString MWAWListLevel::m_bullet

the bullet if we have an bullet level

Referenced by addTo(), cmp(), ActaParser::getMainList(), operator<<(), MsWks4Text::readParagraph(), MarinerWrtText::readRulers(), ClarisWksTextInternal::Paragraph::updateListLevel(), and MoreTextInternal::Paragraph::updateToFinalState().

std::string MWAWListLevel::m_extra

extra data

Referenced by operator<<(), and MoreText::readCustomListLevel().

librevenge::RVNGString MWAWListLevel::m_label

the text label

Referenced by addTo(), cmp(), operator<<(), and MoreText::readCustomListLevel().

double MWAWListLevel::m_labelAfterSpace

the minimum distance between the label and the text

Referenced by addTo(), cmp(), ActaParser::getMainList(), operator<<(), and MindWrtParserInternal::ZoneInfo::updateListId().

double MWAWListLevel::m_labelBeforeSpace

the extra space between inserting a label

Referenced by addTo(), cmp(), operator<<(), and MindWrtParserInternal::ZoneInfo::updateListId().

double MWAWListLevel::m_labelWidth

the minimum label width

Referenced by addTo(), cmp(), operator<<(), MsWks4Text::readParagraph(), MarinerWrtText::readRulers(), MindWrtParserInternal::ZoneInfo::updateListId(), ClarisWksTextInternal::Paragraph::updateListLevel(), and MoreTextInternal::Paragraph::updateToFinalState().

int MWAWListLevel::m_numBeforeLabels

the number of label to show before this

Referenced by addTo(), cmp(), MindWrtParserInternal::ListProperties::getLevel(), ActaParser::getMainList(), operator<<(), ClarisWksTextInternal::Paragraph::updateListLevel(), and MoreTextInternal::Paragraph::updateToFinalState().

librevenge::RVNGString MWAWListLevel::m_prefix

string which preceedes the number if we have an ordered level

Referenced by addTo(), cmp(), ActaParser::getMainList(), operator<<(), MindWrtParser::readHeadingCustom(), MindWrtParserInternal::ListProperties::updateHeadingList(), ClarisWksTextInternal::Paragraph::updateListLevel(), and MoreTextInternal::Paragraph::updateToFinalState().

int MWAWListLevel::m_startValue

the actual value (if this is an ordered level )

Referenced by getStartValue(), operator<<(), MWAWList::set(), and MindWrtParserInternal::ZoneInfo::updateListId().

librevenge::RVNGString MWAWListLevel::m_suffix

string which follows the number if we have an ordered level

Referenced by addTo(), cmp(), ActaParser::getMainList(), operator<<(), MindWrtParser::readHeadingCustom(), MindWrtParserInternal::ListProperties::updateHeadingList(), ClarisWksTextInternal::Paragraph::updateListLevel(), and MoreTextInternal::Paragraph::updateToFinalState().

Type MWAWListLevel::m_type

the type of the level

Referenced by addTo(), cmp(), ActaParser::getMainList(), isDefault(), isNumeric(), operator<<(), MoreText::readCustomListLevel(), MindWrtParser::readHeadingCustom(), MsWks4Text::readParagraph(), MarinerWrtText::readRulers(), MWAWList::set(), MindWrtParserInternal::ListProperties::updateHeadingList(), MindWrtParserInternal::ZoneInfo::updateListId(), ClarisWksTextInternal::Paragraph::updateListLevel(), and MoreTextInternal::Paragraph::updateToFinalState().

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

- MWAWList.hxx
- MWAWList.cxx