\section{DOM::CSSRule Class Reference}
\label{classDOM_1_1CSSRule}\index{DOM::CSSRule@{DOM::CSSRule}}
The {\tt {\bf CSSRule}{\rm (p.\,\pageref{classDOM_1_1CSSRule})}} interface is the abstract base interface for any type of CSS {\tt statement } .  


{\tt \#include $<$css\_\-rule.h$>$}

Inheritance diagram for DOM::CSSRule:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=143pt]{classDOM_1_1CSSRule__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Rule\-Type} \{ \par
{\bf UNKNOWN\_\-RULE} =  0, 
{\bf STYLE\_\-RULE} =  1, 
{\bf CHARSET\_\-RULE} =  2, 
{\bf IMPORT\_\-RULE} =  3, 
\par
{\bf MEDIA\_\-RULE} =  4, 
{\bf FONT\_\-FACE\_\-RULE} =  5, 
{\bf PAGE\_\-RULE} =  6, 
{\bf QUIRKS\_\-RULE} =  100
 \}
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf CSSRule} (const {\bf CSSRule} \&other)\label{classDOM_1_1CSSRule_a1}

\item 
{\bf CSSRule} (CSSRule\-Impl $\ast$impl)\label{classDOM_1_1CSSRule_a2}

\item 
{\bf CSSRule} \& {\bf operator=} (const {\bf CSSRule} \&other)\label{classDOM_1_1CSSRule_a3}

\item 
unsigned short {\bf type} () const 
\item 
{\bf DOM::DOMString} {\bf css\-Text} () const 
\item 
void {\bf set\-Css\-Text} (const {\bf DOM::DOMString} \&)
\item 
{\bf CSSStyle\-Sheet} {\bf parent\-Style\-Sheet} () const 
\item 
{\bf CSSRule} {\bf parent\-Rule} () const 
\item 
CSSRule\-Impl $\ast$ {\bf handle} () const \label{classDOM_1_1CSSRule_a10}

\item 
bool {\bf is\-Null} () const \label{classDOM_1_1CSSRule_a11}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf assign\-Other} (const {\bf CSSRule} \&other, {\bf Rule\-Type} this\-Type)\label{classDOM_1_1CSSRule_b0}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
CSSRule\-Impl $\ast$ {\bf impl}\label{classDOM_1_1CSSRule_p0}

\end{CompactItemize}


\subsection{Detailed Description}
The {\tt {\bf CSSRule}{\rm (p.\,\pageref{classDOM_1_1CSSRule})}} interface is the abstract base interface for any type of CSS {\tt statement } . 

This includes both {\tt rule sets } and {\tt at-rules } . An implementation is expected to preserve all rules specified in a CSS style sheet, even if it is not recognized. Unrecognized rules are represented using the {\tt {\bf CSSUnknown\-Rule}{\rm (p.\,\pageref{classDOM_1_1CSSUnknownRule})}} interface. 



Definition at line 52 of file css\_\-rule.h.

\subsection{Member Enumeration Documentation}
\index{DOM::CSSRule@{DOM::CSSRule}!RuleType@{RuleType}}
\index{RuleType@{RuleType}!DOM::CSSRule@{DOM::CSSRule}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf DOM::CSSRule::Rule\-Type}}\label{classDOM_1_1CSSRule_w8}


An integer indicating which type of rule this is. 



Definition at line 67 of file css\_\-rule.h.

\subsection{Member Function Documentation}
\index{DOM::CSSRule@{DOM::CSSRule}!type@{type}}
\index{type@{type}!DOM::CSSRule@{DOM::CSSRule}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}unsigned short CSSRule::type () const}\label{classDOM_1_1CSSRule_a5}


The type of the rule, as defined above. 

The expectation is that binding-specific casting methods can be used to cast down from an instance of the {\tt {\bf CSSRule}{\rm (p.\,\pageref{classDOM_1_1CSSRule})}} interface to the specific derived interface implied by the {\tt type} . 

Definition at line 59 of file css\_\-rule.cpp.\index{DOM::CSSRule@{DOM::CSSRule}!cssText@{cssText}}
\index{cssText@{cssText}!DOM::CSSRule@{DOM::CSSRule}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} CSSRule::css\-Text () const}\label{classDOM_1_1CSSRule_a6}


The parsable textual representation of the rule. 

This reflects the current state of the rule and not its initial value. 

Definition at line 65 of file css\_\-rule.cpp.\index{DOM::CSSRule@{DOM::CSSRule}!setCssText@{setCssText}}
\index{setCssText@{setCssText}!DOM::CSSRule@{DOM::CSSRule}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void CSSRule::set\-Css\-Text (const {\bf DOM::DOMString} \&)}\label{classDOM_1_1CSSRule_a7}


see css\-Text 

\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]HIERARCHY\_\-REQUEST\_\-ERR: Raised if the rule cannot be inserted at this point in the style sheet.\end{description}
\end{Desc}
NO\_\-MODIFICATION\_\-ALLOWED\_\-ERR: Raised if this style sheet is readonly.

\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em CSSException}]SYNTAX\_\-ERR: Raised if the specified CSS string value has a syntax error and is unparsable.\end{description}
\end{Desc}
INVALID\_\-MODIFICATION\_\-ERR: Raised if the specified CSS string value represents a different type of rule than the current one. 

Definition at line 71 of file css\_\-rule.cpp.\index{DOM::CSSRule@{DOM::CSSRule}!parentStyleSheet@{parentStyleSheet}}
\index{parentStyleSheet@{parentStyleSheet}!DOM::CSSRule@{DOM::CSSRule}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf CSSStyle\-Sheet} CSSRule::parent\-Style\-Sheet () const}\label{classDOM_1_1CSSRule_a8}


The style sheet that contains this rule. 



Definition at line 77 of file css\_\-rule.cpp.

References DOM::Style\-Sheet::parent\-Style\-Sheet().\index{DOM::CSSRule@{DOM::CSSRule}!parentRule@{parentRule}}
\index{parentRule@{parentRule}!DOM::CSSRule@{DOM::CSSRule}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf CSSRule} CSSRule::parent\-Rule () const}\label{classDOM_1_1CSSRule_a9}


If this rule is contained inside another rule (e.g. 

a style rule inside an @media block), this is the containing rule. If this rule is not nested inside any other rules, this returns {\tt null} . 

Definition at line 83 of file css\_\-rule.cpp.

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