Cogs.Core
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
litehtml::style Class Reference

Public Types

typedef std::shared_ptr< styleptr
 
typedef std::vector< style::ptr > vector
 

Public Member Functions

 style (const style &val)
 
void operator= (const style &val)
 
void add (const tchar_t *txt, const tchar_t *baseurl)
 
void add_property (const tchar_t *name, const tchar_t *val, const tchar_t *baseurl, bool important)
 
const tchar_t * get_property (const tchar_t *name) const
 
void combine (const litehtml::style &src)
 
void clear ()
 

Private Member Functions

void parse_property (const tstring &txt, const tchar_t *baseurl)
 
void parse (const tchar_t *txt, const tchar_t *baseurl)
 
void parse_short_border (const tstring &prefix, const tstring &val, bool important)
 
void parse_short_background (const tstring &val, const tchar_t *baseurl, bool important)
 
void parse_short_font (const tstring &val, bool important)
 
void add_parsed_property (const tstring &name, const tstring &val, bool important)
 
void remove_property (const tstring &name, bool important)
 

Private Attributes

props_map m_properties
 

Static Private Attributes

static string_map m_valid_values
 

Detailed Description

Definition at line 40 of file style.h.

Member Typedef Documentation

◆ ptr

typedef std::shared_ptr<style> litehtml::style::ptr

Definition at line 43 of file style.h.

◆ vector

typedef std::vector<style::ptr> litehtml::style::vector

Definition at line 44 of file style.h.

Constructor & Destructor Documentation

◆ style() [1/2]

litehtml::style::style ( )

Definition at line 14 of file style.cpp.

◆ style() [2/2]

litehtml::style::style ( const style val)

Definition at line 18 of file style.cpp.

◆ ~style()

litehtml::style::~style ( )
virtual

Definition at line 23 of file style.cpp.

Member Function Documentation

◆ add()

void litehtml::style::add ( const tchar_t *  txt,
const tchar_t *  baseurl 
)
inline

Definition at line 58 of file style.h.

◆ add_parsed_property()

void litehtml::style::add_parsed_property ( const tstring &  name,
const tstring &  val,
bool  important 
)
private

Definition at line 608 of file style.cpp.

◆ add_property()

void litehtml::style::add_property ( const tchar_t *  name,
const tchar_t *  val,
const tchar_t *  baseurl,
bool  important 
)

Definition at line 75 of file style.cpp.

◆ clear()

void litehtml::style::clear ( )
inline

Definition at line 79 of file style.h.

◆ combine()

void litehtml::style::combine ( const litehtml::style src)

Definition at line 67 of file style.cpp.

◆ get_property()

const tchar_t * litehtml::style::get_property ( const tchar_t *  name) const
inline

Definition at line 65 of file style.h.

◆ operator=()

void litehtml::style::operator= ( const style val)
inline

Definition at line 53 of file style.h.

◆ parse()

void litehtml::style::parse ( const tchar_t *  txt,
const tchar_t *  baseurl 
)
private

Definition at line 28 of file style.cpp.

◆ parse_property()

void litehtml::style::parse_property ( const tstring &  txt,
const tchar_t *  baseurl 
)
private

Definition at line 39 of file style.cpp.

◆ parse_short_background()

void litehtml::style::parse_short_background ( const tstring &  val,
const tchar_t *  baseurl,
bool  important 
)
private

Definition at line 475 of file style.cpp.

◆ parse_short_border()

void litehtml::style::parse_short_border ( const tstring &  prefix,
const tstring &  val,
bool  important 
)
private

Definition at line 452 of file style.cpp.

◆ parse_short_font()

void litehtml::style::parse_short_font ( const tstring &  val,
bool  important 
)
private

Definition at line 539 of file style.cpp.

◆ remove_property()

void litehtml::style::remove_property ( const tstring &  name,
bool  important 
)
private

Definition at line 638 of file style.cpp.

Member Data Documentation

◆ m_properties

props_map litehtml::style::m_properties
private

Definition at line 46 of file style.h.

◆ m_valid_values

litehtml::string_map litehtml::style::m_valid_values
staticprivate
Initial value:
=
{
{ _t("white-space"), white_space_strings }
}

Definition at line 47 of file style.h.


The documentation for this class was generated from the following files: