small structure to keep information about a level More...
#include <WPSList.h>
Public Member Functions | |
| Level () | |
| basic constructor | |
| bool | isDefault () const |
| returns true if the level type was not set | |
| bool | isNumeric () const |
| returns true if the list is decimal, alpha or roman | |
| void | addTo (WPXPropertyList &propList, int startVal) const |
| add the information of this level in the propList | |
| bool | isSendToInterface () const |
| returns true, if addTo has been called | |
| void | resetSendToInterface () const |
| reset the sendToInterface flag | |
| int | getStartValue () const |
| returns the start value (if set) or 1 | |
| int | cmp (Level const &levl) const |
| comparison function | |
Public Attributes | |
| double | m_labelIndent |
| the list indent | |
| double | m_labelWidth |
| the list width | |
| int | m_startValue |
| the actual value (if this is an ordered level ) | |
| libwps::NumberingType | m_type |
| the type of the level | |
| WPXString | m_prefix |
| string which preceedes the number if we have an ordered level | |
| WPXString | m_suffix |
| string which follows the number if we have an ordered level | |
| WPXString | m_bullet |
| the bullet if we have an bullet level | |
Protected Attributes | |
| bool | m_sendToInterface |
| true if it is already send to WPXDocumentInterface | |
Friends | |
| std::ostream & | operator<< (std::ostream &o, Level const &ft) |
| operator<< | |
small structure to keep information about a level
|
inline |
basic constructor
| void WPSList::Level::addTo | ( | WPXPropertyList & | propList, |
| int | startVal | ||
| ) | const |
add the information of this level in the propList
| int WPSList::Level::cmp | ( | WPSList::Level const & | levl | ) | const |
comparison function
|
inline |
returns the start value (if set) or 1
Referenced by WPSList::set().
|
inline |
returns true if the level type was not set
|
inline |
returns true if the list is decimal, alpha or roman
|
inline |
returns true, if addTo has been called
|
inline |
reset the sendToInterface flag
|
friend |
operator<<
| WPXString WPSList::Level::m_bullet |
the bullet if we have an bullet level
Referenced by addTo(), cmp(), operator<<(), WPS8Parser::propertyChangePara(), and WPS4Text::readParagraph().
| double WPSList::Level::m_labelIndent |
the list indent
Referenced by addTo(), cmp(), operator<<(), and WPSParagraph::send().
| double WPSList::Level::m_labelWidth |
the list width
Referenced by addTo(), cmp(), operator<<(), and WPSParagraph::send().
| WPXString WPSList::Level::m_prefix |
string which preceedes the number if we have an ordered level
Referenced by addTo(), cmp(), and operator<<().
|
mutableprotected |
true if it is already send to WPXDocumentInterface
Referenced by addTo(), isSendToInterface(), and resetSendToInterface().
| int WPSList::Level::m_startValue |
the actual value (if this is an ordered level )
Referenced by getStartValue(), operator<<(), and WPSList::set().
| WPXString WPSList::Level::m_suffix |
string which follows the number if we have an ordered level
Referenced by addTo(), cmp(), operator<<(), and WPS8Parser::propertyChangePara().
| libwps::NumberingType WPSList::Level::m_type |
the type of the level
Referenced by addTo(), cmp(), isDefault(), isNumeric(), operator<<(), WPS8Parser::propertyChangePara(), WPS4Text::readParagraph(), and WPSList::set().