Go to the documentation of this file.
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);
Definition: EPUBCSSContent.h:24
#define EPUBGEN_DEBUG_MSG(M)
Definition: libepubgen_utils.h:41
void insertRule(const librevenge::RVNGString &selector, const librevenge::RVNGPropertyList &properties)
Definition: EPUBCSSContent.cpp:22
void fillPropertyList(const EPUBCSSProperties &cssProps, librevenge::RVNGPropertyList &props)
Definition: EPUBCSSProperties.cpp:15
bool getColumnsWidth(int i, int numSpanned, double &w) const
try to return the col width
Definition: EPUBTableStyleManager.cpp:112
ContentNameMap_t m_tableContentNameMap
a map table content -> name
Definition: EPUBTableStyleManager.h:76
bool getRelColumnsWidth(int i, int numSpanned, double &w) const
try to return the relative col width
Definition: EPUBTableStyleManager.cpp:117
Definition: EPUBBinaryContent.cpp:15
void openTable(librevenge::RVNGPropertyList const &propList)
open a table
Definition: EPUBTableStyleManager.cpp:27
void extractCellProperties(librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const
convert a property list into a CSS property map
Definition: EPUBTableStyleManager.cpp:218
Small class to manage the tables style.
Definition: EPUBTableStyleManager.h:30
std::vector< std::vector< double > > m_relColumnWidthsStack
a stack of relative column width (in percents )
Definition: EPUBTableStyleManager.h:80
std::map< std::string, std::string > EPUBCSSProperties
Definition: EPUBCSSProperties.h:21
~EPUBTableStyleManager()
destructor
Definition: EPUBTableStyleManager.h:39
void extractTableProperties(librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const
convert a property list into a CSS property map
Definition: EPUBTableStyleManager.cpp:286
ContentNameMap_t m_rowContentNameMap
a map row content -> name
Definition: EPUBTableStyleManager.h:74
EPUBTableStyleManager()
constructor
Definition: EPUBTableStyleManager.h:35
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
void closeTable()
close a table
Definition: EPUBTableStyleManager.cpp:61
void send(EPUBCSSContent &out)
send the data to the sink
Definition: EPUBTableStyleManager.cpp:194
std::string getTableClass(librevenge::RVNGPropertyList const &pList)
returns the class name corresponding to a propertylist
Definition: EPUBTableStyleManager.cpp:170
void extractRowProperties(librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const
convert a property list into a CSS property map
Definition: EPUBTableStyleManager.cpp:278
std::unordered_map< EPUBCSSProperties, std::string, boost::hash< EPUBCSSProperties > > ContentNameMap_t
Definition: EPUBTableStyleManager.h:31
std::string getRowStyle(librevenge::RVNGPropertyList const &pList)
returns the style string corresponding to a propertylist
Definition: EPUBTableStyleManager.cpp:159
EPUBTableStyleManager(EPUBTableStyleManager const &orig)
std::string getCellClass(librevenge::RVNGPropertyList const &pList)
returns the class name corresponding to a propertylist
Definition: EPUBTableStyleManager.cpp:122
std::vector< std::vector< double > > m_columnWidthsStack
a stack of column width (in inches )
Definition: EPUBTableStyleManager.h:78
std::string getTableStyle(librevenge::RVNGPropertyList const &pList)
returns the style string corresponding to a propertylist
Definition: EPUBTableStyleManager.cpp:183
EPUBTableStyleManager operator=(EPUBTableStyleManager const &orig)
ContentNameMap_t m_cellContentNameMap
a map cell content -> name
Definition: EPUBTableStyleManager.h:72
Generated for libepubgen by
doxygen 1.8.20