Go to the documentation of this file.
   10 #ifndef INCLUDED_EPUBSPANSTYLEMANAGER_H 
   11 #define INCLUDED_EPUBSPANSTYLEMANAGER_H 
   15 #include <unordered_map> 
   17 #include <boost/functional/hash.hpp> 
   19 #include <librevenge/librevenge.h> 
   32   typedef std::unordered_map<EPUBCSSProperties, std::string, boost::hash<EPUBCSSProperties>> 
ContentNameMap_t;
 
   44   void defineSpan(librevenge::RVNGPropertyList 
const &pList);
 
   46   std::string 
getClass(librevenge::RVNGPropertyList 
const &pList);
 
   48   std::string 
getStyle(librevenge::RVNGPropertyList 
const &pList);
 
  
 
Definition: EPUBCSSContent.h:24
Impl(EPUBPackage *const package, int version)
Definition: EPUBPresentationGenerator.cpp:29
std::string getClass(librevenge::RVNGPropertyList const &pList)
returns the class name corresponding to a propertylist
Definition: EPUBSpanStyleManager.cpp:25
#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
virtual ~EPUBSpanStyleManager()
destructor
Definition: EPUBSpanStyleManager.h:40
Definition: EPUBBinaryContent.cpp:15
Definition: EPUBPresentationGenerator.cpp:24
std::string m_classNamePrefix
Definition: EPUBSpanStyleManager.h:66
std::map< int, std::string > m_idNameMap
a map id -> name
Definition: EPUBSpanStyleManager.h:64
virtual void extractProperties(librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const
convert a property list into a CSS property map
Definition: EPUBSpanStyleManager.cpp:85
std::map< std::string, std::string > EPUBCSSProperties
Definition: EPUBCSSProperties.h:21
std::string getStyle(librevenge::RVNGPropertyList const &pList)
returns the style string corresponding to a propertylist
Definition: EPUBSpanStyleManager.cpp:49
Small class to manage the span style.
Definition: EPUBSpanStyleManager.h:31
void send(EPUBCSSContent &out)
send the data to the sink
Definition: EPUBSpanStyleManager.cpp:75
EPUBSpanStyleManager(EPUBSpanStyleManager const &orig)
void extractTextPosition(char const *value, EPUBCSSProperties &cssProps) const
add data corresponding to a text position into the map
Definition: EPUBSpanStyleManager.cpp:184
std::unordered_map< EPUBCSSProperties, std::string, boost::hash< EPUBCSSProperties > > ContentNameMap_t
Definition: EPUBSpanStyleManager.h:32
ContentNameMap_t m_contentNameMap
a map content -> name
Definition: EPUBSpanStyleManager.h:62
void defineSpan(librevenge::RVNGPropertyList const &pList)
define a span style
Definition: EPUBSpanStyleManager.cpp:60
EPUBSpanStyleManager(std::string classNamePrefix)
constructor
Definition: EPUBSpanStyleManager.h:36
void extractDecorations(librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const
add data corresponding to the line decoration into the map
Definition: EPUBSpanStyleManager.cpp:153
Definition: EPUBPagedGenerator.h:26
EPUBSpanStyleManager operator=(EPUBSpanStyleManager const &orig)
Generated for libepubgen by 
doxygen 1.8.18