libepubgen::EPUBSpanStyleManager Class Reference

Small class to manage the span style. More...

#include <EPUBSpanStyleManager.h>

List of all members.

Public Member Functions

 EPUBSpanStyleManager ()
 constructor
 ~EPUBSpanStyleManager ()
 destructor
void defineSpan (librevenge::RVNGPropertyList const &pList)
 define a span style
std::string getClass (librevenge::RVNGPropertyList const &pList)
 returns the class name corresponding to a propertylist
std::string getStyle (librevenge::RVNGPropertyList const &pList)
 returns the style string corresponding to a propertylist
void send (EPUBCSSSink &out)
 send the data to the sink

Protected Member Functions

void extractProperties (librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const
 convert a property list into a CSS property map
void extractTextPosition (char const *value, EPUBCSSProperties &cssProps) const
 add data corresponding to a text position into the map
void extractDecorations (librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const
 add data corresponding to the line decoration into the map

Protected Attributes

ContentNameMap_t m_contentNameMap
 a map content -> name
std::map< int, std::string > m_idNameMap
 a map id -> name

Private Types

typedef std::unordered_map
< EPUBCSSProperties,
std::string, boost::hash
< EPUBCSSProperties > > 
ContentNameMap_t

Private Member Functions

 EPUBSpanStyleManager (EPUBSpanStyleManager const &orig)
EPUBSpanStyleManager operator= (EPUBSpanStyleManager const &orig)

Detailed Description

Small class to manage the span style.


Member Typedef Documentation

typedef std::unordered_map<EPUBCSSProperties, std::string, boost::hash<EPUBCSSProperties> > libepubgen::EPUBSpanStyleManager::ContentNameMap_t [private]

Constructor & Destructor Documentation


Member Function Documentation

void libepubgen::EPUBSpanStyleManager::defineSpan ( librevenge::RVNGPropertyList const &  pList)

define a span style

void libepubgen::EPUBSpanStyleManager::extractDecorations ( librevenge::RVNGPropertyList const &  pList,
EPUBCSSProperties cssProps 
) const [protected]

add data corresponding to the line decoration into the map

Referenced by extractProperties().

void libepubgen::EPUBSpanStyleManager::extractProperties ( librevenge::RVNGPropertyList const &  pList,
EPUBCSSProperties cssProps 
) const [protected]

convert a property list into a CSS property map

Referenced by getClass(), and getStyle().

void libepubgen::EPUBSpanStyleManager::extractTextPosition ( char const *  value,
EPUBCSSProperties cssProps 
) const [protected]

add data corresponding to a text position into the map

Referenced by extractProperties().

std::string libepubgen::EPUBSpanStyleManager::getClass ( librevenge::RVNGPropertyList const &  pList)

returns the class name corresponding to a propertylist

Referenced by defineSpan().

std::string libepubgen::EPUBSpanStyleManager::getStyle ( librevenge::RVNGPropertyList const &  pList)

returns the style string corresponding to a propertylist

EPUBSpanStyleManager libepubgen::EPUBSpanStyleManager::operator= ( EPUBSpanStyleManager const &  orig) [private]

Member Data Documentation

a map content -> name

Referenced by getClass(), and send().

std::map<int, std::string> libepubgen::EPUBSpanStyleManager::m_idNameMap [protected]

a map id -> name

Referenced by defineSpan(), and getClass().


The documentation for this class was generated from the following files: