\section{DOM::CSSStyle\-Sheet Class Reference}
\label{classDOM_1_1CSSStyleSheet}\index{DOM::CSSStyleSheet@{DOM::CSSStyleSheet}}
The {\tt {\bf CSSStyle\-Sheet}{\rm (p.\,\pageref{classDOM_1_1CSSStyleSheet})}} interface is a concrete interface used to represent a CSS style sheet i.e.  


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

Inheritance diagram for DOM::CSSStyle\-Sheet:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=75pt]{classDOM_1_1CSSStyleSheet__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for DOM::CSSStyle\-Sheet:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=75pt]{classDOM_1_1CSSStyleSheet__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf CSSStyle\-Sheet} (const {\bf CSSStyle\-Sheet} \&other)\label{classDOM_1_1CSSStyleSheet_a1}

\item 
{\bf CSSStyle\-Sheet} (const {\bf Style\-Sheet} \&other)\label{classDOM_1_1CSSStyleSheet_a2}

\item 
{\bf CSSStyle\-Sheet} (CSSStyle\-Sheet\-Impl $\ast$impl)\label{classDOM_1_1CSSStyleSheet_a3}

\item 
{\bf CSSStyle\-Sheet} \& {\bf operator=} (const {\bf CSSStyle\-Sheet} \&other)\label{classDOM_1_1CSSStyleSheet_a4}

\item 
{\bf CSSStyle\-Sheet} \& {\bf operator=} (const {\bf Style\-Sheet} \&other)\label{classDOM_1_1CSSStyleSheet_a5}

\item 
{\bf CSSRule} {\bf owner\-Rule} () const 
\item 
{\bf CSSRule\-List} {\bf css\-Rules} () const 
\item 
unsigned long {\bf insert\-Rule} (const {\bf DOM::DOMString} \&rule, unsigned long index)
\item 
void {\bf delete\-Rule} (unsigned long index)
\end{CompactItemize}


\subsection{Detailed Description}
The {\tt {\bf CSSStyle\-Sheet}{\rm (p.\,\pageref{classDOM_1_1CSSStyleSheet})}} interface is a concrete interface used to represent a CSS style sheet i.e. 

a style sheet whose content type is \char`\"{}text/css\char`\"{}. 



Definition at line 207 of file css\_\-stylesheet.h.

\subsection{Member Function Documentation}
\index{DOM::CSSStyleSheet@{DOM::CSSStyle\-Sheet}!ownerRule@{ownerRule}}
\index{ownerRule@{ownerRule}!DOM::CSSStyleSheet@{DOM::CSSStyle\-Sheet}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf CSSRule} CSSStyle\-Sheet::owner\-Rule () const}\label{classDOM_1_1CSSStyleSheet_a7}


If this style sheet comes from an {\tt @import} rule, the {\tt owner\-Rule} attribute will contain the {\tt {\bf CSSImport\-Rule}{\rm (p.\,\pageref{classDOM_1_1CSSImportRule})}} . 

In that case, the {\tt owner\-Node} attribute in the {\tt {\bf Style\-Sheet}{\rm (p.\,\pageref{classDOM_1_1StyleSheet})}} interface will be {\tt null} . If the style sheet comes from an element or a processing instruction, the {\tt owner\-Rule} attribute will be {\tt null} and the {\tt owner\-Node} attribute will contain the {\tt {\bf Node}{\rm (p.\,\pageref{classDOM_1_1Node})}} . 

Definition at line 167 of file css\_\-stylesheet.cpp.\index{DOM::CSSStyleSheet@{DOM::CSSStyle\-Sheet}!cssRules@{cssRules}}
\index{cssRules@{cssRules}!DOM::CSSStyleSheet@{DOM::CSSStyle\-Sheet}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf CSSRule\-List} CSSStyle\-Sheet::css\-Rules () const}\label{classDOM_1_1CSSStyleSheet_a8}


The list of all CSS rules contained within the style sheet. 

This includes both {\tt rule sets } and {\tt at-rules } . 

Definition at line 173 of file css\_\-stylesheet.cpp.\index{DOM::CSSStyleSheet@{DOM::CSSStyle\-Sheet}!insertRule@{insertRule}}
\index{insertRule@{insertRule}!DOM::CSSStyleSheet@{DOM::CSSStyle\-Sheet}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}unsigned long CSSStyle\-Sheet::insert\-Rule (const {\bf DOM::DOMString} \& {\em rule}, unsigned long {\em index})}\label{classDOM_1_1CSSStyleSheet_a9}


Used to insert a new rule into the style sheet. 

The new rule now becomes part of the cascade.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em rule}]The parsable text representing the rule. For rule sets this contains both the selector and the style declaration. For at-rules, this specifies both the at-identifier and the rule content.\item[{\em index}]The index within the style sheet's rule list of the rule before which to insert the specified rule. If the specified index is equal to the length of the style sheet's rule collection, the rule will be added to the end of the style sheet.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The index within the style sheet's rule collection of the newly inserted rule.\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]HIERARCHY\_\-REQUEST\_\-ERR: Raised if the rule cannot be inserted at the specified index e.g. if an {\tt @import} rule is inserted after a standard rule set or other at-rule.\end{description}
\end{Desc}
INDEX\_\-SIZE\_\-ERR: Raised if the specified index is not a valid insertion point.

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 rule has a syntax error and is unparsable. \end{description}
\end{Desc}


Definition at line 179 of file css\_\-stylesheet.cpp.\index{DOM::CSSStyleSheet@{DOM::CSSStyle\-Sheet}!deleteRule@{deleteRule}}
\index{deleteRule@{deleteRule}!DOM::CSSStyleSheet@{DOM::CSSStyle\-Sheet}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void CSSStyle\-Sheet::delete\-Rule (unsigned long {\em index})}\label{classDOM_1_1CSSStyleSheet_a10}


Used to delete a rule from the style sheet. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]The index within the style sheet's rule list of the rule to remove.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]INDEX\_\-SIZE\_\-ERR: Raised if the specified index does not correspond to a rule in the style sheet's rule list.\end{description}
\end{Desc}
NO\_\-MODIFICATION\_\-ALLOWED\_\-ERR: Raised if this style sheet is readonly. 

Definition at line 191 of file css\_\-stylesheet.cpp.

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