%
% API Documentation for cssutils
% Module cssutils.css.cssrulelist
%
% Generated by epydoc 3.0.1
% [Fri Feb 01 19:05:21 2008]
%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                          Module Description                           %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \index{cssutils \textit{(package)}!cssutils.css \textit{(package)}!cssutils.css.cssrulelist \textit{(module)}|(}
\section{Module cssutils.css.cssrulelist}

    \label{cssutils:css:cssrulelist}

CSSRuleList implements DOM Level 2 CSS CSSRuleList.
\begin{description}
\item[{Partly also}] \leavevmode \begin{itemize}
\item {} 
\href{http://dev.w3.org/csswg/cssom/\#the-cssrulelist}{http://dev.w3.org/csswg/cssom/{\#}the-cssrulelist}

\end{itemize}

\end{description}
\textbf{Version:} \$LastChangedRevision: 797 \$



\textbf{Date:} \$LastChangedDate: 2008-01-03 21:47:17 +0100 (Do, 03 Jan 2008) \$



\textbf{Author:} \$LastChangedBy: cthedot \$




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                           Class Description                           %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \index{cssutils \textit{(package)}!cssutils.css \textit{(package)}!cssutils.css.cssrulelist \textit{(module)}!cssutils.css.cssrulelist.CSSRuleList \textit{(class)}|(}
\subsection{Class CSSRuleList}

    \label{cssutils:css:cssrulelist:CSSRuleList}
\begin{tabular}{cccccccc}
% Line for object, linespec=[False, False]
\multicolumn{2}{r}{\settowidth{\BCL}{object}\multirow{2}{\BCL}{object}}
&&
&&
  \\\cline{3-3}
  &&\multicolumn{1}{c|}{}
&&
&&
  \\
% Line for list, linespec=[False]
\multicolumn{4}{r}{\settowidth{\BCL}{list}\multirow{2}{\BCL}{list}}
&&
  \\\cline{5-5}
  &&&&\multicolumn{1}{c|}{}
&&
  \\
&&&&\multicolumn{2}{l}{\textbf{cssutils.css.cssrulelist.CSSRuleList}}
\end{tabular}


The CSSRuleList object represents an (ordered) list of statements.

The items in the CSSRuleList are accessible via an integral index,
starting from 0.

Subclasses a standard Python list so theoretically all standard list
methods are available. Setting methods like \texttt{{\_}{\_}init{\_}{\_}}, \texttt{append},
\texttt{extend} or \texttt{{\_}{\_}setslice{\_}{\_}} are added later on instances of this
class if so desired.
E.g. CSSStyleSheet adds \texttt{append} which is not available in a simple
instance of this class!


%___________________________________________________________________________

\hypertarget{properties}{}
\pdfbookmark[3]{Properties}{properties}
\paragraph*{Properties}
\label{properties}
\begin{description}
\item[{length: of type unsigned long, readonly}] \leavevmode 
The number of CSSRules in the list. The range of valid child rule
indices is 0 to length-1 inclusive.

\end{description}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                                Methods                                %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  \subsubsection{Methods}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{\_\_init\_\_}(\textit{self}, *\textit{ignored})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}

nothing is set as this must also be defined later
\setlength{\parskip}{1ex}
      \textbf{Return Value}
    \vspace{-1ex}

      \begin{quote}
      new list

      \end{quote}

      Overrides: object.\_\_init\_\_

    \end{boxedminipage}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{\_\_setslice\_\_}(\textit{self}, *\textit{ignored})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}

no direct setting possible
\setlength{\parskip}{1ex}
      Overrides: list.\_\_setslice\_\_

    \end{boxedminipage}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{\_\_setitem\_\_}(\textit{self}, *\textit{ignored})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}

no direct setting possible
\setlength{\parskip}{1ex}
      Overrides: list.\_\_setitem\_\_

    \end{boxedminipage}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{extend}(\textit{self}, *\textit{ignored})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}

no direct setting possible
\setlength{\parskip}{1ex}
      Overrides: list.extend

    \end{boxedminipage}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{append}(\textit{self}, *\textit{ignored})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}

no direct setting possible
\setlength{\parskip}{1ex}
      Overrides: list.append

    \end{boxedminipage}

    \label{cssutils:css:cssrulelist:CSSRuleList:item}
    \index{cssutils \textit{(package)}!cssutils.css \textit{(package)}!cssutils.css.cssrulelist \textit{(module)}!cssutils.css.cssrulelist.CSSRuleList \textit{(class)}!cssutils.css.cssrulelist.CSSRuleList.item \textit{(method)}}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{item}(\textit{self}, \textit{index})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}

(DOM)
Used to retrieve a CSS rule by ordinal index. The order in this
collection represents the order of the rules in the CSS style
sheet. If index is greater than or equal to the number of rules in
the list, this returns None.

Returns CSSRule, the style rule at the index position in the
CSSRuleList, or None if that is not a valid index.
\setlength{\parskip}{1ex}
    \end{boxedminipage}


\large{\textbf{\textit{Inherited from list}}}

\begin{quote}
\_\_add\_\_(), \_\_contains\_\_(), \_\_delitem\_\_(), \_\_delslice\_\_(), \_\_eq\_\_(), \_\_ge\_\_(), \_\_getattribute\_\_(), \_\_getitem\_\_(), \_\_getslice\_\_(), \_\_gt\_\_(), \_\_hash\_\_(), \_\_iadd\_\_(), \_\_imul\_\_(), \_\_iter\_\_(), \_\_le\_\_(), \_\_len\_\_(), \_\_lt\_\_(), \_\_mul\_\_(), \_\_ne\_\_(), \_\_new\_\_(), \_\_repr\_\_(), \_\_reversed\_\_(), \_\_rmul\_\_(), count(), index(), insert(), pop(), remove(), reverse(), sort()
\end{quote}

\large{\textbf{\textit{Inherited from object}}}

\begin{quote}
\_\_delattr\_\_(), \_\_reduce\_\_(), \_\_reduce\_ex\_\_(), \_\_setattr\_\_(), \_\_str\_\_()
\end{quote}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                              Properties                               %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  \subsubsection{Properties}

    \vspace{-1cm}
\hspace{\varindent}\begin{longtable}{|p{\varnamewidth}|p{\vardescrwidth}|l}
\cline{1-2}
\cline{1-2} \centering \textbf{Name} & \centering \textbf{Description}& \\
\cline{1-2}
\endhead\cline{1-2}\multicolumn{3}{r}{\small\textit{continued on next page}}\\\endfoot\cline{1-2}
\endlastfoot\raggedright l\-e\-n\-g\-t\-h\- & \raggedright (DOM) The number of CSSRules in the list.&\\
\cline{1-2}
\multicolumn{2}{|l|}{\textit{Inherited from object}}\\
\multicolumn{2}{|p{\varwidth}|}{\raggedright \_\_class\_\_}\\
\cline{1-2}
\end{longtable}

    \index{cssutils \textit{(package)}!cssutils.css \textit{(package)}!cssutils.css.cssrulelist \textit{(module)}!cssutils.css.cssrulelist.CSSRuleList \textit{(class)}|)}
    \index{cssutils \textit{(package)}!cssutils.css \textit{(package)}!cssutils.css.cssrulelist \textit{(module)}|)}
