32 #include <librevenge/librevenge.h> 65 void addTo(librevenge::RVNGPropertyList &propList,
int startVal)
const;
133 void setId(
int newId);
141 void set(
int levl, Level
const &level);
157 void addLevelTo(
int level, librevenge::RVNGPropertyList &propList)
const;
int m_id
Definition: WPSList.h:164
Definition: libwps_internal.cpp:38
std::vector< int > m_actualIndices
Definition: WPSList.h:163
bool isNumeric() const
returns true if the list is decimal, alpha or roman
Definition: WPSList.h:60
std::vector< int > m_nextIndices
Definition: WPSList.h:163
bool isSendToInterface() const
returns true, if addTo has been called
Definition: WPSList.h:68
void closeElement() const
close the list element
Definition: WPSList.h:148
librevenge::RVNGString m_bullet
the bullet if we have an bullet level
Definition: WPSList.h:99
Definition: libwps_internal.h:246
bool mustSendLevel(int level) const
returns true of the level must be send to the document interface
Definition: WPSList.cpp:143
std::vector< Level > m_levels
Definition: WPSList.h:160
librevenge::RVNGString m_suffix
string which follows the number if we have an ordered level
Definition: WPSList.h:99
Level()
basic constructor
Definition: WPSList.h:44
bool m_sendToInterface
true if it is already send to librevenge::RVNGTextInterface
Definition: WPSList.h:105
libwps::NumberingType m_type
the type of the level
Definition: WPSList.h:98
small structure to keep information about a level
Definition: WPSList.h:40
Definition: libwps_internal.h:246
a small structure used to store the informations about a list
Definition: WPSList.h:36
void openElement() const
open the list element
Definition: WPSList.cpp:213
int m_actLevel
Definition: WPSList.h:162
void addLevelTo(int level, librevenge::RVNGPropertyList &propList) const
add level definition to propList
Definition: WPSList.cpp:156
void setLevel(int levl) const
set the list level
Definition: WPSList.cpp:198
int numLevels() const
returns the number of level
Definition: WPSList.h:136
int cmpType(Level const &levl) const
type comparison function
Definition: WPSList.cpp:67
double m_labelWidth
the list width
Definition: WPSList.h:94
NumberingType
Definition: libwps_internal.h:246
bool isNumeric(int levl) const
returns true is a level is numeric
Definition: WPSList.cpp:224
bool isDefault() const
returns true if the level type was not set
Definition: WPSList.h:55
void resetSendToInterface() const
reset the sendToInterface flag
Definition: WPSList.h:73
librevenge::RVNGString m_prefix
string which preceedes the number if we have an ordered level
Definition: WPSList.h:99
int getPreviousId() const
returns the previous list id
Definition: WPSList.h:127
int getId() const
returns the list id
Definition: WPSList.h:118
WPSList()
default constructor
Definition: WPSList.h:109
int m_previousId
Definition: WPSList.h:164
friend std::ostream & operator<<(std::ostream &o, Level const &ft)
operator<<
Definition: WPSList.cpp:95
void setId(int newId)
set the list id
Definition: WPSList.cpp:134
void addTo(librevenge::RVNGPropertyList &propList, int startVal) const
add the information of this level in the propList
Definition: WPSList.cpp:33
int getStartValue() const
returns the start value (if set) or 1
Definition: WPSList.h:79
int m_startValue
the actual value (if this is an ordered level )
Definition: WPSList.h:96
int cmp(Level const &levl) const
full comparison function
Definition: WPSList.cpp:80
double m_labelIndent
the list indent
Definition: WPSList.h:93