10 #ifndef INCLUDED_EPUBLISTSTYLEMANAGER_H
11 #define INCLUDED_EPUBLISTSTYLEMANAGER_H
17 #include <boost/unordered_map.hpp>
19 #include <librevenge/librevenge.h>
46 void setLevel(
int lvl, librevenge::RVNGPropertyList
const &property,
bool ordered);
79 void defineLevel(librevenge::RVNGPropertyList
const &property,
bool ordered);
81 std::string
openLevel(librevenge::RVNGPropertyList
const &pList,
bool ordered);
85 std::string
getClass(librevenge::RVNGPropertyList
const &pList);
std::map< int, List > m_idListMap
a map listId -> list
Definition: EPUBListStyleManager.h:93
Definition: EPUBCSSSink.h:23
List::ContentNameMap_t m_levelNameMap
a map content -> list level name
Definition: EPUBListStyleManager.h:91
Definition: EPUBBinarySink.cpp:12
List()
constructor
Definition: EPUBListStyleManager.h:38
Definition: EPUBListStyleManager.h:33
Small class to manage the paragraph style.
Definition: EPUBParagraphStyleManager.h:28
void send(EPUBCSSSink &out)
send the data to the sink
Definition: EPUBListStyleManager.cpp:78
Small class to manage the list style.
Definition: EPUBListStyleManager.h:30
boost::unordered_map< EPUBCSSProperties, std::string > ContentNameMap_t
Definition: EPUBListStyleManager.h:35
EPUBListStyleManager()
constructor
Definition: EPUBListStyleManager.h:70
void setLevel(int lvl, librevenge::RVNGPropertyList const &property, bool ordered)
set the property correspond to a level
Definition: EPUBListStyleManager.cpp:25
~EPUBListStyleManager()
destructor
Definition: EPUBListStyleManager.h:75
std::string getClass(librevenge::RVNGPropertyList const &pList)
returns the classname corresponding to a list element
Definition: EPUBListStyleManager.cpp:90
void defineLevel(librevenge::RVNGPropertyList const &property, bool ordered)
add a level to the corresponding list
Definition: EPUBListStyleManager.cpp:103
std::map< std::string, std::string > EPUBCSSProperties
Definition: EPUBCSSProperties.h:21
int m_level
the actual list level
Definition: EPUBListStyleManager.h:67
void openLevel() const
open a new level
Definition: EPUBListStyleManager.h:48
EPUBListStyleManager operator=(EPUBListStyleManager const &orig)
std::string openLevel(librevenge::RVNGPropertyList const &pList, bool ordered)
returns the class name corresponding to a propertylist
Definition: EPUBListStyleManager.cpp:118
std::vector< int > m_actualIdStack
the actual list id
Definition: EPUBListStyleManager.h:95
const EPUBCSSProperties & getCurrentProperties() const
return the properties of the current level
Definition: EPUBListStyleManager.cpp:67
~List()
destructor
Definition: EPUBListStyleManager.h:42
void closeLevel() const
open a new level
Definition: EPUBListStyleManager.h:53
void closeLevel()
close a level
Definition: EPUBListStyleManager.cpp:145
std::vector< EPUBCSSProperties > m_contentsList
the properties
Definition: EPUBListStyleManager.h:65