WPSList::Level Struct Reference

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

#include <WPSList.h>

List of all members.

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 (librevenge::RVNGPropertyList &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
 full comparison function
int cmpType (Level const &levl) const
 type 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
librevenge::RVNGString m_prefix
 string which preceedes the number if we have an ordered level
librevenge::RVNGString m_suffix
 string which follows the number if we have an ordered level
librevenge::RVNGString m_bullet
 the bullet if we have an bullet level

Protected Attributes

bool m_sendToInterface
 true if it is already send to librevenge::RVNGTextInterface

Friends

std::ostream & operator<< (std::ostream &o, Level const &ft)
 operator<<

Detailed Description

small structure to keep information about a level


Constructor & Destructor Documentation

WPSList::Level::Level ( ) [inline]

basic constructor


Member Function Documentation

void WPSList::Level::addTo ( librevenge::RVNGPropertyList &  propList,
int  startVal 
) const

add the information of this level in the propList

int WPSList::Level::cmp ( WPSList::Level const &  levl) const

full comparison function

int WPSList::Level::cmpType ( WPSList::Level const &  levl) const

type comparison function

Referenced by WPSList::set().

int WPSList::Level::getStartValue ( ) const [inline]

returns the start value (if set) or 1

Referenced by WPSList::set().

bool WPSList::Level::isDefault ( ) const [inline]

returns true if the level type was not set

bool WPSList::Level::isNumeric ( ) const [inline]

returns true if the list is decimal, alpha or roman

Referenced by WPS8TextStyle::readParagraph().

bool WPSList::Level::isSendToInterface ( ) const [inline]

returns true, if addTo has been called

void WPSList::Level::resetSendToInterface ( ) const [inline]

reset the sendToInterface flag


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
WPSList::Level const &  ft 
) [friend]

operator<<


Member Data Documentation

librevenge::RVNGString WPSList::Level::m_bullet

the bullet if we have an bullet level

Referenced by addTo(), cmp(), cmpType(), operator<<(), WPS8TextStyle::readParagraph(), and WPS4Text::readParagraph().

librevenge::RVNGString WPSList::Level::m_prefix

string which preceedes the number if we have an ordered level

Referenced by addTo(), cmpType(), and operator<<().

bool WPSList::Level::m_sendToInterface [mutable, protected]

true if it is already send to librevenge::RVNGTextInterface

Referenced by addTo(), isSendToInterface(), and resetSendToInterface().

the actual value (if this is an ordered level )

Referenced by getStartValue(), operator<<(), WPS8TextStyle::readParagraph(), and WPSList::set().

librevenge::RVNGString WPSList::Level::m_suffix

string which follows the number if we have an ordered level

Referenced by addTo(), cmpType(), operator<<(), and WPS8TextStyle::readParagraph().


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