41 #include <librevenge/librevenge.h> 84 void addTo(librevenge::RVNGPropertyList &propList)
const;
111 , m_name(
""), m_levels()
117 m_id[0] = m_id[1] = -1;
129 return m_modifyMarker;
132 void resize(
int levl);
134 bool isCompatibleWith(
int levl,
STOFFListLevel const &level)
const;
136 bool isCompatibleWith(
STOFFList const &newList)
const;
138 void updateIndicesFrom(
STOFFList const &list);
152 void setId(
int newId)
const;
157 if (levl >= 0 && levl <
int(m_levels.size()))
158 return m_levels[size_t(levl)];
159 STOFF_DEBUG_MSG((
"STOFFList::getLevel: can not find level %d\n", levl));
165 return int(m_levels.size());
171 void setLevel(
int levl)
const;
173 void openElement()
const;
177 int getStartValueForNextElement()
const;
179 void setStartValueForNextElement(
int value);
185 bool addTo(
int level, librevenge::RVNGPropertyList &pList)
const;
211 , m_sendIdMarkerList() { }
215 bool needToSend(
int index, std::vector<int> &idMarkerList)
const;
217 std::shared_ptr<STOFFList> getList(
int index)
const;
219 std::shared_ptr<STOFFList> getNewList(std::shared_ptr<STOFFList> actList,
int levl,
STOFFListLevel const &level);
221 std::shared_ptr<STOFFList> addList(std::shared_ptr<STOFFList> actList);
Type
the type of the level
Definition: STOFFList.hxx:50
int m_modifyMarker
a modification marker ( can be used to check if a list has been send to a interface ) ...
Definition: STOFFList.hxx:201
std::vector< STOFFListLevel > m_levels
the different levels
Definition: STOFFList.hxx:193
void swapId() const
swap the list id
Definition: STOFFList.hxx:144
STOFFList(bool outline)
default constructor
Definition: STOFFList.hxx:109
STOFFListLevel getLevel(int levl) const
returns a level if it exists
Definition: STOFFList.hxx:155
bool isDefault() const
returns true if the level type was not set
Definition: STOFFList.hxx:64
Definition: STOFFList.hxx:50
int m_actLevel
the actual levels
Definition: STOFFList.hxx:196
std::vector< STOFFList > m_listList
the list of created list
Definition: STOFFList.hxx:224
bool operator!=(STOFFListLevel const &levl) const
operator!=
Definition: STOFFList.hxx:79
bool operator==(STOFFListLevel const &levl) const
operator==
Definition: STOFFList.hxx:74
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:129
std::vector< int > m_sendIdMarkerList
the list of send list to interface
Definition: STOFFList.hxx:226
bool m_outline
flag to know if the list is a outline list
Definition: STOFFList.hxx:188
STOFFListManager()
the constructor
Definition: STOFFList.hxx:209
small structure to keep information about a list level
Definition: STOFFList.hxx:48
int getStartValue() const
returns the start value (if set) or 1
Definition: STOFFList.hxx:87
int numLevels() const
returns the number of level
Definition: STOFFList.hxx:163
Type m_type
the type of the level
Definition: STOFFList.hxx:95
void addTo(librevenge::RVNGPropertyList &propList) const
add the information of this level in the propList
Definition: STOFFList.cxx:52
~STOFFListManager()
the destructor
Definition: STOFFList.hxx:213
a small structure used to store the informations about a list
Definition: STOFFList.hxx:105
std::shared_ptr< STOFFFont > m_font
the font
Definition: STOFFList.hxx:99
Definition: STOFFList.hxx:50
int cmp(STOFFListLevel const &levl) const
comparison function ( compare all values excepted m_startValues
Definition: STOFFList.cxx:67
librevenge::RVNGPropertyList m_propertyList
the propertyList
Definition: STOFFList.hxx:97
int getMarker() const
returns the actual modify marker
Definition: STOFFList.hxx:127
int getId() const
returns the list id
Definition: STOFFList.hxx:121
Class to store font.
Definition: STOFFFont.hxx:43
librevenge::RVNGString m_name
the list name
Definition: STOFFList.hxx:190
int m_startValue
the actual value (if this is an ordered level )
Definition: STOFFList.hxx:101
~STOFFListLevel()
destructor
Definition: STOFFList.cxx:48
STOFFListLevel()
basic constructor
Definition: STOFFList.hxx:53
void closeElement() const
close the list element
Definition: STOFFList.hxx:175
bool isNumeric() const
returns true if the list is decimal, alpha or roman
Definition: STOFFList.hxx:69
Definition: STOFFList.hxx:50
Definition: STOFFList.hxx:50
std::vector< int > m_nextIndices
Definition: STOFFList.hxx:197
a manager which manages the lists, keeps the different kind of lists, to assure the unicity of each l...
Definition: STOFFList.hxx:205