Go to the documentation of this file.
10 #ifndef INCLUDED_EPUBPARAGRAPHSTYLEMANAGER_H
11 #define INCLUDED_EPUBPARAGRAPHSTYLEMANAGER_H
15 #include <unordered_map>
17 #include <boost/functional/hash.hpp>
19 #include <librevenge/librevenge.h>
31 typedef std::unordered_map<EPUBCSSProperties, std::string, boost::hash<EPUBCSSProperties>>
ContentNameMap_t;
45 std::string
getClass(librevenge::RVNGPropertyList
const &pList);
47 std::string
getStyle(librevenge::RVNGPropertyList
const &pList);
Definition: EPUBCSSContent.h:23
EPUBParagraphStyleManager operator=(EPUBParagraphStyleManager const &orig)
#define EPUBGEN_DEBUG_MSG(M)
Definition: libepubgen_utils.h:41
void insertRule(const librevenge::RVNGString &selector, const librevenge::RVNGPropertyList &properties)
Definition: EPUBCSSContent.cpp:22
void fillPropertyList(const EPUBCSSProperties &cssProps, librevenge::RVNGPropertyList &props)
Definition: EPUBCSSProperties.cpp:15
Definition: EPUBBinaryContent.cpp:14
std::map< std::string, std::string > EPUBCSSProperties
Definition: EPUBCSSProperties.h:21
void send(EPUBCSSContent &out)
send the data to the sink
Definition: EPUBParagraphStyleManager.cpp:68
std::unordered_map< EPUBCSSProperties, std::string, boost::hash< EPUBCSSProperties > > ContentNameMap_t
Definition: EPUBParagraphStyleManager.h:31
virtual ~EPUBParagraphStyleManager()
destructor
Definition: EPUBParagraphStyleManager.h:39
void defineParagraph(librevenge::RVNGPropertyList const &pList)
define a paragraph style
Definition: EPUBParagraphStyleManager.cpp:55
std::string getClass(librevenge::RVNGPropertyList const &pList)
returns the class name corresponding to a propertylist
Definition: EPUBParagraphStyleManager.cpp:25
void extractBorders(librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const
add data corresponding to the border
Definition: EPUBParagraphStyleManager.cpp:149
EPUBParagraphStyleManager()
constructor
Definition: EPUBParagraphStyleManager.h:35
Small class to manage the paragraph style.
Definition: EPUBParagraphStyleManager.h:29
ContentNameMap_t m_contentNameMap
a map content -> name
Definition: EPUBParagraphStyleManager.h:54
std::string getStyle(librevenge::RVNGPropertyList const &pList)
returns the style string corresponding to a propertylist
Definition: EPUBParagraphStyleManager.cpp:44
void extractProperties(librevenge::RVNGPropertyList const &pList, bool isList, EPUBCSSProperties &cssProps) const
convert a property list into a CSS property map
Definition: EPUBParagraphStyleManager.cpp:78
std::map< int, std::string > m_idNameMap
a map id -> name
Definition: EPUBParagraphStyleManager.h:56
Generated for libepubgen by
doxygen 1.8.17