10 #ifndef INCLUDED_EPUBSPANSTYLEMANAGER_H
11 #define INCLUDED_EPUBSPANSTYLEMANAGER_H
16 #include <boost/unordered_map.hpp>
18 #include <librevenge/librevenge.h>
42 void defineSpan(librevenge::RVNGPropertyList
const &pList);
44 std::string
getClass(librevenge::RVNGPropertyList
const &pList);
std::map< int, std::string > m_idNameMap
a map id -> name
Definition: EPUBSpanStyleManager.h:57
Small class to manage the span style.
Definition: EPUBSpanStyleManager.h:28
Definition: EPUBCSSSink.h:23
~EPUBSpanStyleManager()
destructor
Definition: EPUBSpanStyleManager.h:38
void defineSpan(librevenge::RVNGPropertyList const &pList)
define a span style
Definition: EPUBSpanStyleManager.cpp:45
boost::unordered_map< EPUBCSSProperties, std::string > ContentNameMap_t
Definition: EPUBSpanStyleManager.h:30
std::string getClass(librevenge::RVNGPropertyList const &pList)
returns the class name corresponding to a propertylist
Definition: EPUBSpanStyleManager.cpp:25
EPUBSpanStyleManager()
constructor
Definition: EPUBSpanStyleManager.h:34
EPUBSpanStyleManager operator=(EPUBSpanStyleManager const &orig)
ContentNameMap_t m_contentNameMap
a map content -> name
Definition: EPUBSpanStyleManager.h:55
void extractProperties(librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const
convert a property list into a CSS property map
Definition: EPUBSpanStyleManager.cpp:68
void send(EPUBCSSSink &out)
send the data to the sink
Definition: EPUBSpanStyleManager.cpp:58
std::map< std::string, std::string > EPUBCSSProperties
Definition: EPUBCSSProperties.h:21
void extractDecorations(librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const
add data corresponding to the line decoration into the map
Definition: EPUBSpanStyleManager.cpp:136
void extractTextPosition(char const *value, EPUBCSSProperties &cssProps) const
add data corresponding to a text position into the map
Definition: EPUBSpanStyleManager.cpp:151