10 #ifndef INCLUDED_EPUBTABLESTYLEMANAGER_H 11 #define INCLUDED_EPUBTABLESTYLEMANAGER_H 13 #include <librevenge/librevenge.h> 16 #include <unordered_map> 19 #include <boost/functional/hash.hpp> 31 typedef std::unordered_map<EPUBCSSProperties, std::string, boost::hash<EPUBCSSProperties>>
ContentNameMap_t;
43 void openTable(librevenge::RVNGPropertyListVector
const &colList);
47 std::string
getCellClass(librevenge::RVNGPropertyList
const &pList);
49 std::string
getRowClass(librevenge::RVNGPropertyList
const &pList);
ContentNameMap_t m_rowContentNameMap
a map row content -> name
Definition: EPUBTableStyleManager.h:62
bool getColumnsWidth(int i, int numSpanned, double &w) const
try to return the col width
Definition: EPUBTableStyleManager.cpp:57
Definition: EPUBCSSSink.h:23
EPUBTableStyleManager operator=(EPUBTableStyleManager const &orig)
Definition: EPUBBinarySink.cpp:12
std::vector< std::vector< double > > m_columWitdhsStack
a stack of column width (in inches )
Definition: EPUBTableStyleManager.h:64
EPUBTableStyleManager()
constructor
Definition: EPUBTableStyleManager.h:35
void extractCellProperties(librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const
convert a property list into a CSS property map
Definition: EPUBTableStyleManager.cpp:131
std::string getCellClass(librevenge::RVNGPropertyList const &pList)
returns the class name corresponding to a propertylist
Definition: EPUBTableStyleManager.cpp:88
Small class to manage the tables style.
Definition: EPUBTableStyleManager.h:29
void openTable(librevenge::RVNGPropertyListVector const &colList)
open a table
Definition: EPUBTableStyleManager.cpp:25
std::map< std::string, std::string > EPUBCSSProperties
Definition: EPUBCSSProperties.h:21
~EPUBTableStyleManager()
destructor
Definition: EPUBTableStyleManager.h:39
void closeTable()
close a table
Definition: EPUBTableStyleManager.cpp:47
ContentNameMap_t m_cellContentNameMap
a map cell content -> name
Definition: EPUBTableStyleManager.h:60
std::string getRowClass(librevenge::RVNGPropertyList const &pList)
returns the class name corresponding to a propertylist
Definition: EPUBTableStyleManager.cpp:101
void extractRowProperties(librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const
convert a property list into a CSS property map
Definition: EPUBTableStyleManager.cpp:183
std::unordered_map< EPUBCSSProperties, std::string, boost::hash< EPUBCSSProperties > > ContentNameMap_t
Definition: EPUBTableStyleManager.h:31
void send(EPUBCSSSink &out)
send the data to the sink
Definition: EPUBTableStyleManager.cpp:114