Go to the documentation of this file.
41 #include <librevenge/librevenge.h>
133 for (
auto &
id :
m_id)
id = -1;
166 void setId(
int newId)
const;
171 if (levl >= 0 && levl <
int(
m_levels.size()))
173 MWAW_DEBUG_MSG((
"MWAWList::getLevel: can not find level %d\n", levl));
223 bool needToSend(
int index, std::vector<int> &idMarkerList)
const;
225 std::shared_ptr<MWAWList>
getList(
int index)
const;
Alignment
the item alignment
Definition: MWAWList.hxx:50
void setId(int newId) const
set the list id
Definition: MWAWList.cxx:261
Type
the type of the level
Definition: MWAWList.hxx:46
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:238
std::shared_ptr< MWAWFontManager > MWAWFontManagerPtr
a smart pointer of MWAWFontManager
Definition: libmwaw_internal.hxx:547
std::vector< int > m_sendIdMarkerList
the list of send list to interface
Definition: MWAWList.hxx:234
int numLevels() const
returns the number of level
Definition: MWAWList.hxx:177
int m_spanId
the style span id
Definition: MWAWList.hxx:116
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
librevenge::RVNGString m_suffix
string which follows the number if we have an ordered level
Definition: MWAWList.hxx:113
void closeElement() const
close the list element
Definition: MWAWList.hxx:189
@ NONE
Definition: MWAWList.hxx:46
@ LOWER_ALPHA
Definition: MWAWList.hxx:46
int m_startValue
the actual value (if this is an ordered level )
Definition: MWAWList.hxx:110
MWAWListLevel & operator=(MWAWListLevel &&)=default
void set(int levl, MWAWListLevel const &level)
sets a level
Definition: MWAWList.cxx:286
std::ostream & operator<<(std::ostream &o, MWAWListLevel const &level)
Definition: MWAWList.cxx:146
bool isNumeric(int levl) const
returns true is a level is numeric
Definition: MWAWList.cxx:352
std::vector< int > m_nextIndices
Definition: MWAWList.hxx:205
std::shared_ptr< MWAWList > getNewList(std::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:404
int getStartValue() const
returns the start value (if set) or 1
Definition: MWAWList.hxx:89
@ UPPER_ALPHA
Definition: MWAWList.hxx:46
bool needToSend(int index, std::vector< int > &idMarkerList) const
check if a list need to be send/resend to the interface
Definition: MWAWList.cxx:373
int getStartValueForNextElement() const
returns the startvalue corresponding to the actual level ( or -1 for an unknown/unordered list)
Definition: MWAWList.cxx:331
MWAWListLevel getLevel(int levl) const
returns a level if it exists
Definition: MWAWList.hxx:169
double m_labelBeforeSpace
the extra space between inserting a label
Definition: MWAWList.hxx:104
int m_actLevel
the actual levels
Definition: MWAWList.hxx:207
bool isNumeric() const
returns true if the list is decimal, alpha or roman
Definition: MWAWList.hxx:81
int getId() const
returns the list id
Definition: MWAWList.hxx:137
a small structure used to store the informations about a list
Definition: MWAWList.hxx:123
@ UPPER_ROMAN
Definition: MWAWList.hxx:47
bool isDefault() const
returns true if the level type was not set
Definition: MWAWList.hxx:76
MWAWListLevel()
basic constructor
Definition: MWAWList.hxx:53
void setStartValueForNextElement(int value)
set the startvalue corresponding to the actual level
Definition: MWAWList.cxx:319
MWAWListLevel & operator=(MWAWListLevel const &)=default
@ LOWER_ROMAN
Definition: MWAWList.hxx:47
void updateIndicesFrom(MWAWList const &list)
update the indices, the actual level from newList
Definition: MWAWList.cxx:226
@ RIGHT
Definition: MWAWList.hxx:50
std::vector< MWAWListLevel > m_levels
the different levels
Definition: MWAWList.hxx:203
void setLevel(int levl) const
set the list level
Definition: MWAWList.cxx:305
MWAWList()
default constructor
Definition: MWAWList.hxx:126
@ LABEL
Definition: MWAWList.hxx:47
@ DEFAULT
Definition: MWAWList.hxx:46
librevenge::RVNGString m_bullet
the bullet if we have an bullet level
Definition: MWAWList.hxx:114
MWAWListManager(MWAWFontManagerPtr const &fontManager)
the constructor
Definition: MWAWList.cxx:365
MWAWFontManagerPtr m_fontManager
the font manager
Definition: MWAWList.hxx:230
int m_modifyMarker
a modification marker ( can be used to check if a list has been send to a interface )
Definition: MWAWList.hxx:211
@ DECIMAL
Definition: MWAWList.hxx:46
@ LEFT
Definition: MWAWList.hxx:50
~MWAWListLevel()
destructor
Definition: MWAWList.hxx:73
bool addTo(int level, librevenge::RVNGPropertyList &pList, MWAWFontManagerPtr fontManager) const
retrieve the list level property
Definition: MWAWList.cxx:267
void swapId() const
swap the list id
Definition: MWAWList.hxx:160
friend std::ostream & operator<<(std::ostream &o, MWAWListLevel const &ft)
operator<<
Definition: MWAWList.cxx:146
@ BULLET
Definition: MWAWList.hxx:46
~MWAWListManager()
the destructor
Definition: MWAWList.cxx:369
librevenge::RVNGString m_label
the text label
Definition: MWAWList.hxx:111
double m_labelWidth
the minimum label width
Definition: MWAWList.hxx:105
int m_id[2]
the identificator ( actual and auxilliar )
Definition: MWAWList.hxx:209
small structure to keep information about a list level
Definition: MWAWList.hxx:44
Type m_type
the type of the level
Definition: MWAWList.hxx:101
void addToListLevel(librevenge::RVNGPropertyList &propList, std::shared_ptr< MWAWFontConverter > fontConverter) const
add to the propList to a list level
Definition: MWAWFont.cxx:360
std::string m_extra
extra data
Definition: MWAWList.hxx:118
void openElement() const
open the list element
Definition: MWAWList.cxx:342
std::vector< MWAWList > m_listList
the list of created list
Definition: MWAWList.hxx:232
int m_numBeforeLabels
the number of label to show before this
Definition: MWAWList.hxx:103
@ CENTER
Definition: MWAWList.hxx:50
double m_labelAfterSpace
the minimum distance between the label and the text
Definition: MWAWList.hxx:106
int cmp(MWAWListLevel const &levl) const
comparison function ( compare all values excepted m_startValues
Definition: MWAWList.cxx:116
a manager which manages the lists, keeps the different kind of lists, to assure the unicity of each l...
Definition: MWAWList.hxx:216
void resize(int levl)
resize the number of level of the list (keeping only n level)
Definition: MWAWList.cxx:210
MWAWListLevel(MWAWListLevel const &)=default
Class to store font.
Definition: MWAWFont.hxx:44
std::vector< int > m_actualIndices
Definition: MWAWList.hxx:205
librevenge::RVNGString m_prefix
string which preceedes the number if we have an ordered level
Definition: MWAWList.hxx:112
void addTo(librevenge::RVNGPropertyList &propList, MWAWFontManagerPtr fontManager) const
add the information of this level in the propList
Definition: MWAWList.cxx:47
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWList.hxx:108
std::shared_ptr< MWAWList > getList(int index) const
returns a list with given index ( if found )
Definition: MWAWList.cxx:391
int getMarker() const
returns the actual modify marker
Definition: MWAWList.hxx:143
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20