10 #ifndef INCLUDED_EPUBTABLESTYLEMANAGER_H
11 #define INCLUDED_EPUBTABLESTYLEMANAGER_H
13 #include <librevenge/librevenge.h>
18 #include <boost/unordered_map.hpp>
42 void openTable(librevenge::RVNGPropertyListVector
const &colList);
46 std::string
getCellClass(librevenge::RVNGPropertyList
const &pList);
48 std::string
getRowClass(librevenge::RVNGPropertyList
const &pList);
ContentNameMap_t m_rowContentNameMap
a map row content -> name
Definition: EPUBTableStyleManager.h:61
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)
std::vector< std::vector< double > > m_columWitdhsStack
a stack of column width (in inches )
Definition: EPUBTableStyleManager.h:63
EPUBTableStyleManager()
constructor
Definition: EPUBTableStyleManager.h:34
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:28
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:38
void closeTable()
close a table
Definition: EPUBTableStyleManager.cpp:47
boost::unordered_map< EPUBCSSProperties, std::string > ContentNameMap_t
Definition: EPUBTableStyleManager.h:30
ContentNameMap_t m_cellContentNameMap
a map cell content -> name
Definition: EPUBTableStyleManager.h:59
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
void send(EPUBCSSSink &out)
send the data to the sink
Definition: EPUBTableStyleManager.cpp:114