Small class to manage the tables style. More...
#include <RVNGHTMLTextTableStyle.h>
Public Member Functions | |
RVNGHTMLTextTableStyleManager () | |
constructor | |
~RVNGHTMLTextTableStyleManager () | |
destructor | |
void | openTable (RVNGPropertyListVector const &colList) |
open a table | |
void | closeTable () |
close a table | |
std::string | getCellClass (RVNGPropertyList const &pList) |
returns the class name corresponding to a propertylist | |
std::string | getRowClass (RVNGPropertyList const &pList) |
returns the class name corresponding to a propertylist | |
void | send (std::ostream &out) |
send the data to the stream |
Private Member Functions | |
std::string | getCellContent (RVNGPropertyList const &pList) const |
convert a property list in a html content string | |
bool | getColumnsWidth (int i, int numSpanned, double &w) const |
try to return the col width | |
RVNGHTMLTextTableStyleManager (RVNGHTMLTextTableStyleManager const &orig) | |
RVNGHTMLTextTableStyleManager | operator= (RVNGHTMLTextTableStyleManager const &orig) |
Static Private Member Functions | |
static std::string | getRowContent (RVNGPropertyList const &pList) |
convert a property list in a html content string |
Private Attributes | |
std::map< std::string, std::string > | m_cellContentNameMap |
a map cell content -> name | |
std::map< std::string, std::string > | m_rowContentNameMap |
a map row content -> name | |
std::vector< std::vector< double > > | m_columWitdhsStack |
a stack of column width (in inches ) |
Small class to manage the tables style.
|
inline |
constructor
Referenced by operator=(), and RVNGHTMLTextTableStyleManager().
|
inline |
destructor
|
private |
void librevenge::RVNGHTMLTextTableStyleManager::closeTable | ( | ) |
close a table
std::string librevenge::RVNGHTMLTextTableStyleManager::getCellClass | ( | RVNGPropertyList const & | pList | ) |
returns the class name corresponding to a propertylist
|
private |
convert a property list in a html content string
Referenced by getCellClass().
|
private |
try to return the col width
Referenced by getCellContent().
std::string librevenge::RVNGHTMLTextTableStyleManager::getRowClass | ( | RVNGPropertyList const & | pList | ) |
returns the class name corresponding to a propertylist
|
staticprivate |
convert a property list in a html content string
Referenced by getRowClass().
void librevenge::RVNGHTMLTextTableStyleManager::openTable | ( | RVNGPropertyListVector const & | colList | ) |
open a table
|
private |
void librevenge::RVNGHTMLTextTableStyleManager::send | ( | std::ostream & | out | ) |
send the data to the stream
|
private |
a map cell content -> name
Referenced by getCellClass(), RVNGHTMLTextTableStyleManager(), and send().
|
private |
a stack of column width (in inches )
Referenced by closeTable(), getColumnsWidth(), openTable(), and RVNGHTMLTextTableStyleManager().
|
private |
a map row content -> name
Referenced by getRowClass(), RVNGHTMLTextTableStyleManager(), and send().