41 #include <libwpd/libwpd.h>
43 class WPXPropertyList;
44 class WPXDocumentInterface;
71 void addTo(WPXPropertyList &propList)
const;
137 void setId(
int newId)
const;
141 if (levl >= 0 && levl <
int(
m_levels.size()))
143 MWAW_DEBUG_MSG((
"MWAWList::getLevel: can not find level %d\n", levl));
168 void sendTo(WPXDocumentInterface &docInterface,
int level)
const;
190 bool send(
int index, WPXDocumentInterface &docInterface)
const;
192 shared_ptr<MWAWList>
getList(
int index)
const;
MWAWList()
default constructor
Definition: MWAWList.hxx:108
Definition: MWAWList.hxx:53
void setId(int newId) const
set the list id
Definition: MWAWList.cxx:239
bool isDefault() const
returns true if the level type was not set
Definition: MWAWList.hxx:63
Alignment
the item alignement
Definition: MWAWList.hxx:53
~MWAWListLevel()
destructor
Definition: MWAWList.hxx:60
shared_ptr< MWAWList > getNewList(shared_ptr< MWAWList > actList, int levl, MWAWListLevel const &level)
returns a new list corresponding to a list where we have a new level
Definition: MWAWList.cxx:385
Definition: MWAWList.hxx:49
double m_labelBeforeSpace
the extra space between inserting a label
Definition: MWAWList.hxx:86
void openElement() const
open the list element
Definition: MWAWList.cxx:318
MWAWListLevel()
basic constructor
Definition: MWAWList.hxx:56
int cmp(MWAWListLevel const &levl) const
comparison function ( compare all values excepted m_startValues
Definition: MWAWList.cxx:103
bool isNumeric() const
returns true if the list is decimal, alpha or roman
Definition: MWAWList.hxx:67
Definition: MWAWList.hxx:49
void updateIndicesFrom(MWAWList const &list)
update the indices, the actual level from newList
Definition: MWAWList.cxx:205
Definition: MWAWList.hxx:49
MWAWListLevel getLevel(int levl) const
returns a level if it exists
Definition: MWAWList.hxx:140
small structure to keep information about a list level
Definition: MWAWList.hxx:47
int m_numBeforeLabels
the number of label to show before this
Definition: MWAWList.hxx:90
std::vector< int > m_nextIndices
Definition: MWAWList.hxx:176
int getStartValueForNextElement() const
returns the startvalue corresponding to the actual level ( or -1 for an unknown/unordered list) ...
Definition: MWAWList.cxx:307
Definition: MWAWList.hxx:50
int m_id[2]
the identificator ( actual and auxilliar )
Definition: MWAWList.hxx:178
double m_labelAfterSpace
the minimum distance between the label and the text
Definition: MWAWList.hxx:88
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:111
void setStartValueForNextElement(int value)
set the startvalue corresponding to the actual level
Definition: MWAWList.cxx:298
std::vector< MWAWListLevel > m_levels
the different levels
Definition: MWAWList.hxx:172
Definition: MWAWList.hxx:53
void setLevel(int levl) const
set the list level
Definition: MWAWList.cxx:284
WPXString m_suffix
string which follows the number if we have an ordered level
Definition: MWAWList.hxx:95
WPXString m_prefix
string which preceedes the number if we have an ordered level
Definition: MWAWList.hxx:95
int getId() const
returns the list id
Definition: MWAWList.hxx:113
Definition: MWAWList.hxx:49
void sendTo(WPXDocumentInterface &docInterface, int level) const
send the list level information to the document interface.
Definition: MWAWList.cxx:245
Definition: MWAWList.hxx:53
Definition: MWAWList.hxx:50
void resize(int levl)
resize the number of level of the list (keeping only n level)
Definition: MWAWList.cxx:190
void closeElement() const
close the list element
Definition: MWAWList.hxx:158
void resetSend(size_t id) const
reset the list id corresponding to a list
Definition: MWAWList.cxx:362
shared_ptr< MWAWList > getList(int index) const
returns a list with given index ( if found )
Definition: MWAWList.cxx:372
a manager which manages the lists, keeps the different kind of lists, to assure the unicity of each l...
Definition: MWAWList.hxx:182
bool isCompatibleWith(int levl, MWAWListLevel const &level) const
returns true if we can add a new level in the list without changing is meaning
Definition: MWAWList.cxx:216
Definition: MWAWList.hxx:49
~MWAWListManager()
the destructor
Definition: MWAWList.hxx:188
Type m_type
the type of the level
Definition: MWAWList.hxx:85
int getStartValue() const
returns the start value (if set) or 1
Definition: MWAWList.hxx:74
Definition: MWAWList.hxx:50
friend std::ostream & operator<<(std::ostream &o, MWAWListLevel const &ft)
operator<<
Definition: MWAWList.cxx:131
std::vector< int > m_actualIndices
Definition: MWAWList.hxx:176
std::vector< bool > m_sendIdList
the list of send list to interface
Definition: MWAWList.hxx:201
std::string m_extra
extra data
Definition: MWAWList.hxx:100
bool isNumeric(int levl) const
returns true is a level is numeric
Definition: MWAWList.cxx:328
Definition: MWAWList.hxx:49
WPXString m_bullet
the bullet if we have an bullet level
Definition: MWAWList.hxx:95
Alignment m_alignment
the alignement ( left, center, ...)
Definition: MWAWList.hxx:92
WPXString m_label
the text label
Definition: MWAWList.hxx:95
int numLevels() const
returns the number of level
Definition: MWAWList.hxx:147
void swapId() const
swap the list id
Definition: MWAWList.hxx:130
double m_labelWidth
the minimum label width
Definition: MWAWList.hxx:87
a small structure used to store the informations about a list
Definition: MWAWList.hxx:104
Type
the type of the level
Definition: MWAWList.hxx:49
int m_startValue
the actual value (if this is an ordered level )
Definition: MWAWList.hxx:94
MWAWListManager()
the constructor
Definition: MWAWList.hxx:186
int m_actLevel
the actual levels
Definition: MWAWList.hxx:175
void set(int levl, MWAWListLevel const &level)
sets a level
Definition: MWAWList.cxx:269
std::vector< MWAWList > m_listList
the list of created list
Definition: MWAWList.hxx:199
bool send(int index, WPXDocumentInterface &docInterface) const
send the list to the document interface.
Definition: MWAWList.cxx:341
void addTo(WPXPropertyList &propList) const
add the information of this level in the propList
Definition: MWAWList.cxx:46