<HTML> <HEAD> <TITLE>class CSSStyleSheet</TITLE> <META NAME="Generator" CONTENT="KDOC "> </HEAD> <BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff"> <TABLE WIDTH="100%" BORDER="0"> <TR> <TD> <TABLE BORDER="0"> <TR><TD valign="top" align="left" cellspacing="10"> <h1>class CSSStyleSheet</h1> </TD> <TD valign="top" align="right" colspan="1"> The <code> CSSStyleSheet </code> interface is a concrete interface used to represent a CSS style sheet i. <small><A HREF="#longdesc">More...</A></small></TD></TR> </TABLE> <HR> <TABLE BORDER="0"> <TR><TH>Full name</TH><TD><code><A HREF="DOM.html">DOM</A>::CSSStyleSheet</code></TD></TR> <TR><TH>Definition</TH><TD><code>#include <<A HREF="css__stylesheet_h.html">css_stylesheet.h</A>></code></TD></TR> <TR><TH>Inherits</TH><TD><A HREF="DOM__StyleSheet.html">DOM::StyleSheet</A> <small>[public ]</small></TD></TR> <TR><TH><A HREF="full-list-DOM__CSSStyleSheet.html">List of all Methods</A></TH></TR> </TABLE> </TD> <TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR> <TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR> <TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR> <TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR> <TR><TD><small><A HREF="index.html">Index</A></small></TD></TR> </TABLE></TD></TR></TABLE> <h4>Public Methods</h4><ul><LI> <b><A HREF="#ref1">CSSStyleSheet</A></b> () </LI> <LI> <b><A HREF="#ref2">CSSStyleSheet</A></b> (const CSSStyleSheet &other) </LI> <LI> <b><A HREF="#ref3">CSSStyleSheet</A></b> (const StyleSheet &other) </LI> <LI> <b><A HREF="#ref4">CSSStyleSheet</A></b> (CSSStyleSheetImpl *impl) </LI> <LI>CSSStyleSheet & <b><A HREF="#ref5">operator = </A></b> (const CSSStyleSheet &other) </LI> <LI>CSSStyleSheet & <b><A HREF="#ref6">operator = </A></b> (const StyleSheet &other) </LI> <LI> <b><A HREF="#ref7">~CSSStyleSheet</A></b> () </LI> <LI>CSSRule <b><A HREF="#ref8">ownerRule</A></b> () const </LI> <LI>CSSRuleList <b><A HREF="#ref9">cssRules</A></b> () const </LI> <LI>unsigned long <b><A HREF="#ref10">insertRule</A></b> ( const <A HREF="DOM__DOMString.html">DOM::DOMString</A> &rule, unsigned long index ) </LI> <LI>void <b><A HREF="#ref11">deleteRule</A></b> ( unsigned long index ) </LI> </ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p> The <code> CSSStyleSheet </code> interface is a concrete interface used to represent a CSS style sheet i.e. a style sheet whose content type is "text/css". </p> <p> </p> <A NAME="CSSStyleSheet"></A><A NAME="ref1"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>CSSStyleSheet</strong> () <br></td><td align="right"><h3><strong>CSSStyleSheet</strong></h3></td></tr></table><p></p><A NAME="CSSStyleSheet"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>CSSStyleSheet</strong> (const CSSStyleSheet &other) <br></td><td align="right"><h3><strong>CSSStyleSheet</strong></h3></td></tr></table><p></p><A NAME="CSSStyleSheet"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>CSSStyleSheet</strong> (const StyleSheet &other) <br></td><td align="right"><h3><strong>CSSStyleSheet</strong></h3></td></tr></table><p></p><A NAME="CSSStyleSheet"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>CSSStyleSheet</strong> (CSSStyleSheetImpl *impl) <br></td><td align="right"><h3><strong>CSSStyleSheet</strong></h3></td></tr></table><p></p><A NAME="operator%20=%20"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td>CSSStyleSheet & <strong>operator = </strong> (const CSSStyleSheet &other) <br></td><td align="right"><h3><strong>operator = </strong></h3></td></tr></table><p></p><p>Reimplemented from <A HREF="DOM__StyleSheet.html#operator%20=%20">StyleSheet</A>.</p> <A NAME="operator%20=%20"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td>CSSStyleSheet & <strong>operator = </strong> (const StyleSheet &other) <br></td><td align="right"><h3><strong>operator = </strong></h3></td></tr></table><p></p><p>Reimplemented from <A HREF="DOM__StyleSheet.html#operator%20=%20">StyleSheet</A>.</p> <A NAME="~CSSStyleSheet"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>~CSSStyleSheet</strong> () <br></td><td align="right"><h3><strong>~CSSStyleSheet</strong></h3></td></tr></table><p></p><A NAME="ownerRule"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td>CSSRule <strong>ownerRule</strong> () <br></td><td align="right"><h3><strong>ownerRule</strong></h3></td></tr></table><p> <small>[const]</small></p><p> If this style sheet comes from an <code> @import </code> rule, the <code> ownerRule </code> attribute will contain the <code> CSSImportRule </code> . In that case, the <code> ownerNode </code> attribute in the <code> StyleSheet </code> interface will be <code> null </code> . If the style sheet comes from an element or a processing instruction, the <code> ownerRule </code> attribute will be <code> null </code> and the <code> ownerNode </code> attribute will contain the <code> Node </code> . </p> <p> </p> <A NAME="cssRules"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td>CSSRuleList <strong>cssRules</strong> () <br></td><td align="right"><h3><strong>cssRules</strong></h3></td></tr></table><p> <small>[const]</small></p><p> The list of all CSS rules contained within the style sheet. This includes both <a href="http://www.w3.org/TR/REC-CSS2/syndata.html#q8"> rule sets </a> and <a href="http://www.w3.org/TR/REC-CSS2/syndata.html#at-rules"> at-rules </a> . </p> <p> </p> <A NAME="insertRule"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td>unsigned long <strong>insertRule</strong> ( const <A HREF="DOM__DOMString.html">DOM::DOMString</A> &rule, unsigned long index ) <br></td><td align="right"><h3><strong>insertRule</strong></h3></td></tr></table><p></p><p> Used to insert a new rule into the style sheet. The new rule now becomes part of the cascade. </p> <p></p> <p></p> <p></p> <p></p> <p> INDEX_SIZE_ERR: Raised if the specified index is not a valid insertion point. </p> <p> NO_MODIFICATION_ALLOWED_ERR: Raised if this style sheet is readonly. </p> <p></p> <p> </p> <p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5"> <TR><TD align="left" valign="top"><i>rule</i></TD><TD align="left" valign="top">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. </TD></TR> <TR><TD align="left" valign="top"><i>index</i></TD><TD align="left" valign="top">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. </TD></TR> </TABLE></P> <p><b>Returns</b>: The index within the style sheet's rule collection of the newly inserted rule. </p> <p><b>Throws</b>: DOMException, HIERARCHY_REQUEST_ERR:, Raised, if, the, rule, cannot, be, inserted, at, the, specified, index, e.g., if, an, <code>, @import, </code>, rule, is, inserted, after, a, standard, rule, set, or, other, at-rule., CSSException, SYNTAX_ERR:, Raised, if, the, specified, rule, has, a, syntax, error, and, is, unparsable.</p> <A NAME="deleteRule"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>deleteRule</strong> ( unsigned long index ) <br></td><td align="right"><h3><strong>deleteRule</strong></h3></td></tr></table><p></p><p> Used to delete a rule from the style sheet. </p> <p></p> <p></p> <p></p> <p> NO_MODIFICATION_ALLOWED_ERR: Raised if this style sheet is readonly. </p> <p> </p> <p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5"> <TR><TD align="left" valign="top"><i>index</i></TD><TD align="left" valign="top">The index within the style sheet's rule list of the rule to remove. </TD></TR> </TABLE></P> <p><b>Throws</b>: DOMException, INDEX_SIZE_ERR:, Raised, if, the, specified, index, does, not, correspond, to, a, rule, in, the, style, sheet's, rule, list.</p> <HR> <table> <tr><td><small>Generated by: qateam on updates.mandrakesoft.com on Mon Dec 30 16:09:31 2002, using kdoc 2.0a53.</small></td></tr> </table> </BODY> </HTML>