Small class to manage the span style. More...
#include <EPUBSpanStyleManager.h>
Public Member Functions | |
EPUBSpanStyleManager () | |
constructor More... | |
~EPUBSpanStyleManager () | |
destructor More... | |
void | defineSpan (librevenge::RVNGPropertyList const &pList) |
define a span style More... | |
std::string | getClass (librevenge::RVNGPropertyList const &pList) |
returns the class name corresponding to a propertylist More... | |
std::string | getStyle (librevenge::RVNGPropertyList const &pList) |
returns the style string corresponding to a propertylist More... | |
void | send (EPUBCSSSink &out) |
send the data to the sink More... | |
Protected Member Functions | |
void | extractProperties (librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const |
convert a property list into a CSS property map More... | |
void | extractTextPosition (char const *value, EPUBCSSProperties &cssProps) const |
add data corresponding to a text position into the map More... | |
void | extractDecorations (librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const |
add data corresponding to the line decoration into the map More... | |
Protected Attributes | |
ContentNameMap_t | m_contentNameMap |
a map content -> name More... | |
std::map< int, std::string > | m_idNameMap |
a map id -> name More... | |
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) |
Small class to manage the span style.
|
private |
|
inline |
constructor
|
inline |
destructor
|
private |
void libepubgen::EPUBSpanStyleManager::defineSpan | ( | librevenge::RVNGPropertyList const & | pList | ) |
define a span style
|
protected |
add data corresponding to the line decoration into the map
Referenced by extractProperties().
|
protected |
convert a property list into a CSS property map
Referenced by getClass(), and getStyle().
|
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
|
private |
void libepubgen::EPUBSpanStyleManager::send | ( | EPUBCSSSink & | out | ) |
send the data to the sink
Referenced by libepubgen::EPUBGenerator::writeStylesheet().
|
protected |
a map content -> name
Referenced by getClass(), and send().
|
protected |
a map id -> name
Referenced by defineSpan(), and getClass().