.TH "khtml::CSSStyleSelector" kde3 "11 Jun 2005" "Version Version 3.4.1" "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
.ti -1c
.RI "\fBCSSStyleSelector\fP (DOM::CSSStyleSheetImpl *sheet)"
.br
.ti -1c
.RI "void \fBaddSheet\fP (DOM::CSSStyleSheetImpl *sheet)"
.br
.ti -1c
.RI "RenderStyle * \fBstyleForElement\fP (DOM::ElementImpl *e)"
.br
.ti -1c
.RI "\fBQValueVector\fP< int > \fBfontSizes\fP () const "
.br
.ti -1c
.RI "\fBQValueVector\fP< int > \fBfixedFontSizes\fP () const "
.br
.ti -1c
.RI "void \fBcomputeFontSizes\fP (\fBQPaintDeviceMetrics\fP *paintDeviceMetrics, int zoomFactor)"
.br
.ti -1c
.RI "void \fBcomputeFontSizesFor\fP (\fBQPaintDeviceMetrics\fP *paintDeviceMetrics, int zoomFactor, \fBQValueVector\fP< int > &fontSizes, bool isFixed)"
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "static void \fBclear\fP ()"
.br
.ti -1c
.RI "static void \fBreparseConfiguration\fP ()"
.br
.ti -1c
.RI "static void \fBloadDefaultStyle\fP (const \fBKHTMLSettings\fP *s=0)"
.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 "void \fBadjustRenderStyle\fP (RenderStyle *style, DOM::ElementImpl *e)"
.br
.ti -1c
.RI "unsigned int \fBaddInlineDeclarations\fP (DOM::ElementImpl *e, DOM::CSSStyleDeclarationImpl *decl, unsigned int numProps)"
.br
.ti -1c
.RI "void \fBapplyRule\fP (int id, DOM::CSSValueImpl *value)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "CSSStyleSelectorList * \fBdefaultStyle\fP"
.br
.ti -1c
.RI "CSSStyleSelectorList * \fBdefaultQuirksStyle\fP"
.br
.ti -1c
.RI "CSSStyleSelectorList * \fBdefaultPrintStyle\fP"
.br
.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 "RenderStyle::PseudoId \fBdynamicPseudo\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 "\fBQValueVector\fP< int > \fBm_fontSizes\fP"
.br
.ti -1c
.RI "\fBQValueVector\fP< int > \fBm_fixedFontSizes\fP"
.br
.ti -1c
.RI "bool \fBfontDirty\fP"
.br
.in -1c
.SS "Static Protected Attributes"

.in +1c
.ti -1c
.RI "static DOM::CSSStyleSheetImpl * \fBs_defaultSheet\fP"
.br
.ti -1c
.RI "static DOM::CSSStyleSheetImpl * \fBs_quirksSheet\fP"
.br
.ti -1c
.RI "static CSSStyleSelectorList * \fBs_defaultStyle\fP"
.br
.ti -1c
.RI "static CSSStyleSelectorList * \fBs_defaultQuirksStyle\fP"
.br
.ti -1c
.RI "static CSSStyleSelectorList * \fBs_defaultPrintStyle\fP"
.br
.ti -1c
.RI "static RenderStyle * \fBstyleNotYetAvailable\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
the \fBStyleSelector\fP implementation for CSS. 
.PP
Definition at line 105 of file cssstyleselector.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "khtml::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. 
.PP
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)
.PP
Definition at line 121 of file cssstyleselector.cpp.
.PP
References QString::findRev(), KURL::host(), QString::isEmpty(), KHTMLView::mediaType(), KHTMLView::part(), KURL::setPath(), KURL::setQuery(), KURL::setRef(), KHTMLPart::settings(), QString::truncate(), KURL::url(), and KHTMLPart::zoomFactor().
.SS "khtml::CSSStyleSelector::CSSStyleSelector (DOM::CSSStyleSheetImpl * sheet)"
.PP
same as above but for a single stylesheet. 
.PP

.PP
Definition at line 182 of file cssstyleselector.cpp.
.PP
References QString::append(), and KHTMLView::mediaType().

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