26 m_value = val.m_value;
27 m_important = val.m_important;
32 m_value = val.m_value;
33 m_important = val.m_important;
38 typedef std::map<tstring, property_value> props_map;
43 typedef std::shared_ptr<style> ptr;
44 typedef std::vector<style::ptr> vector;
46 props_map m_properties;
47 static string_map m_valid_values;
53 void operator=(
const style& val)
55 m_properties = val.m_properties;
58 void add(
const tchar_t* txt,
const tchar_t* baseurl)
63 void add_property(
const tchar_t* name,
const tchar_t* val,
const tchar_t* baseurl,
bool important);
65 const tchar_t* get_property(
const tchar_t* name)
const
69 props_map::const_iterator f = m_properties.find(name);
70 if(f != m_properties.end())
72 return f->second.m_value.c_str();
85 void parse_property(
const tstring& txt,
const tchar_t* baseurl);
86 void parse(
const tchar_t* txt,
const tchar_t* baseurl);
87 void parse_short_border(
const tstring& prefix,
const tstring& val,
bool important);
88 void parse_short_background(
const tstring& val,
const tchar_t* baseurl,
bool important);
89 void parse_short_font(
const tstring& val,
bool important);
90 void add_parsed_property(
const tstring& name,
const tstring& val,
bool important);
91 void remove_property(
const tstring& name,
bool important);