41 #include <librevenge/librevenge.h> 130 for (
auto &
id : m_id)
id = -1;
142 return m_modifyMarker;
145 void resize(
int levl);
147 bool isCompatibleWith(
int levl,
MWAWListLevel const &level)
const;
149 bool isCompatibleWith(
MWAWList const &newList)
const;
151 void updateIndicesFrom(
MWAWList const &list);
159 std::swap(m_id[0], m_id[1]);
163 void setId(
int newId)
const;
168 if (levl >= 0 && levl <
int(m_levels.size()))
169 return m_levels[size_t(levl)];
170 MWAW_DEBUG_MSG((
"MWAWList::getLevel: can not find level %d\n", levl));
176 return int(m_levels.size());
182 void setLevel(
int levl)
const;
184 void openElement()
const;
188 int getStartValueForNextElement()
const;
190 void setStartValueForNextElement(
int value);
220 bool needToSend(
int index, std::vector<int> &idMarkerList)
const;
222 std::shared_ptr<MWAWList> getList(
int index)
const;
224 std::shared_ptr<MWAWList> getNewList(std::shared_ptr<MWAWList> actList,
int levl,
MWAWListLevel const &level);
MWAWList()
default constructor
Definition: MWAWList.hxx:123
librevenge::RVNGString m_label
the text label
Definition: MWAWList.hxx:108
Definition: MWAWList.hxx:50
int m_modifyMarker
a modification marker ( can be used to check if a list has been send to a interface ) ...
Definition: MWAWList.hxx:208
librevenge::RVNGString m_prefix
string which preceedes the number if we have an ordered level
Definition: MWAWList.hxx:108
bool isDefault() const
returns true if the level type was not set
Definition: MWAWList.hxx:73
Alignment
the item alignment
Definition: MWAWList.hxx:50
~MWAWListLevel()
destructor
Definition: MWAWList.hxx:70
Definition: MWAWList.hxx:46
double m_labelBeforeSpace
the extra space between inserting a label
Definition: MWAWList.hxx:101
MWAWListLevel()
basic constructor
Definition: MWAWList.hxx:53
int cmp(MWAWListLevel const &levl) const
comparison function ( compare all values excepted m_startValues
Definition: MWAWList.cxx:116
bool isNumeric() const
returns true if the list is decimal, alpha or roman
Definition: MWAWList.hxx:78
Definition: MWAWList.hxx:46
librevenge::RVNGString m_bullet
the bullet if we have an bullet level
Definition: MWAWList.hxx:108
Definition: MWAWList.hxx:46
MWAWListLevel getLevel(int levl) const
returns a level if it exists
Definition: MWAWList.hxx:166
small structure to keep information about a list level
Definition: MWAWList.hxx:44
int m_numBeforeLabels
the number of label to show before this
Definition: MWAWList.hxx:100
int m_spanId
the style span id
Definition: MWAWList.hxx:113
std::vector< int > m_nextIndices
Definition: MWAWList.hxx:202
Definition: MWAWList.hxx:47
double m_labelAfterSpace
the minimum distance between the label and the text
Definition: MWAWList.hxx:103
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
std::vector< MWAWListLevel > m_levels
the different levels
Definition: MWAWList.hxx:200
Definition: MWAWList.hxx:50
std::shared_ptr< MWAWFontManager > MWAWFontManagerPtr
a smart pointer of MWAWFontManager
Definition: libmwaw_internal.hxx:543
void addTo(librevenge::RVNGPropertyList &propList, MWAWFontManagerPtr fontManager) const
add the information of this level in the propList
Definition: MWAWList.cxx:47
int getId() const
returns the list id
Definition: MWAWList.hxx:134
std::vector< int > m_sendIdMarkerList
the list of send list to interface
Definition: MWAWList.hxx:231
Definition: MWAWList.hxx:46
Definition: MWAWList.hxx:50
Definition: MWAWList.hxx:47
void closeElement() const
close the list element
Definition: MWAWList.hxx:186
a manager which manages the lists, keeps the different kind of lists, to assure the unicity of each l...
Definition: MWAWList.hxx:212
librevenge::RVNGString m_suffix
string which follows the number if we have an ordered level
Definition: MWAWList.hxx:108
Definition: MWAWList.hxx:46
Type m_type
the type of the level
Definition: MWAWList.hxx:98
int getStartValue() const
returns the start value (if set) or 1
Definition: MWAWList.hxx:86
Definition: MWAWList.hxx:47
friend std::ostream & operator<<(std::ostream &o, MWAWListLevel const &ft)
operator<<
Definition: MWAWList.cxx:146
MWAWFontManagerPtr m_fontManager
the font manager
Definition: MWAWList.hxx:227
std::string m_extra
extra data
Definition: MWAWList.hxx:115
Definition: MWAWList.hxx:46
int getMarker() const
returns the actual modify marker
Definition: MWAWList.hxx:140
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWList.hxx:105
int numLevels() const
returns the number of level
Definition: MWAWList.hxx:174
void swapId() const
swap the list id
Definition: MWAWList.hxx:157
double m_labelWidth
the minimum label width
Definition: MWAWList.hxx:102
a small structure used to store the informations about a list
Definition: MWAWList.hxx:119
Type
the type of the level
Definition: MWAWList.hxx:46
int m_startValue
the actual value (if this is an ordered level )
Definition: MWAWList.hxx:107
int m_actLevel
the actual levels
Definition: MWAWList.hxx:204
std::vector< MWAWList > m_listList
the list of created list
Definition: MWAWList.hxx:229