32 #include <libwpd/libwpd.h>
35 class WPXPropertyList;
36 class WPXDocumentInterface;
61 void addTo(WPXPropertyList &propList,
int startVal)
const;
124 void setId(
int newId);
132 void set(
int levl, Level
const &level);
148 void sendTo(WPXDocumentInterface &docInterface,
int level)
const;
int m_id
Definition: WPSList.h:155
std::vector< int > m_actualIndices
Definition: WPSList.h:154
WPXString m_prefix
string which preceedes the number if we have an ordered level
Definition: WPSList.h:95
bool isDefault() const
returns true if the level type was not set
Definition: WPSList.h:51
std::vector< int > m_nextIndices
Definition: WPSList.h:154
void sendTo(WPXDocumentInterface &docInterface, int level) const
send the list information to the document interface
Definition: WPSList.cpp:157
void openElement() const
open the list element
Definition: WPSList.cpp:222
int cmpType(Level const &levl) const
type comparison function
Definition: WPSList.cpp:67
Definition: libwps_internal.h:263
bool isNumeric() const
returns true if the list is decimal, alpha or roman
Definition: WPSList.h:56
WPXString m_bullet
the bullet if we have an bullet level
Definition: WPSList.h:95
std::vector< Level > m_levels
Definition: WPSList.h:151
int numLevels() const
returns the number of level
Definition: WPSList.h:127
Level()
basic constructor
Definition: WPSList.h:47
bool m_sendToInterface
true if it is already send to WPXDocumentInterface
Definition: WPSList.h:101
libwps::NumberingType m_type
the type of the level
Definition: WPSList.h:94
small structure to keep information about a level
Definition: WPSList.h:43
bool isNumeric(int levl) const
returns true is a level is numeric
Definition: WPSList.cpp:233
Definition: libwps_internal.h:263
a small structure used to store the informations about a list
Definition: WPSList.h:39
void resetSendToInterface() const
reset the sendToInterface flag
Definition: WPSList.h:69
int m_actLevel
Definition: WPSList.h:153
WPXString m_suffix
string which follows the number if we have an ordered level
Definition: WPSList.h:95
int getStartValue() const
returns the start value (if set) or 1
Definition: WPSList.h:75
void set(int levl, Level const &level)
sets a level
Definition: WPSList.cpp:185
bool isSendToInterface() const
returns true, if addTo has been called
Definition: WPSList.h:64
double m_labelWidth
the list width
Definition: WPSList.h:90
NumberingType
Definition: libwps_internal.h:263
bool mustSendLevel(int level) const
returns true of the level must be send to the document interface
Definition: WPSList.cpp:143
void addTo(WPXPropertyList &propList, int startVal) const
add the information of this level in the propList
Definition: WPSList.cpp:33
void setLevel(int levl) const
set the list level
Definition: WPSList.cpp:207
int cmp(Level const &levl) const
full comparison function
Definition: WPSList.cpp:80
int getId() const
returns the list id
Definition: WPSList.h:109
WPSList()
default constructor
Definition: WPSList.h:105
int getPreviousId() const
returns the previous list id
Definition: WPSList.h:118
int m_previousId
Definition: WPSList.h:155
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
int m_startValue
the actual value (if this is an ordered level )
Definition: WPSList.h:92
void closeElement() const
close the list element
Definition: WPSList.h:139
double m_labelIndent
the list indent
Definition: WPSList.h:89