\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=349pt]{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)
\begin{CompactList}\small\item\em creates a new {\bf Style\-Selector}{\rm (p.\,\pageref{classkhtml_1_1StyleSelector})} for a Document. \item\end{CompactList}\item 
{\bf CSSStyle\-Selector} (DOM::CSSStyle\-Sheet\-Impl $\ast$sheet)
\begin{CompactList}\small\item\em same as above but for a single stylesheet. \item\end{CompactList}\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, int state=None)\label{classkhtml_1_1CSSStyleSelector_a4}

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

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

\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
void {\bf load\-Default\-Style} (const  {\bf KHTMLSettings} $\ast$s=0)\label{classkhtml_1_1CSSStyleSelector_e0}

\item 
void {\bf clear} ()\label{classkhtml_1_1CSSStyleSelector_e1}

\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 
unsigned int {\bf add\-Inline\-Declarations} (DOM::CSSStyle\-Declaration\-Impl $\ast$decl, unsigned int num\-Props)\label{classkhtml_1_1CSSStyleSelector_b4}

\item 
void {\bf apply\-Rule} (DOM::CSSProperty $\ast$prop)\label{classkhtml_1_1CSSStyleSelector_b5}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

\item 
int {\bf dynamic\-State}\label{classkhtml_1_1CSSStyleSelector_p14}

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

\item 
int {\bf used\-Dynamic\-States}\label{classkhtml_1_1CSSStyleSelector_p16}

\item 
int {\bf selector\-Dynamic\-State}\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\-List}$<$ int $>$ {\bf m\_\-font\-Sizes}\label{classkhtml_1_1CSSStyleSelector_p26}

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

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

\item 
CSSStyle\-Selector\-List $\ast$ {\bf default\-Style} = 0\label{classkhtml_1_1CSSStyleSelector_t1}

\item 
CSSStyle\-Selector\-List $\ast$ {\bf default\-Print\-Style} = 0\label{classkhtml_1_1CSSStyleSelector_t2}

\end{CompactItemize}


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



Definition at line 102 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}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 75 of file cssstyleselector.cpp.

References QPtr\-List\-Iterator::current(), QString::is\-Empty(), KHTMLView::media\-Type(), KHTMLView::part(), KURL::set\-Path(), KURL::set\-Query(), KURL::set\-Ref(), KHTMLPart::settings(), 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}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 138 of file cssstyleselector.cpp.

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