.TH "khtml::CSSStyleSelector" 3 "28 Jan 2004" "khtml Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
khtml::CSSStyleSelector \- the \fBStyleSelector\fP implementation for CSS.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <cssstyleselector.h>\fP
.PP
Inherits \fBkhtml::StyleSelector\fP.
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBSelectorState\fP { \fBUnknown\fP =  0, \fBApplies\fP, \fBAppliesPseudo\fP, \fBInvalid\fP }"
.br
.ti -1c
.RI "enum \fBSelectorMedia\fP { \fBMediaAural\fP =  1, \fBMediaBraille\fP, \fBMediaEmboss\fP, \fBMediaHandheld\fP, \fBMediaPrint\fP, \fBMediaProjection\fP, \fBMediaScreen\fP, \fBMediaTTY\fP, \fBMediaTV\fP }"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBCSSStyleSelector\fP (DOM::DocumentImpl *doc, \fBQString\fP userStyleSheet, DOM::StyleSheetListImpl *styleSheets, const  \fBKURL\fP &url, bool _strictParsing)"
.br
.RI "\fIcreates a new \fBStyleSelector\fP for a Document. \fP"
.ti -1c
.RI "\fBCSSStyleSelector\fP (DOM::CSSStyleSheetImpl *sheet)"
.br
.RI "\fIsame as above but for a single stylesheet. \fP"
.ti -1c
.RI "void \fBaddSheet\fP (DOM::CSSStyleSheetImpl *sheet)"
.br
.ti -1c
.RI "RenderStyle * \fBstyleForElement\fP (DOM::ElementImpl *e, int state=None)"
.br
.ti -1c
.RI "\fBQValueList\fP< int > \fBfontSizes\fP () const "
.br
.ti -1c
.RI "void \fBcomputeFontSizes\fP (\fBQPaintDeviceMetrics\fP *paintDeviceMetrics, int zoomFactor)"
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "void \fBloadDefaultStyle\fP (const  \fBKHTMLSettings\fP *s=0)"
.br
.ti -1c
.RI "void \fBclear\fP ()"
.br
.in -1c
.SS "Public Attributes"

.in +1c
.ti -1c
.RI "bool \fBstrictParsing\fP"
.br
.ti -1c
.RI "khtml::CSSStyleSelector::Encodedurl \fBencodedurl\fP"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "void \fBcheckSelector\fP (int selector, DOM::ElementImpl *e)"
.br
.ti -1c
.RI "bool \fBcheckOneSelector\fP (DOM::CSSSelector *selector, DOM::ElementImpl *e)"
.br
.ti -1c
.RI "void \fBbuildLists\fP ()"
.br
.ti -1c
.RI "void \fBclearLists\fP ()"
.br
.ti -1c
.RI "unsigned int \fBaddInlineDeclarations\fP (DOM::CSSStyleDeclarationImpl *decl, unsigned int numProps)"
.br
.ti -1c
.RI "void \fBapplyRule\fP (DOM::CSSProperty *prop)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "CSSStyleSelectorList * \fBauthorStyle\fP"
.br
.ti -1c
.RI "CSSStyleSelectorList * \fBuserStyle\fP"
.br
.ti -1c
.RI "DOM::CSSStyleSheetImpl * \fBuserSheet\fP"
.br
.ti -1c
.RI "unsigned int \fBselectors_size\fP"
.br
.ti -1c
.RI "DOM::CSSSelector ** \fBselectors\fP"
.br
.ti -1c
.RI "SelectorCache * \fBselectorCache\fP"
.br
.ti -1c
.RI "unsigned int \fBproperties_size\fP"
.br
.ti -1c
.RI "CSSOrderedProperty ** \fBproperties\fP"
.br
.ti -1c
.RI "\fBQMemArray\fP< CSSOrderedProperty > \fBinlineProps\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBm_medium\fP"
.br
.ti -1c
.RI "CSSOrderedProperty ** \fBpropsToApply\fP"
.br
.ti -1c
.RI "CSSOrderedProperty ** \fBpseudoProps\fP"
.br
.ti -1c
.RI "unsigned int \fBpropsToApplySize\fP"
.br
.ti -1c
.RI "unsigned int \fBpseudoPropsSize\fP"
.br
.ti -1c
.RI "int \fBdynamicState\fP"
.br
.ti -1c
.RI "RenderStyle::PseudoId \fBdynamicPseudo\fP"
.br
.ti -1c
.RI "int \fBusedDynamicStates\fP"
.br
.ti -1c
.RI "int \fBselectorDynamicState\fP"
.br
.ti -1c
.RI "RenderStyle * \fBstyle\fP"
.br
.ti -1c
.RI "RenderStyle * \fBparentStyle\fP"
.br
.ti -1c
.RI "DOM::ElementImpl * \fBelement\fP"
.br
.ti -1c
.RI "DOM::NodeImpl * \fBparentNode\fP"
.br
.ti -1c
.RI "\fBKHTMLView\fP * \fBview\fP"
.br
.ti -1c
.RI "\fBKHTMLPart\fP * \fBpart\fP"
.br
.ti -1c
.RI "const  \fBKHTMLSettings\fP * \fBsettings\fP"
.br
.ti -1c
.RI "\fBQPaintDeviceMetrics\fP * \fBpaintDeviceMetrics\fP"
.br
.ti -1c
.RI "\fBQValueList\fP< int > \fBm_fontSizes\fP"
.br
.ti -1c
.RI "bool \fBfontDirty\fP"
.br
.in -1c
.SS "Static Protected Attributes"

.in +1c
.ti -1c
.RI "DOM::CSSStyleSheetImpl * \fBdefaultSheet\fP = 0"
.br
.ti -1c
.RI "CSSStyleSelectorList * \fBdefaultStyle\fP = 0"
.br
.ti -1c
.RI "CSSStyleSelectorList * \fBdefaultPrintStyle\fP = 0"
.br
.in -1c
.SH "Detailed Description"
.PP 
the \fBStyleSelector\fP implementation for CSS. Definition at line 102 of file cssstyleselector.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "CSSStyleSelector::CSSStyleSelector (DOM::DocumentImpl * doc, \fBQString\fP userStyleSheet, DOM::StyleSheetListImpl * styleSheets, const \fBKURL\fP & url, bool _strictParsing)"
.PP
creates a new \fBStyleSelector\fP for a Document. goes through all StyleSheets defined in the document and creates a list of rules it needs to apply to objects
.PP
Also takes into account special cases for HTML documents, including the defaultStyle (which is html only)Definition at line 75 of file cssstyleselector.cpp.
.PP
References QPtrListIterator::current(), QString::isEmpty(), KHTMLView::mediaType(), KHTMLView::part(), KURL::setPath(), KURL::setQuery(), KURL::setRef(), KHTMLPart::settings(), KURL::url(), and KHTMLPart::zoomFactor().
.SS "CSSStyleSelector::CSSStyleSelector (DOM::CSSStyleSheetImpl * sheet)"
.PP
same as above but for a single stylesheet. Definition at line 138 of file cssstyleselector.cpp.

.SH "Author"
.PP 
Generated automatically by Doxygen for khtml Library from the source code.
