The StyleSheet class stores and saves the style information for a single DTD. More...
StyleSheet | ( ); | |
StyleSheet | ( const StyleSheet& src ); | |
void | addStyle | ( Style* style ); |
void | deleteStyle | ( Style* style ); |
Style* | getStyle | ( const Style* parent, const STag& tag ); |
void | save | ( ); |
QString | soi | ( ); |
void | soi | ( const QString& soi ); |
Style* | inherit | ( const Style* base, const Style* style ); |
QString | _soi; |
QList<Style> | _styles; |
The StyleSheet class stores and saves the style information for a single DTD.
Two types of styles are maintained: basic and compound. A basic style is a style associated with a single element (i.e. "BODY", "P", "H3"). These styles are added to the style sheet only by the style parser. Compound styles are created and cached as a document instance is being rendered. Compound styles look like "/HTML/HEAD/TITLE" or "/HTML/BODY/P/A/EM".Add a new basic or compound style to the style sheet.
Return the basic or compound style for the given tag path. If a compound style has been requested, all of the necessary intermediate compound styles will be created and cached automatically.
Save this style sheet, using its storage object identifier.
Return the storage object identifier for this style sheet.
Set the storage object identifier for this style sheet.
Create and return a new style by combining the two given styles. If a value in "style" is Inherit, then the value of the new style will be taken from "base".