%
% API Documentation for cssutils
% Module cssutils.css.cssrule
%
% 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.cssrule \textit{(module)}|(}
\section{Module cssutils.css.cssrule}

    \label{cssutils:css:cssrule}

CSSRule implements DOM Level 2 CSS CSSRule.
\textbf{Version:} \$LastChangedRevision: 955 \$



\textbf{Date:} \$LastChangedDate: 2008-01-27 17:57:38 +0100 (So, 27 Jan 2008) \$



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




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

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

    \label{cssutils:css:cssrule:CSSRule}
\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 cssutils.util.Base, linespec=[False]
\multicolumn{4}{r}{\settowidth{\BCL}{cssutils.util.Base}\multirow{2}{\BCL}{cssutils.util.Base}}
&&
  \\\cline{5-5}
  &&&&\multicolumn{1}{c|}{}
&&
  \\
&&&&\multicolumn{2}{l}{\textbf{cssutils.css.cssrule.CSSRule}}
\end{tabular}

\textbf{Known Subclasses:}
cssutils.css.csscharsetrule.CSSCharsetRule,
    cssutils.css.csscomment.CSSComment,
    cssutils.css.cssmediarule.CSSMediaRule,
    cssutils.css.cssnamespacerule.CSSNamespaceRule,
    cssutils.css.csspagerule.CSSPageRule,
    cssutils.css.cssstylerule.CSSStyleRule,
    cssutils.css.cssunknownrule.CSSUnknownRule,
    cssutils.css.cssimportrule.CSSImportRule,
    cssutils.css.cssfontfacerule.CSSFontFaceRule


Abstract base interface for any type of CSS statement. This includes
both rule sets and at-rules. An implementation is expected to preserve
all rules specified in a CSS style sheet, even if the rule is not
recognized by the parser. Unrecognized rules are represented using the
CSSUnknownRule interface.


%___________________________________________________________________________

\hypertarget{properties}{}
\pdfbookmark[3]{Properties}{properties}
\paragraph*{Properties}
\label{properties}
\begin{description}
\item[{cssText: of type DOMString}] \leavevmode 
The parsable textual representation of the rule. This reflects the
current state of the rule and not its initial value.

\item[{parentRule: of type CSSRule, readonly}] \leavevmode 
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 None.

\item[{parentStyleSheet: of type CSSStyleSheet, readonly}] \leavevmode 
The style sheet that contains this rule.

\item[{type: of type unsigned short, readonly}] \leavevmode 
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 CSSRule interface to the specific derived interface
implied by the type.

\end{description}


%___________________________________________________________________________

\hypertarget{cssutils-only}{}
\pdfbookmark[4]{cssutils only}{cssutils-only}
\subparagraph*{cssutils only}
\label{cssutils-only}
\begin{description}
\item[{seq:}] \leavevmode 
contains sequence of parts of the rule including comments but
excluding @KEYWORD and braces

\item[{typeString: string}] \leavevmode 
A string name of the type of this rule, e.g. 'STYLE{\_}RULE'. Mainly
useful for debugging

\item[{valid:}] \leavevmode 
if this rule is valid

\end{description}

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

  \subsubsection{Methods}

    \vspace{0.5ex}

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

    \raggedright \textbf{\_\_init\_\_}(\textit{self}, \textit{parentRule}={\tt None}, \textit{parentStyleSheet}={\tt None}, \textit{readonly}={\tt False})

\setlength{\parskip}{2ex}
    x.\_\_init\_\_(...) initializes x; see x.\_\_class\_\_.\_\_doc\_\_ for 
    signature

\setlength{\parskip}{1ex}
      Overrides: object.\_\_init\_\_ 	extit{(inherited documentation)}

    \end{boxedminipage}


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

\begin{quote}
\_\_delattr\_\_(), \_\_getattribute\_\_(), \_\_hash\_\_(), \_\_new\_\_(), \_\_reduce\_\_(), \_\_reduce\_ex\_\_(), \_\_repr\_\_(), \_\_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 c\-s\-s\-T\-e\-x\-t\- & \raggedright (DOM) The parsable textual representation of the rule. This
reflects the current state of the rule and not its initial value.
The initial value is saved, but this may be removed in a future
version!
MUST BE OVERWRITTEN IN SUBCLASS TO WORK!&\\
\cline{1-2}
\raggedright p\-a\-r\-e\-n\-t\-R\-u\-l\-e\- & \raggedright READONLY&\\
\cline{1-2}
\raggedright p\-a\-r\-e\-n\-t\-S\-t\-y\-l\-e\-S\-h\-e\-e\-t\- & \raggedright READONLY&\\
\cline{1-2}
\raggedright t\-y\-p\-e\-S\-t\-r\-i\-n\-g\- & \raggedright Name of this rules type.&\\
\cline{1-2}
\multicolumn{2}{|l|}{\textit{Inherited from object}}\\
\multicolumn{2}{|p{\varwidth}|}{\raggedright \_\_class\_\_}\\
\cline{1-2}
\end{longtable}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                            Class Variables                            %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  \subsubsection{Class Variables}

    \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 C\-O\-M\-M\-E\-N\-T\- & \raggedright \textbf{Value:} 
{\tt -1}&\\
\cline{1-2}
\raggedright U\-N\-K\-N\-O\-W\-N\-\_\-R\-U\-L\-E\- & \raggedright \textbf{Value:} 
{\tt 0}&\\
\cline{1-2}
\raggedright S\-T\-Y\-L\-E\-\_\-R\-U\-L\-E\- & \raggedright \textbf{Value:} 
{\tt 1}&\\
\cline{1-2}
\raggedright C\-H\-A\-R\-S\-E\-T\-\_\-R\-U\-L\-E\- & \raggedright \textbf{Value:} 
{\tt 2}&\\
\cline{1-2}
\raggedright I\-M\-P\-O\-R\-T\-\_\-R\-U\-L\-E\- & \raggedright \textbf{Value:} 
{\tt 3}&\\
\cline{1-2}
\raggedright M\-E\-D\-I\-A\-\_\-R\-U\-L\-E\- & \raggedright \textbf{Value:} 
{\tt 4}&\\
\cline{1-2}
\raggedright F\-O\-N\-T\-\_\-F\-A\-C\-E\-\_\-R\-U\-L\-E\- & \raggedright \textbf{Value:} 
{\tt 5}&\\
\cline{1-2}
\raggedright P\-A\-G\-E\-\_\-R\-U\-L\-E\- & \raggedright \textbf{Value:} 
{\tt 6}&\\
\cline{1-2}
\raggedright N\-A\-M\-E\-S\-P\-A\-C\-E\-\_\-R\-U\-L\-E\- & \raggedright \textbf{Value:} 
{\tt 7}&\\
\cline{1-2}
\raggedright t\-y\-p\-e\- & \raggedright The type of this rule, as defined by a CSSRule type constant.
Overwritten in derived classes.

The expectation is that binding-specific casting methods can be used to
cast down from an instance of the CSSRule interface to the specific
derived interface implied by the type.
(Casting not for this Python implementation I guess...)

\textbf{Value:} 
{\tt 0}&\\
\cline{1-2}
\end{longtable}

    \index{cssutils \textit{(package)}!cssutils.css \textit{(package)}!cssutils.css.cssrule \textit{(module)}!cssutils.css.cssrule.CSSRule \textit{(class)}|)}
    \index{cssutils \textit{(package)}!cssutils.css \textit{(package)}!cssutils.css.cssrule \textit{(module)}|)}
