CL_CSSDocument Class Reference
[clanCore CSS]

Cascading Style Sheet (CSS) document. Document class for cascading style sheets (CSS). !group=Core/CSS! !header=core.h! More...

#include <css_document.h>

List of all members.

Public Member Functions

Construction

 CL_CSSDocument ()
 Constructs a cascading style sheet document.
 ~CL_CSSDocument ()

Operations



std::vector< CL_CSSPropertyselect (const CL_StringRef &element)
 Find rule sets that match a given element.
void load (const CL_String &filename, const CL_VirtualDirectory &directory)
 Load CSS document from an input source.
void load (const CL_String &fullname)
 Load CSS document from disk.
static std::vector
< CL_CSSProperty
parse_style_properties (const CL_StringRef &style_text)
 Parses a text string and returns the CSS properties in it.

Detailed Description

Cascading Style Sheet (CSS) document. Document class for cascading style sheets (CSS). !group=Core/CSS! !header=core.h!


Constructor & Destructor Documentation

CL_CSSDocument::CL_CSSDocument (  ) 

Constructs a cascading style sheet document.

CL_CSSDocument::~CL_CSSDocument (  ) 

Member Function Documentation

void CL_CSSDocument::load ( const CL_String filename,
const CL_VirtualDirectory directory 
)

Load CSS document from an input source.

void CL_CSSDocument::load ( const CL_String fullname  ) 

Load CSS document from disk.

Parameters:
fullname = full filename
static std::vector<CL_CSSProperty> CL_CSSDocument::parse_style_properties ( const CL_StringRef style_text  )  [static]

Parses a text string and returns the CSS properties in it.

std::vector<CL_CSSProperty> CL_CSSDocument::select ( const CL_StringRef element  ) 

Find rule sets that match a given element.

The syntax of element is the same as specifying contextual elements in a CSS selector, i.e. 'body div.class a::id:link'.

The returned list is sorted with the most preferred properties returned first in the list.


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