#include <ie_exp_HTML_StyleTree.h>
Public Member Functions | |
IE_Exp_HTML_StyleTree (PD_Document *pDocument) | |
~IE_Exp_HTML_StyleTree () | |
bool | add (const gchar *style_name, PD_Document *pDoc) |
const IE_Exp_HTML_StyleTree * | findAndUse (const gchar *style_name) |
const IE_Exp_HTML_StyleTree * | find (const gchar *style_name) const |
const IE_Exp_HTML_StyleTree * | find (PD_Style *style) const |
bool | descends (const gchar *style_name) const |
template<typename StyleListener > | |
void | print (StyleListener *listener) const |
const IE_Exp_HTML_StyleTree * | operator[] (UT_uint32 i) const |
UT_uint32 | count () const |
const std::string & | style_name () const |
const std::string & | class_name () const |
const std::string & | class_list () const |
PD_Document * | getDocument () const |
const std::string & | lookup (const std::string &prop_name) const |
Private Types | |
typedef std::map< std::string, std::string > | map_type |
Private Member Functions | |
IE_Exp_HTML_StyleTree (IE_Exp_HTML_StyleTree *parent, const gchar *name, PD_Style *style) | |
bool | add (const gchar *style_name, PD_Style *style) |
void | inUse () |
Private Attributes | |
PD_Document * | m_pDocument |
IE_Exp_HTML_StyleTree * | m_parent |
IE_Exp_HTML_StyleTree ** | m_list |
UT_uint32 | m_count |
UT_uint32 | m_max |
bool | m_bInUse |
std::string | m_style_name |
std::string | m_class_name |
std::string | m_class_list |
map_type | m_map |
typedef std::map<std::string, std::string> IE_Exp_HTML_StyleTree::map_type [private] |
IE_Exp_HTML_StyleTree::IE_Exp_HTML_StyleTree | ( | IE_Exp_HTML_StyleTree * | parent, | |
const gchar * | name, | |||
PD_Style * | style | |||
) | [private] |
References class_list(), gchar, PD_Style::getNthProperty(), is_CSS(), lookup(), m_class_list, m_class_name, m_map, m_style_name, s_removeWhiteSpace(), szName, UT_colorToHex(), UT_convertToDimension(), and UT_std_string_sprintf().
Referenced by add().
IE_Exp_HTML_StyleTree::IE_Exp_HTML_StyleTree | ( | PD_Document * | pDocument | ) |
References gchar, m_map, and s_prop_list.
bool IE_Exp_HTML_StyleTree::add | ( | const gchar * | style_name, | |
PD_Style * | style | |||
) | [private] |
References IE_Exp_HTML_StyleTree(), m_count, m_list, and m_max.
Referenced by IE_Exp_HTML::_buildStyleTree(), and add().
bool IE_Exp_HTML_StyleTree::add | ( | const gchar * | style_name, | |
PD_Document * | pDoc | |||
) |
const std::string& IE_Exp_HTML_StyleTree::class_list | ( | ) | const [inline] |
Referenced by IE_Exp_HTML_StyleTree().
const std::string& IE_Exp_HTML_StyleTree::class_name | ( | ) | const [inline] |
UT_uint32 IE_Exp_HTML_StyleTree::count | ( | ) | const [inline] |
bool IE_Exp_HTML_StyleTree::descends | ( | const gchar * | style_name | ) | const |
References descends(), m_parent, and m_style_name.
Referenced by descends().
const IE_Exp_HTML_StyleTree * IE_Exp_HTML_StyleTree::find | ( | const gchar * | style_name | ) | const |
References find(), m_count, m_list, and m_style_name.
Referenced by IE_Exp_HTML_Listener::_openBlock(), IE_Exp_HTML_Listener::_openList(), IE_Exp_HTML_Listener::_openSpan(), add(), find(), and findAndUse().
const IE_Exp_HTML_StyleTree * IE_Exp_HTML_StyleTree::find | ( | PD_Style * | style | ) | const |
References find(), gchar, PD_Style::getAttribute(), and PT_NAME_ATTRIBUTE_NAME.
const IE_Exp_HTML_StyleTree * IE_Exp_HTML_StyleTree::findAndUse | ( | const gchar * | style_name | ) |
References find(), and inUse().
Referenced by IE_Exp_HTML_StyleListener::styleCheck().
PD_Document* IE_Exp_HTML_StyleTree::getDocument | ( | void | ) | const [inline] |
Referenced by IE_Exp_HTML_StyleListener::styleCheck().
void IE_Exp_HTML_StyleTree::inUse | ( | ) | [private] |
References inUse(), m_bInUse, and m_parent.
Referenced by findAndUse(), and inUse().
const std::string & IE_Exp_HTML_StyleTree::lookup | ( | const std::string & | prop_name | ) | const |
References lookup(), m_map, and m_parent.
Referenced by IE_Exp_HTML_StyleTree(), and lookup().
const IE_Exp_HTML_StyleTree* IE_Exp_HTML_StyleTree::operator[] | ( | UT_uint32 | i | ) | const [inline] |
void IE_Exp_HTML_StyleTree::print | ( | StyleListener * | listener | ) | const |
References m_bInUse, m_class_name, m_count, m_list, m_map, m_parent, m_style_name, print(), StyleListener::styleClose(), StyleListener::styleNameValue(), StyleListener::styleOpen(), and UT_escapeXML().
Referenced by IE_Exp_HTML_Listener::_makeStylesheet(), print(), and IE_Exp_HTML::printStyleTree().
const std::string& IE_Exp_HTML_StyleTree::style_name | ( | ) | const [inline] |
bool IE_Exp_HTML_StyleTree::m_bInUse [private] |
std::string IE_Exp_HTML_StyleTree::m_class_list [private] |
Referenced by IE_Exp_HTML_StyleTree().
std::string IE_Exp_HTML_StyleTree::m_class_name [private] |
Referenced by IE_Exp_HTML_StyleTree(), and print().
UT_uint32 IE_Exp_HTML_StyleTree::m_count [private] |
Referenced by add(), find(), print(), and ~IE_Exp_HTML_StyleTree().
IE_Exp_HTML_StyleTree** IE_Exp_HTML_StyleTree::m_list [private] |
Referenced by add(), find(), print(), and ~IE_Exp_HTML_StyleTree().
map_type IE_Exp_HTML_StyleTree::m_map [private] |
Referenced by IE_Exp_HTML_StyleTree(), lookup(), and print().
UT_uint32 IE_Exp_HTML_StyleTree::m_max [private] |
Referenced by add().
Referenced by add(), descends(), inUse(), lookup(), and print().
PD_Document* IE_Exp_HTML_StyleTree::m_pDocument [private] |
std::string IE_Exp_HTML_StyleTree::m_style_name [private] |
Referenced by descends(), find(), IE_Exp_HTML_StyleTree(), and print().