Small class to manage the span style. More...
#include <EPUBSpanStyleManager.h>
Public Member Functions | |
EPUBSpanStyleManager (std::string classNamePrefix) | |
constructor | |
virtual | ~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 (EPUBCSSContent &out) |
send the data to the sink |
Protected Member Functions | |
virtual void | extractProperties (librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const |
convert a property list into a CSS property map |
Protected Attributes | |
ContentNameMap_t | m_contentNameMap |
a map content -> name | |
std::map< int, std::string > | m_idNameMap |
a map id -> name | |
std::string | m_classNamePrefix |
Private Types | |
typedef std::unordered_map< EPUBCSSProperties, std::string, boost::hash< EPUBCSSProperties > > | ContentNameMap_t |
Private Member Functions | |
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 | |
EPUBSpanStyleManager (EPUBSpanStyleManager const &orig) | |
EPUBSpanStyleManager | operator= (EPUBSpanStyleManager const &orig) |
Small class to manage the span style.
|
private |
|
inline |
constructor
Referenced by libepubgen::EPUBBodyStyleManager::EPUBBodyStyleManager(), EPUBSpanStyleManager(), and operator=().
|
inlinevirtual |
destructor
|
private |
void libepubgen::EPUBSpanStyleManager::defineSpan | ( | librevenge::RVNGPropertyList const & | pList | ) |
define a span style
|
private |
add data corresponding to the line decoration into the map
Referenced by extractProperties().
|
protectedvirtual |
convert a property list into a CSS property map
Reimplemented in libepubgen::EPUBBodyStyleManager.
Referenced by getClass(), and getStyle().
|
private |
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
|
private |
void libepubgen::EPUBSpanStyleManager::send | ( | EPUBCSSContent & | out | ) |
send the data to the sink
|
protected |
Referenced by EPUBSpanStyleManager(), and getClass().
|
protected |
a map content -> name
Referenced by EPUBSpanStyleManager(), getClass(), and send().
|
protected |
a map id -> name
Referenced by defineSpan(), EPUBSpanStyleManager(), and getClass().