41#include <librevenge/librevenge.h>
88 void addTo(librevenge::RVNGPropertyList &propList)
const;
156 void setId(
int newId)
const;
161 if (levl >= 0 && levl <
int(
m_levels.size()))
163 STOFF_DEBUG_MSG((
"STOFFList::getLevel: can not find level %d\n", levl));
189 bool addTo(
int level, librevenge::RVNGPropertyList &pList)
const;
219 bool needToSend(
int index, std::vector<int> &idMarkerList)
const;
221 std::shared_ptr<STOFFList>
getList(
int index)
const;
225 std::shared_ptr<STOFFList>
addList(std::shared_ptr<STOFFList> actList);
Class to store font.
Definition: STOFFFont.hxx:44
a manager which manages the lists, keeps the different kind of lists, to assure the unicity of each l...
Definition: STOFFList.hxx:210
std::shared_ptr< STOFFList > getNewList(std::shared_ptr< STOFFList > actList, int levl, STOFFListLevel const &level)
returns a new list corresponding to a list where we have a new level
Definition: STOFFList.cxx:291
bool needToSend(int index, std::vector< int > &idMarkerList) const
check if a list need to be send/resend to the interface
Definition: STOFFList.cxx:243
std::shared_ptr< STOFFList > addList(std::shared_ptr< STOFFList > actList)
add a new list
Definition: STOFFList.cxx:274
~STOFFListManager()
the destructor
Definition: STOFFList.hxx:217
std::shared_ptr< STOFFList > getList(int index) const
returns a list with given index ( if found )
Definition: STOFFList.cxx:261
std::vector< int > m_sendIdMarkerList
the list of send list to interface
Definition: STOFFList.hxx:230
std::vector< STOFFList > m_listList
the list of created list
Definition: STOFFList.hxx:228
STOFFListManager()
the constructor
Definition: STOFFList.hxx:213
a small structure used to store the informations about a list
Definition: STOFFList.hxx:110
STOFFList(bool outline)
default constructor
Definition: STOFFList.hxx:113
int getStartValueForNextElement() const
returns the startvalue corresponding to the actual level ( or -1 for an unknown/unordered list)
Definition: STOFFList.cxx:209
int m_id[2]
the identificator ( actual and auxilliar )
Definition: STOFFList.hxx:203
void openElement() const
open the list element
Definition: STOFFList.cxx:220
void updateIndicesFrom(STOFFList const &list)
update the indices, the actual level from newList
Definition: STOFFList.cxx:102
void setLevel(int levl) const
set the list level
Definition: STOFFList.cxx:183
int getId() const
returns the list id
Definition: STOFFList.hxx:125
void set(int levl, STOFFListLevel const &level)
sets a level
Definition: STOFFList.cxx:164
librevenge::RVNGString m_name
the list name
Definition: STOFFList.hxx:194
void closeElement() const
close the list element
Definition: STOFFList.hxx:179
bool isNumeric(int levl) const
returns true is a level is numeric
Definition: STOFFList.cxx:230
void swapId() const
swap the list id
Definition: STOFFList.hxx:148
int numLevels() const
returns the number of level
Definition: STOFFList.hxx:167
void resize(int levl)
resize the number of level of the list (keeping only n level)
Definition: STOFFList.cxx:86
STOFFListLevel getLevel(int levl) const
returns a level if it exists
Definition: STOFFList.hxx:159
int getMarker() const
returns the actual modify marker
Definition: STOFFList.hxx:131
bool addTo(int level, librevenge::RVNGPropertyList &pList) const
retrieve the list level property
Definition: STOFFList.cxx:143
int m_actLevel
the actual levels
Definition: STOFFList.hxx:200
int m_modifyMarker
a modification marker ( can be used to check if a list has been send to a interface )
Definition: STOFFList.hxx:205
std::vector< int > m_actualIndices
Definition: STOFFList.hxx:201
std::vector< STOFFListLevel > m_levels
the different levels
Definition: STOFFList.hxx:197
std::vector< int > m_nextIndices
Definition: STOFFList.hxx:201
void setStartValueForNextElement(int value)
set the startvalue corresponding to the actual level
Definition: STOFFList.cxx:197
void setId(int newId) const
set the list id
Definition: STOFFList.cxx:137
bool m_outline
flag to know if the list is a outline list
Definition: STOFFList.hxx:192
bool isCompatibleWith(int levl, STOFFListLevel const &level) const
returns true if we can add a new level in the list without changing is meaning
Definition: STOFFList.cxx:114
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:129
small structure to keep information about a list level
Definition: STOFFList.hxx:48
void addTo(librevenge::RVNGPropertyList &propList) const
add the information of this level in the propList
Definition: STOFFList.cxx:52
bool isDefault() const
returns true if the level type was not set
Definition: STOFFList.hxx:68
bool isNumeric() const
returns true if the list is decimal, alpha or roman
Definition: STOFFList.hxx:73
int m_startValue
the actual value (if this is an ordered level )
Definition: STOFFList.hxx:105
STOFFListLevel & operator=(STOFFListLevel const &)=default
STOFFListLevel()
basic constructor
Definition: STOFFList.hxx:53
librevenge::RVNGPropertyList m_propertyList
the propertyList
Definition: STOFFList.hxx:101
~STOFFListLevel()
destructor
Definition: STOFFList.cxx:48
bool operator==(STOFFListLevel const &levl) const
operator==
Definition: STOFFList.hxx:78
Type m_type
the type of the level
Definition: STOFFList.hxx:99
STOFFListLevel & operator=(STOFFListLevel &&)=default
int cmp(STOFFListLevel const &levl) const
comparison function ( compare all values excepted m_startValues
Definition: STOFFList.cxx:67
STOFFListLevel(STOFFListLevel &&)=default
std::shared_ptr< STOFFFont > m_font
the font
Definition: STOFFList.hxx:103
Type
the type of the level
Definition: STOFFList.hxx:50
@ DEFAULT
Definition: STOFFList.hxx:50
@ BULLET
Definition: STOFFList.hxx:50
@ NUMBER
Definition: STOFFList.hxx:50
@ NONE
Definition: STOFFList.hxx:50
STOFFListLevel(STOFFListLevel const &)=default
bool operator!=(STOFFListLevel const &levl) const
operator!=
Definition: STOFFList.hxx:83
int getStartValue() const
returns the start value (if set) or 1
Definition: STOFFList.hxx:91