41 #include <librevenge/librevenge.h> 81 void addTo(librevenge::RVNGPropertyList &propList)
const;
119 STOFFList() : m_levels(), m_actLevel(-1), m_actualIndices(), m_nextIndices(), m_modifyMarker(1)
121 m_id[0] = m_id[1] = -1;
133 return m_modifyMarker;
136 void resize(
int levl);
138 bool isCompatibleWith(
int levl,
STOFFListLevel const &level)
const;
140 bool isCompatibleWith(
STOFFList const &newList)
const;
142 void updateIndicesFrom(
STOFFList const &list);
156 void setId(
int newId)
const;
161 if (levl >= 0 && levl <
int(m_levels.size()))
162 return m_levels[size_t(levl)];
163 STOFF_DEBUG_MSG((
"STOFFList::getLevel: can not find level %d\n", levl));
169 return int(m_levels.size());
175 void setLevel(
int levl)
const;
177 void openElement()
const;
181 int getStartValueForNextElement()
const;
183 void setStartValueForNextElement(
int value);
189 bool addTo(
int level, librevenge::RVNGPropertyList &pList)
const;
213 bool needToSend(
int index, std::vector<int> &idMarkerList)
const;
215 shared_ptr<STOFFList> getList(
int index)
const;
217 shared_ptr<STOFFList> getNewList(shared_ptr<STOFFList> actList,
int levl,
STOFFListLevel const &level);
Type
the type of the level
Definition: STOFFList.hxx:46
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:148
double m_labelAfterSpace
the minimum distance between the label and the text
Definition: STOFFList.hxx:99
STOFFListLevel getLevel(int levl) const
returns a level if it exists
Definition: STOFFList.hxx:159
librevenge::RVNGString m_prefix
string which preceedes the number if we have an ordered level
Definition: STOFFList.hxx:106
bool isDefault() const
returns true if the level type was not set
Definition: STOFFList.hxx:61
int m_actLevel
the actual levels
Definition: STOFFList.hxx:196
librevenge::RVNGString m_suffix
string which follows the number if we have an ordered level
Definition: STOFFList.hxx:106
Alignment
the item alignment
Definition: STOFFList.hxx:50
Definition: STOFFList.hxx:47
int m_numBeforeLabels
the number of label to show before this
Definition: STOFFList.hxx:101
std::vector< STOFFList > m_listList
the list of created list
Definition: STOFFList.hxx:220
bool operator!=(STOFFListLevel const &levl) const
operator!=
Definition: STOFFList.hxx:76
bool operator==(STOFFListLevel const &levl) const
operator==
Definition: STOFFList.hxx:71
Definition: STOFFList.hxx:47
double m_labelWidth
the minimum label width
Definition: STOFFList.hxx:98
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:127
std::vector< int > m_sendIdMarkerList
the list of send list to interface
Definition: STOFFList.hxx:222
Definition: STOFFList.hxx:50
std::string m_extra
extra data
Definition: STOFFList.hxx:111
Definition: STOFFList.hxx:46
STOFFListManager()
the constructor
Definition: STOFFList.hxx:209
Definition: STOFFList.hxx:46
small structure to keep information about a list level
Definition: STOFFList.hxx:44
Definition: STOFFList.hxx:50
int getStartValue() const
returns the start value (if set) or 1
Definition: STOFFList.hxx:84
int numLevels() const
returns the number of level
Definition: STOFFList.hxx:167
Type m_type
the type of the level
Definition: STOFFList.hxx:96
Definition: STOFFList.hxx:46
void addTo(librevenge::RVNGPropertyList &propList) const
add the information of this level in the propList
Definition: STOFFList.cxx:46
~STOFFListManager()
the destructor
Definition: STOFFList.hxx:211
friend std::ostream & operator<<(std::ostream &o, STOFFListLevel const &ft)
operator<<
Definition: STOFFList.cxx:134
a small structure used to store the informations about a list
Definition: STOFFList.hxx:115
librevenge::RVNGString m_bullet
the bullet if we have an bullet level
Definition: STOFFList.hxx:106
Definition: STOFFList.hxx:47
Definition: STOFFList.hxx:46
int cmp(STOFFListLevel const &levl) const
comparison function ( compare all values excepted m_startValues
Definition: STOFFList.cxx:106
int getMarker() const
returns the actual modify marker
Definition: STOFFList.hxx:131
STOFFList()
default constructor
Definition: STOFFList.hxx:119
double m_labelBeforeSpace
the extra space between inserting a label
Definition: STOFFList.hxx:97
int getId() const
returns the list id
Definition: STOFFList.hxx:125
Definition: STOFFList.hxx:50
librevenge::RVNGString m_label
the text label
Definition: STOFFList.hxx:106
int m_startValue
the actual value (if this is an ordered level )
Definition: STOFFList.hxx:105
~STOFFListLevel()
destructor
Definition: STOFFList.hxx:58
STOFFListLevel()
basic constructor
Definition: STOFFList.hxx:53
void closeElement() const
close the list element
Definition: STOFFList.hxx:179
bool isNumeric() const
returns true if the list is decimal, alpha or roman
Definition: STOFFList.hxx:66
Alignment m_alignment
the alignment ( left, center, ...)
Definition: STOFFList.hxx:103
Definition: STOFFList.hxx:46
Definition: STOFFList.hxx:46
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