libepubgen::EPUBListStyleManager Class Reference

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

#include <EPUBListStyleManager.h>

Inheritance diagram for libepubgen::EPUBListStyleManager:
libepubgen::EPUBParagraphStyleManager

Classes

struct  List

Public Member Functions

 EPUBListStyleManager ()
 constructor
 ~EPUBListStyleManager () override
 destructor
void defineLevel (librevenge::RVNGPropertyList const &property, bool ordered)
 add a level to the corresponding list
std::string openLevel (librevenge::RVNGPropertyList const &pList, bool ordered)
 returns the class name corresponding to a propertylist
void closeLevel ()
 close a level
std::string getClass (librevenge::RVNGPropertyList const &pList)
 returns the classname corresponding to a list element
void send (EPUBCSSContent &out)
 send the data to the sink
Public Member Functions inherited from libepubgen::EPUBParagraphStyleManager
 EPUBParagraphStyleManager ()
 constructor
virtual ~EPUBParagraphStyleManager ()
 destructor
void defineParagraph (librevenge::RVNGPropertyList const &pList)
 define a paragraph 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 Attributes

List::ContentNameMap_t m_levelNameMap
 a map content -> list level name
std::map< int, Listm_idListMap
 a map listId -> list
std::vector< int > m_actualIdStack
 the actual list id
Protected Attributes inherited from libepubgen::EPUBParagraphStyleManager
ContentNameMap_t m_contentNameMap
 a map content -> name
std::map< int, std::string > m_idNameMap
 a map id -> name

Private Member Functions

 EPUBListStyleManager (EPUBListStyleManager const &orig)
EPUBListStyleManager operator= (EPUBListStyleManager const &orig)

Additional Inherited Members

Protected Member Functions inherited from libepubgen::EPUBParagraphStyleManager
void extractProperties (librevenge::RVNGPropertyList const &pList, bool isList, EPUBCSSProperties &cssProps) const
 convert a property list into a CSS property map
void extractBorders (librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const
 add data corresponding to the border

Detailed Description

Small class to manage the list style.

Constructor & Destructor Documentation

◆ EPUBListStyleManager() [1/2]

libepubgen::EPUBListStyleManager::EPUBListStyleManager ( )
inline

constructor

Referenced by EPUBListStyleManager(), and operator=().

◆ ~EPUBListStyleManager()

libepubgen::EPUBListStyleManager::~EPUBListStyleManager ( )
inlineoverride

destructor

◆ EPUBListStyleManager() [2/2]

libepubgen::EPUBListStyleManager::EPUBListStyleManager ( EPUBListStyleManager const & orig)
private

Member Function Documentation

◆ closeLevel()

void libepubgen::EPUBListStyleManager::closeLevel ( )

close a level

◆ defineLevel()

void libepubgen::EPUBListStyleManager::defineLevel ( librevenge::RVNGPropertyList const & property,
bool ordered )

add a level to the corresponding list

Referenced by openLevel().

◆ getClass()

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

returns the classname corresponding to a list element

◆ openLevel()

std::string libepubgen::EPUBListStyleManager::openLevel ( librevenge::RVNGPropertyList const & pList,
bool ordered )

returns the class name corresponding to a propertylist

◆ operator=()

EPUBListStyleManager libepubgen::EPUBListStyleManager::operator= ( EPUBListStyleManager const & orig)
private

◆ send()

void libepubgen::EPUBListStyleManager::send ( EPUBCSSContent & out)

send the data to the sink

Member Data Documentation

◆ m_actualIdStack

std::vector<int> libepubgen::EPUBListStyleManager::m_actualIdStack
protected

the actual list id

Referenced by closeLevel(), EPUBListStyleManager(), and openLevel().

◆ m_idListMap

std::map<int, List> libepubgen::EPUBListStyleManager::m_idListMap
protected

a map listId -> list

Referenced by closeLevel(), defineLevel(), EPUBListStyleManager(), and openLevel().

◆ m_levelNameMap

List::ContentNameMap_t libepubgen::EPUBListStyleManager::m_levelNameMap
protected

a map content -> list level name

Referenced by EPUBListStyleManager(), openLevel(), and send().


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

Generated for libepubgen by doxygen 1.14.0