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::RVNGPropertyList 
const &propList);
    47   std::string 
getCellClass(librevenge::RVNGPropertyList 
const &pList);
    49   std::string 
getCellStyle(librevenge::RVNGPropertyList 
const &pList);
    51   std::string 
getRowClass(librevenge::RVNGPropertyList 
const &pList);
    53   std::string 
getRowStyle(librevenge::RVNGPropertyList 
const &pList);
    55   std::string 
getTableClass(librevenge::RVNGPropertyList 
const &pList);
    57   std::string 
getTableStyle(librevenge::RVNGPropertyList 
const &pList);
 void send(EPUBCSSContent &out)
send the data to the sink 
Definition: EPUBTableStyleManager.cpp:194
ContentNameMap_t m_rowContentNameMap
a map row content -> name 
Definition: EPUBTableStyleManager.h:74
Definition: EPUBCSSContent.h:23
EPUBTableStyleManager operator=(EPUBTableStyleManager const &orig)
Definition: EPUBBinaryContent.cpp:14
std::vector< std::vector< double > > m_columnWidthsStack
a stack of column width (in inches ) 
Definition: EPUBTableStyleManager.h:78
std::string getTableClass(librevenge::RVNGPropertyList const &pList)
returns the class name corresponding to a propertylist 
Definition: EPUBTableStyleManager.cpp:170
EPUBTableStyleManager()
constructor 
Definition: EPUBTableStyleManager.h:35
std::string getCellClass(librevenge::RVNGPropertyList const &pList)
returns the class name corresponding to a propertylist 
Definition: EPUBTableStyleManager.cpp:122
Small class to manage the tables style. 
Definition: EPUBTableStyleManager.h:29
void extractRowProperties(librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const
convert a property list into a CSS property map 
Definition: EPUBTableStyleManager.cpp:278
std::string getTableStyle(librevenge::RVNGPropertyList const &pList)
returns the style string corresponding to a propertylist 
Definition: EPUBTableStyleManager.cpp:183
ContentNameMap_t m_tableContentNameMap
a map table content -> name 
Definition: EPUBTableStyleManager.h:76
std::map< std::string, std::string > EPUBCSSProperties
Definition: EPUBCSSProperties.h:21
void extractTableProperties(librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const
convert a property list into a CSS property map 
Definition: EPUBTableStyleManager.cpp:286
~EPUBTableStyleManager()
destructor 
Definition: EPUBTableStyleManager.h:39
bool getRelColumnsWidth(int i, int numSpanned, double &w) const
try to return the relative col width 
Definition: EPUBTableStyleManager.cpp:117
void closeTable()
close a table 
Definition: EPUBTableStyleManager.cpp:61
void extractCellProperties(librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const
convert a property list into a CSS property map 
Definition: EPUBTableStyleManager.cpp:218
bool getColumnsWidth(int i, int numSpanned, double &w) const
try to return the col width 
Definition: EPUBTableStyleManager.cpp:112
ContentNameMap_t m_cellContentNameMap
a map cell content -> name 
Definition: EPUBTableStyleManager.h:72
std::string getCellStyle(librevenge::RVNGPropertyList const &pList)
returns the style string corresponding to a propertylist 
Definition: EPUBTableStyleManager.cpp:135
std::string getRowClass(librevenge::RVNGPropertyList const &pList)
returns the class name corresponding to a propertylist 
Definition: EPUBTableStyleManager.cpp:146
std::string getRowStyle(librevenge::RVNGPropertyList const &pList)
returns the style string corresponding to a propertylist 
Definition: EPUBTableStyleManager.cpp:159
std::vector< std::vector< double > > m_relColumnWidthsStack
a stack of relative column width (in percents ) 
Definition: EPUBTableStyleManager.h:80
std::unordered_map< EPUBCSSProperties, std::string, boost::hash< EPUBCSSProperties > > ContentNameMap_t
Definition: EPUBTableStyleManager.h:31
void openTable(librevenge::RVNGPropertyList const &propList)
open a table 
Definition: EPUBTableStyleManager.cpp:27