<HTML> <HEAD> <TITLE>class CSSRule</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 CSSRule</h1> </TD> <TD valign="top" align="right" colspan="1"> The <code> CSSRule </code> interface is the abstract base interface for any type of CSS <a href="http://www. <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>::CSSRule</code></TD></TR> <TR><TH>Definition</TH><TD><code>#include <<A HREF="css__rule_h.html">css_rule.h</A>></code></TD></TR> <TR><TH>Inherited by</TH><TD><A HREF="DOM__CSSCharsetRule.html">CSSCharsetRule</A>, <A HREF="DOM__CSSFontFaceRule.html">CSSFontFaceRule</A>, <A HREF="DOM__CSSImportRule.html">CSSImportRule</A>, <A HREF="DOM__CSSMediaRule.html">CSSMediaRule</A>, <A HREF="DOM__CSSPageRule.html">CSSPageRule</A>, <A HREF="DOM__CSSStyleRule.html">CSSStyleRule</A>, <A HREF="DOM__CSSUnknownRule.html">CSSUnknownRule</A></TD></TR> <TR><TH><A HREF="full-list-DOM__CSSRule.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 Types</h4><ul><LI>enum <A HREF="#ref6">RuleType</A> { UNKNOWN_RULE = 0, STYLE_RULE = 1, CHARSET_RULE = 2, IMPORT_RULE = 3, MEDIA_RULE = 4, FONT_FACE_RULE = 5, PAGE_RULE = 6 } </LI> </ul><h4>Public Methods</h4><ul><LI> <b><A HREF="#ref1">CSSRule</A></b> () </LI> <LI> <b><A HREF="#ref2">CSSRule</A></b> (const CSSRule &other) </LI> <LI> <b><A HREF="#ref3">CSSRule</A></b> (CSSRuleImpl *impl) </LI> <LI>CSSRule & <b><A HREF="#ref4">operator = </A></b> (const CSSRule &other) </LI> <LI> <b><A HREF="#ref5">~CSSRule</A></b> () </LI> <LI>unsigned short <b><A HREF="#ref7">type</A></b> () const </LI> <LI><A HREF="DOM__DOMString.html">DOM::DOMString</A> <b><A HREF="#ref8">cssText</A></b> () const </LI> <LI>void <b><A HREF="#ref9">setCssText</A></b> ( const <A HREF="DOM__DOMString.html">DOM::DOMString</A> & ) </LI> <LI>CSSStyleSheet <b><A HREF="#ref10">parentStyleSheet</A></b> () const </LI> <LI>CSSRule <b><A HREF="#ref11">parentRule</A></b> () const </LI> <LI>CSSRuleImpl * <b><A HREF="#ref12">handle</A></b> () const </LI> <LI>bool <b><A HREF="#ref13">isNull</A></b> () const </LI> </ul><h4>Protected Members</h4><ul><LI>CSSRuleImpl *<b><A HREF="#ref14">impl</A></b></LI> </ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p> The <code> CSSRule </code> interface is the abstract base interface for any type of CSS <a href="http://www.w3.org/TR/REC-CSS2/syndata.html#q5"> statement </a> . 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> . An implementation is expected to preserve all rules specified in a CSS style sheet, even if it is not recognized. Unrecognized rules are represented using the <code> CSSUnknownRule </code> interface. </p> <p> </p> <A NAME="CSSRule"></A><A NAME="ref1"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>CSSRule</strong> () <br></td><td align="right"><h3><strong>CSSRule</strong></h3></td></tr></table><p></p><A NAME="CSSRule"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>CSSRule</strong> (const CSSRule &other) <br></td><td align="right"><h3><strong>CSSRule</strong></h3></td></tr></table><p></p><A NAME="CSSRule"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>CSSRule</strong> (CSSRuleImpl *impl) <br></td><td align="right"><h3><strong>CSSRule</strong></h3></td></tr></table><p></p><A NAME="operator%20=%20"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td>CSSRule & <strong>operator = </strong> (const CSSRule &other) <br></td><td align="right"><h3><strong>operator = </strong></h3></td></tr></table><p></p><A NAME="~CSSRule"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>~CSSRule</strong> () <br></td><td align="right"><h3><strong>~CSSRule</strong></h3></td></tr></table><p></p><A NAME="RuleType"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td>enum <strong>RuleType</strong> { UNKNOWN_RULE = 0, STYLE_RULE = 1, CHARSET_RULE = 2, IMPORT_RULE = 3, MEDIA_RULE = 4, FONT_FACE_RULE = 5, PAGE_RULE = 6 } </td><td align="right"><h3><strong>RuleType</strong></h3></td></tr></table><p></p><p> An integer indicating which type of rule this is. </p> <p> </p> <A NAME="type"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td>unsigned short <strong>type</strong> () <br></td><td align="right"><h3><strong>type</strong></h3></td></tr></table><p> <small>[const]</small></p><p> 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 <code> CSSRule </code> interface to the specific derived interface implied by the <code> type </code> . </p> <p> </p> <A NAME="cssText"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="DOM__DOMString.html">DOM::DOMString</A> <strong>cssText</strong> () <br></td><td align="right"><h3><strong>cssText</strong></h3></td></tr></table><p> <small>[const]</small></p><p> The parsable textual representation of the rule. This reflects the current state of the rule and not its initial value. </p> <p> </p> <A NAME="setCssText"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setCssText</strong> ( const <A HREF="DOM__DOMString.html">DOM::DOMString</A> & ) <br></td><td align="right"><h3><strong>setCssText</strong></h3></td></tr></table><p></p><p> see <A HREF="DOM__CSSRule.html#cssText">cssText</A> </p> <p> HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at this point in the style sheet. </p> <p> NO_MODIFICATION_ALLOWED_ERR: Raised if this style sheet is readonly. </p> <p></p> <p> INVALID_MODIFICATION_ERR: Raised if the specified CSS string value represents a different type of rule than the current one. </p> <p><b>Throws</b>: DOMException, CSSException, SYNTAX_ERR:, Raised, if, the, specified, CSS, string, value, has, a, syntax, error, and, is, unparsable.</p> <A NAME="parentStyleSheet"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td>CSSStyleSheet <strong>parentStyleSheet</strong> () <br></td><td align="right"><h3><strong>parentStyleSheet</strong></h3></td></tr></table><p> <small>[const]</small></p><p> The style sheet that contains this rule. </p> <p> </p> <A NAME="parentRule"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td>CSSRule <strong>parentRule</strong> () <br></td><td align="right"><h3><strong>parentRule</strong></h3></td></tr></table><p> <small>[const]</small></p><p> 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 <code> null </code> . </p> <p> </p> <A NAME="handle"></A><A NAME="ref12"></A><table width="100%"><tr bgcolor="#eeeeee"><td>CSSRuleImpl * <strong>handle</strong> () <br></td><td align="right"><h3><strong>handle</strong></h3></td></tr></table><p> <small>[const]</small></p><p> not part of the DOM </p> <A NAME="isNull"></A><A NAME="ref13"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>isNull</strong> () <br></td><td align="right"><h3><strong>isNull</strong></h3></td></tr></table><p> <small>[const]</small></p><A NAME="impl"></A><A NAME="ref14"></A><table width="100%"><tr bgcolor="#eeeeee"><td>CSSRuleImpl * <strong>impl</strong> </td><td align="right"><h3><strong>impl</strong></h3></td></tr></table><p> <small>[protected]</small></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>