13#ifndef __STYLEENGINE_HH__
14#define __STYLEENGINE_HH__
47 lout::misc::SimpleVector <Node> *
stack;
92 void setId (
const char *
id);
A list of CssProperty objects.
void set(CssPropertyName name, CssValueType type, CssPropertyValue value)
Set property to a given name and type.
This class holds a CSS property and value pair.
HTML document tree interface.
This class provides the glue between HTML parser and CSS subsystem.
void parse(DilloHtml *html, DilloUrl *url, const char *buf, int buflen, CssOrigin origin)
void setPseudoVisited()
set the CSS pseudo class :visited.
void restyle(BrowserWindow *bw)
Recompute all style information from scratch This is used to take into account CSS styles for the HTM...
void setNonCssHint(CssPropertyName name, CssValueType type, CssPropertyValue value)
void apply(int i, dw::core::style::StyleAttrs *attrs, CssPropertyList *props, BrowserWindow *bw)
Make changes to StyleAttrs attrs according to CssPropertyList props.
void startElement(int tag, BrowserWindow *bw)
tell the styleEngine that a new html element has started.
void setId(const char *id)
dw::core::style::Style * style(BrowserWindow *bw)
void setNonCssHint(CssPropertyName name, CssValueType type, int value)
lout::misc::SimpleVector< Node > * stack
void setNonCssHint(CssPropertyName name, CssValueType type, const char *value)
void preprocessAttrs(dw::core::style::StyleAttrs *attrs)
dw::core::style::Style * wordStyle0(BrowserWindow *bw)
dw::core::style::Style * style0(int i, BrowserWindow *bw)
Create a new style object based on the previously opened / closed HTML elements and the nonCssPropert...
dw::core::style::Color * backgroundColor()
void endElement(int tag)
tell the styleEngine that a html element has ended.
void setPseudoLink()
set the CSS pseudo class :link.
bool computeValue(int *dest, CssLength value, dw::core::style::Font *font)
Resolve relative lengths to absolute values.
void computeBorderWidth(int *dest, CssProperty *p, dw::core::style::Font *font)
void setStyle(const char *style)
void setClass(const char *klass)
bool computeLength(dw::core::style::Length *dest, CssLength value, dw::core::style::Font *font)
dw::core::style::Style * wordStyle(BrowserWindow *bw)
dw::core::Layout * layout
void setNonCssHint(CssPropertyName name, CssValueType type, CssLength value)
dw::core::style::Style * backgroundStyle(BrowserWindow *bw)
Similar to StyleEngine::style(), but with backgroundColor set.
void inheritBackgroundColor()
Use of the background color of the parent style as default.
void postprocessAttrs(dw::core::style::StyleAttrs *attrs)
static void init()
Create the user agent style.
void inheritNonCssHints()
Instruct StyleEngine to use the nonCssHints from parent element This is only used for tables where no...
dw::core::style::StyleImage * backgroundImage(dw::core::style::BackgroundRepeat *bgRepeat, dw::core::style::BackgroundAttachment *bgAttachment, dw::core::style::Length *bgPositionX, dw::core::style::Length *bgPositionY)
The central class for managing and drawing a widget tree.
char * dStrdup(const char *s)
int Length
Type for representing all lengths within dw::core::style.
Contains the specific data for a single window.
dw::core::style::Style * wordStyle
DoctreeNode * doctreeNode
dw::core::style::Style * style
dw::core::style::Style * backgroundStyle
CssPropertyList * styleAttrProperties
CssPropertyList * styleAttrPropertiesImportant
bool inheritBackgroundColor
CssPropertyList * nonCssProperties