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

    \label{cssutils:css:cssimportrule}

CSSImportRule implements DOM Level 2 CSS CSSImportRule.
\begin{description}
\item[{TODO:}] \leavevmode \begin{itemize}
\item {} 
stylesheet: read and parse linked stylesheet

\end{itemize}

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



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



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




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

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

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


Represents an @import rule within a CSS style sheet.  The @import rule
is used to import style rules from other style sheets.


%___________________________________________________________________________

\hypertarget{properties}{}
\pdfbookmark[3]{Properties}{properties}
\paragraph*{Properties}
\label{properties}
\begin{description}
\item[{cssText: of type DOMString}] \leavevmode 
The parsable textual representation of this rule

\item[{href: of type DOMString, (DOM readonly, cssutils also writable)}] \leavevmode 
The location of the style sheet to be imported. The attribute will
not contain the url(...) specifier around the URI.

\item[{media: of type stylesheets::MediaList (DOM readonly)}] \leavevmode 
A list of media types for this rule of type MediaList.

\item[{stylesheet: of type CSSStyleSheet (DOM readonly)}] \leavevmode 
The style sheet referred to by this rule. The value of this
attribute is None if the style sheet has not yet been loaded or if
it will not be loaded (e.g. if the stylesheet is for a media type
not supported by the user agent).

Currently always None

\end{description}


%___________________________________________________________________________

\hypertarget{cssutils-only}{}
\pdfbookmark[4]{cssutils only}{cssutils-only}
\subparagraph*{cssutils only}
\label{cssutils-only}
\begin{description}
\item[{atkeyword:}] \leavevmode 
the literal keyword used

\item[{hreftype: 'uri' (serializer default) or 'string'}] \leavevmode 
The original usage of href, not really relevant as it may be
configured in the serializer too

\end{description}

Inherits properties from CSSRule


%___________________________________________________________________________

\hypertarget{format}{}
\pdfbookmark[3]{Format}{format}
\paragraph*{Format}
\label{format}
\begin{description}
\item[{import}] \leavevmode 
: IMPORT{\_}SYM S*
{[}STRING{\textbar}URI{]} S* {[} medium {[} COMMA S* medium{]}* {]}? ';' S*
;

\end{description}

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

  \subsubsection{Methods}

    \vspace{0.5ex}

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

    \raggedright \textbf{\_\_init\_\_}(\textit{self}, \textit{href}={\tt None}, \textit{mediaText}={\tt \texttt{u'}\texttt{all}\texttt{'}}, \textit{hreftype}={\tt None}, \textit{parentRule}={\tt None}, \textit{parentStyleSheet}={\tt None}, \textit{readonly}={\tt False})

    \vspace{-1.5ex}

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

if readonly allows setting of properties in constructor only

Do not use as positional but as keyword attributes only!
\begin{description}
\item[{href}] \leavevmode 
location of the style sheet to be imported.

\item[{mediaText}] \leavevmode 
A list of media types for which this style sheet may be used
as a string

\item[{hreftype}] \leavevmode 
'uri' (default) or 'string'

\end{description}
\setlength{\parskip}{1ex}
      Overrides: object.\_\_init\_\_

    \end{boxedminipage}

    \vspace{0.5ex}

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

    \raggedright \textbf{\_\_repr\_\_}(\textit{self})

\setlength{\parskip}{2ex}
    repr(x)

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

    \end{boxedminipage}

    \vspace{0.5ex}

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

    \raggedright \textbf{\_\_str\_\_}(\textit{self})

\setlength{\parskip}{2ex}
    str(x)

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

    \end{boxedminipage}


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

\begin{quote}
\_\_delattr\_\_(), \_\_getattribute\_\_(), \_\_hash\_\_(), \_\_new\_\_(), \_\_reduce\_\_(), \_\_reduce\_ex\_\_(), \_\_setattr\_\_()
\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 h\-r\-e\-f\- & \raggedright Location of the style sheet to be imported.&\\
\cline{1-2}
\raggedright m\-e\-d\-i\-a\- & \raggedright (DOM readonly) A list of media types for this rule of type            MediaList&\\
\cline{1-2}
\raggedright s\-t\-y\-l\-e\-S\-h\-e\-e\-t\- & \raggedright (readonly) The style sheet referred to by this rule.&\\
\cline{1-2}
\raggedright c\-s\-s\-T\-e\-x\-t\- & \raggedright (DOM attribute) The parsable textual representation.&\\
\cline{1-2}
\multicolumn{2}{|l|}{\textit{Inherited from cssutils.css.cssrule.CSSRule \textit{(Section \ref{cssutils:css:cssrule:CSSRule})}}}\\
\multicolumn{2}{|p{\varwidth}|}{\raggedright parentRule, parentStyleSheet, typeString}\\
\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 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 3}&\\
\cline{1-2}
\multicolumn{2}{|l|}{\textit{Inherited from cssutils.css.cssrule.CSSRule \textit{(Section \ref{cssutils:css:cssrule:CSSRule})}}}\\
\multicolumn{2}{|p{\varwidth}|}{\raggedright CHARSET\_RULE, COMMENT, FONT\_FACE\_RULE, IMPORT\_RULE, MEDIA\_RULE, NAMESPACE\_RULE, PAGE\_RULE, STYLE\_RULE, UNKNOWN\_RULE}\\
\cline{1-2}
\end{longtable}

    \index{cssutils \textit{(package)}!cssutils.css \textit{(package)}!cssutils.css.cssimportrule \textit{(module)}!cssutils.css.cssimportrule.CSSImportRule \textit{(class)}|)}
    \index{cssutils \textit{(package)}!cssutils.css \textit{(package)}!cssutils.css.cssimportrule \textit{(module)}|)}
