\section{khtml::CSSStyle\-Selector Class Reference}
\label{classkhtml_1_1CSSStyleSelector}\index{khtml::CSSStyleSelector@{khtml::CSSStyleSelector}}
the {\bf Style\-Selector}{\rm (p.\,\pageref{classkhtml_1_1StyleSelector})} implementation for CSS.  


{\tt \#include $<$cssstyleselector.h$>$}

Inheritance diagram for khtml::CSSStyle\-Selector:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=80pt]{classkhtml_1_1CSSStyleSelector__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for khtml::CSSStyle\-Selector:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=309pt]{classkhtml_1_1CSSStyleSelector__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Selector\-State} \{ {\bf Unknown} =  0, 
{\bf Applies}, 
{\bf Applies\-Pseudo}, 
{\bf Invalid}
 \}
\item 
enum {\bf Selector\-Media} \{ \par
{\bf Media\-Aural} =  1, 
{\bf Media\-Braille}, 
{\bf Media\-Emboss}, 
{\bf Media\-Handheld}, 
\par
{\bf Media\-Print}, 
{\bf Media\-Projection}, 
{\bf Media\-Screen}, 
{\bf Media\-TTY}, 
\par
{\bf Media\-TV}
 \}
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf CSSStyle\-Selector} (DOM::Document\-Impl $\ast$doc, {\bf QString} user\-Style\-Sheet, DOM::Style\-Sheet\-List\-Impl $\ast$style\-Sheets, const {\bf KURL} \&url, bool \_\-strict\-Parsing)
\item 
{\bf CSSStyle\-Selector} (DOM::CSSStyle\-Sheet\-Impl $\ast$sheet)
\item 
void {\bf add\-Sheet} (DOM::CSSStyle\-Sheet\-Impl $\ast$sheet)\label{classkhtml_1_1CSSStyleSelector_a3}

\item 
Render\-Style $\ast$ {\bf style\-For\-Element} (DOM::Element\-Impl $\ast$e)\label{classkhtml_1_1CSSStyleSelector_a4}

\item 
{\bf QValue\-Vector}$<$ int $>$ {\bf font\-Sizes} () const \label{classkhtml_1_1CSSStyleSelector_a5}

\item 
{\bf QValue\-Vector}$<$ int $>$ {\bf fixed\-Font\-Sizes} () const \label{classkhtml_1_1CSSStyleSelector_a6}

\item 
void {\bf compute\-Font\-Sizes} ({\bf QPaint\-Device\-Metrics} $\ast$paint\-Device\-Metrics, int zoom\-Factor)\label{classkhtml_1_1CSSStyleSelector_a7}

\item 
void {\bf compute\-Font\-Sizes\-For} ({\bf QPaint\-Device\-Metrics} $\ast$paint\-Device\-Metrics, int zoom\-Factor, {\bf QValue\-Vector}$<$ int $>$ \&font\-Sizes, bool is\-Fixed)\label{classkhtml_1_1CSSStyleSelector_a8}

\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static void {\bf clear} ()\label{classkhtml_1_1CSSStyleSelector_e0}

\item 
static void {\bf reparse\-Configuration} ()\label{classkhtml_1_1CSSStyleSelector_e1}

\item 
static void {\bf load\-Default\-Style} (const {\bf KHTMLSettings} $\ast$s=0)\label{classkhtml_1_1CSSStyleSelector_e2}

\end{CompactItemize}
\subsection*{Public Attributes}
\begin{CompactItemize}
\item 
bool {\bf strict\-Parsing}\label{classkhtml_1_1CSSStyleSelector_o0}

\item 
khtml::CSSStyle\-Selector::Encodedurl {\bf encodedurl}\label{classkhtml_1_1CSSStyleSelector_o1}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf check\-Selector} (int selector, DOM::Element\-Impl $\ast$e)\label{classkhtml_1_1CSSStyleSelector_b0}

\item 
bool {\bf check\-One\-Selector} (DOM::CSSSelector $\ast$selector, DOM::Element\-Impl $\ast$e)\label{classkhtml_1_1CSSStyleSelector_b1}

\item 
void {\bf build\-Lists} ()\label{classkhtml_1_1CSSStyleSelector_b2}

\item 
void {\bf clear\-Lists} ()\label{classkhtml_1_1CSSStyleSelector_b3}

\item 
void {\bf adjust\-Render\-Style} (Render\-Style $\ast$style, DOM::Element\-Impl $\ast$e)\label{classkhtml_1_1CSSStyleSelector_b4}

\item 
unsigned int {\bf add\-Inline\-Declarations} (DOM::Element\-Impl $\ast$e, DOM::CSSStyle\-Declaration\-Impl $\ast$decl, unsigned int num\-Props)\label{classkhtml_1_1CSSStyleSelector_b5}

\item 
void {\bf apply\-Rule} (int id, DOM::CSSValue\-Impl $\ast$value)\label{classkhtml_1_1CSSStyleSelector_b6}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
CSSStyle\-Selector\-List $\ast$ {\bf default\-Style}\label{classkhtml_1_1CSSStyleSelector_p0}

\item 
CSSStyle\-Selector\-List $\ast$ {\bf default\-Quirks\-Style}\label{classkhtml_1_1CSSStyleSelector_p1}

\item 
CSSStyle\-Selector\-List $\ast$ {\bf default\-Print\-Style}\label{classkhtml_1_1CSSStyleSelector_p2}

\item 
CSSStyle\-Selector\-List $\ast$ {\bf author\-Style}\label{classkhtml_1_1CSSStyleSelector_p3}

\item 
CSSStyle\-Selector\-List $\ast$ {\bf user\-Style}\label{classkhtml_1_1CSSStyleSelector_p4}

\item 
DOM::CSSStyle\-Sheet\-Impl $\ast$ {\bf user\-Sheet}\label{classkhtml_1_1CSSStyleSelector_p5}

\item 
unsigned int {\bf selectors\_\-size}\label{classkhtml_1_1CSSStyleSelector_p6}

\item 
DOM::CSSSelector $\ast$$\ast$ {\bf selectors}\label{classkhtml_1_1CSSStyleSelector_p7}

\item 
Selector\-Cache $\ast$ {\bf selector\-Cache}\label{classkhtml_1_1CSSStyleSelector_p8}

\item 
unsigned int {\bf properties\_\-size}\label{classkhtml_1_1CSSStyleSelector_p9}

\item 
CSSOrdered\-Property $\ast$$\ast$ {\bf properties}\label{classkhtml_1_1CSSStyleSelector_p10}

\item 
{\bf QMem\-Array}$<$ CSSOrdered\-Property $>$ {\bf inline\-Props}\label{classkhtml_1_1CSSStyleSelector_p11}

\item 
{\bf QString} {\bf m\_\-medium}\label{classkhtml_1_1CSSStyleSelector_p12}

\item 
CSSOrdered\-Property $\ast$$\ast$ {\bf props\-To\-Apply}\label{classkhtml_1_1CSSStyleSelector_p13}

\item 
CSSOrdered\-Property $\ast$$\ast$ {\bf pseudo\-Props}\label{classkhtml_1_1CSSStyleSelector_p14}

\item 
unsigned int {\bf props\-To\-Apply\-Size}\label{classkhtml_1_1CSSStyleSelector_p15}

\item 
unsigned int {\bf pseudo\-Props\-Size}\label{classkhtml_1_1CSSStyleSelector_p16}

\item 
Render\-Style::Pseudo\-Id {\bf dynamic\-Pseudo}\label{classkhtml_1_1CSSStyleSelector_p17}

\item 
Render\-Style $\ast$ {\bf style}\label{classkhtml_1_1CSSStyleSelector_p18}

\item 
Render\-Style $\ast$ {\bf parent\-Style}\label{classkhtml_1_1CSSStyleSelector_p19}

\item 
DOM::Element\-Impl $\ast$ {\bf element}\label{classkhtml_1_1CSSStyleSelector_p20}

\item 
DOM::Node\-Impl $\ast$ {\bf parent\-Node}\label{classkhtml_1_1CSSStyleSelector_p21}

\item 
{\bf KHTMLView} $\ast$ {\bf view}\label{classkhtml_1_1CSSStyleSelector_p22}

\item 
{\bf KHTMLPart} $\ast$ {\bf part}\label{classkhtml_1_1CSSStyleSelector_p23}

\item 
const {\bf KHTMLSettings} $\ast$ {\bf settings}\label{classkhtml_1_1CSSStyleSelector_p24}

\item 
{\bf QPaint\-Device\-Metrics} $\ast$ {\bf paint\-Device\-Metrics}\label{classkhtml_1_1CSSStyleSelector_p25}

\item 
{\bf QValue\-Vector}$<$ int $>$ {\bf m\_\-font\-Sizes}\label{classkhtml_1_1CSSStyleSelector_p26}

\item 
{\bf QValue\-Vector}$<$ int $>$ {\bf m\_\-fixed\-Font\-Sizes}\label{classkhtml_1_1CSSStyleSelector_p27}

\item 
bool {\bf font\-Dirty}\label{classkhtml_1_1CSSStyleSelector_p28}

\end{CompactItemize}
\subsection*{Static Protected Attributes}
\begin{CompactItemize}
\item 
static DOM::CSSStyle\-Sheet\-Impl $\ast$ {\bf s\_\-default\-Sheet}\label{classkhtml_1_1CSSStyleSelector_t0}

\item 
static DOM::CSSStyle\-Sheet\-Impl $\ast$ {\bf s\_\-quirks\-Sheet}\label{classkhtml_1_1CSSStyleSelector_t1}

\item 
static CSSStyle\-Selector\-List $\ast$ {\bf s\_\-default\-Style}\label{classkhtml_1_1CSSStyleSelector_t2}

\item 
static CSSStyle\-Selector\-List $\ast$ {\bf s\_\-default\-Quirks\-Style}\label{classkhtml_1_1CSSStyleSelector_t3}

\item 
static CSSStyle\-Selector\-List $\ast$ {\bf s\_\-default\-Print\-Style}\label{classkhtml_1_1CSSStyleSelector_t4}

\item 
static Render\-Style $\ast$ {\bf style\-Not\-Yet\-Available}\label{classkhtml_1_1CSSStyleSelector_t5}

\end{CompactItemize}


\subsection{Detailed Description}
the {\bf Style\-Selector}{\rm (p.\,\pageref{classkhtml_1_1StyleSelector})} implementation for CSS. 



Definition at line 105 of file cssstyleselector.h.

\subsection{Constructor \& Destructor Documentation}
\index{khtml::CSSStyleSelector@{khtml::CSSStyle\-Selector}!CSSStyleSelector@{CSSStyleSelector}}
\index{CSSStyleSelector@{CSSStyleSelector}!khtml::CSSStyleSelector@{khtml::CSSStyle\-Selector}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}khtml::CSSStyle\-Selector::CSSStyle\-Selector (DOM::Document\-Impl $\ast$ {\em doc}, {\bf QString} {\em user\-Style\-Sheet}, DOM::Style\-Sheet\-List\-Impl $\ast$ {\em style\-Sheets}, const {\bf KURL} \& {\em url}, bool {\em \_\-strict\-Parsing})}\label{classkhtml_1_1CSSStyleSelector_a0}


creates a new {\bf Style\-Selector}{\rm (p.\,\pageref{classkhtml_1_1StyleSelector})} for a Document. 

goes through all Style\-Sheets defined in the document and creates a list of rules it needs to apply to objects

Also takes into account special cases for HTML documents, including the default\-Style (which is html only)

Definition at line 121 of file cssstyleselector.cpp.

References QString::find\-Rev(), KURL::host(), QString::is\-Empty(), KHTMLView::media\-Type(), KHTMLView::part(), KURL::set\-Path(), KURL::set\-Query(), KURL::set\-Ref(), KHTMLPart::settings(), QString::truncate(), KURL::url(), and KHTMLPart::zoom\-Factor().\index{khtml::CSSStyleSelector@{khtml::CSSStyle\-Selector}!CSSStyleSelector@{CSSStyleSelector}}
\index{CSSStyleSelector@{CSSStyleSelector}!khtml::CSSStyleSelector@{khtml::CSSStyle\-Selector}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}khtml::CSSStyle\-Selector::CSSStyle\-Selector (DOM::CSSStyle\-Sheet\-Impl $\ast$ {\em sheet})}\label{classkhtml_1_1CSSStyleSelector_a1}


same as above but for a single stylesheet. 



Definition at line 182 of file cssstyleselector.cpp.

References QString::append(), and KHTMLView::media\-Type().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
cssstyleselector.h\item 
cssstyleselector.cpp\end{CompactItemize}
