<HTML> <HEAD> <TITLE>class CSSMediaRule</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 CSSMediaRule</h1> </TD> <TD valign="top" align="right" colspan="1"> The <code> CSSMediaRule </code> interface represents a <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>::CSSMediaRule</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>Inherits</TH><TD><A HREF="DOM__CSSRule.html">DOM::CSSRule</A> <small>[public ]</small></TD></TR> <TR><TH><A HREF="full-list-DOM__CSSMediaRule.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">CSSMediaRule</A></b> () </LI> <LI> <b><A HREF="#ref2">CSSMediaRule</A></b> (const CSSMediaRule &other) </LI> <LI> <b><A HREF="#ref3">CSSMediaRule</A></b> (const CSSRule &other) </LI> <LI> <b><A HREF="#ref4">CSSMediaRule</A></b> (CSSMediaRuleImpl *impl) </LI> <LI>CSSMediaRule & <b><A HREF="#ref5">operator = </A></b> (const CSSMediaRule &other) </LI> <LI>CSSMediaRule & <b><A HREF="#ref6">operator = </A></b> (const CSSRule &other) </LI> <LI> <b><A HREF="#ref7">~CSSMediaRule</A></b> () </LI> <LI>MediaList <b><A HREF="#ref8">media</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> CSSMediaRule </code> interface represents a <a href="http://www.w3.org/TR/REC-CSS2/media.html#at-media-rule"> @media rule </a> in a CSS style sheet. A <code> @media </code> rule can be used to delimit style rules for specific media types. </p> <p> </p> <A NAME="CSSMediaRule"></A><A NAME="ref1"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>CSSMediaRule</strong> () <br></td><td align="right"><h3><strong>CSSMediaRule</strong></h3></td></tr></table><p></p><A NAME="CSSMediaRule"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>CSSMediaRule</strong> (const CSSMediaRule &other) <br></td><td align="right"><h3><strong>CSSMediaRule</strong></h3></td></tr></table><p></p><A NAME="CSSMediaRule"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>CSSMediaRule</strong> (const CSSRule &other) <br></td><td align="right"><h3><strong>CSSMediaRule</strong></h3></td></tr></table><p></p><A NAME="CSSMediaRule"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>CSSMediaRule</strong> (CSSMediaRuleImpl *impl) <br></td><td align="right"><h3><strong>CSSMediaRule</strong></h3></td></tr></table><p></p><A NAME="operator%20=%20"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td>CSSMediaRule & <strong>operator = </strong> (const CSSMediaRule &other) <br></td><td align="right"><h3><strong>operator = </strong></h3></td></tr></table><p></p><p>Reimplemented from <A HREF="DOM__CSSRule.html#operator%20=%20">CSSRule</A>.</p> <A NAME="operator%20=%20"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td>CSSMediaRule & <strong>operator = </strong> (const CSSRule &other) <br></td><td align="right"><h3><strong>operator = </strong></h3></td></tr></table><p></p><p>Reimplemented from <A HREF="DOM__CSSRule.html#operator%20=%20">CSSRule</A>.</p> <A NAME="~CSSMediaRule"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>~CSSMediaRule</strong> () <br></td><td align="right"><h3><strong>~CSSMediaRule</strong></h3></td></tr></table><p></p><A NAME="media"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td>MediaList <strong>media</strong> () <br></td><td align="right"><h3><strong>media</strong></h3></td></tr></table><p> <small>[const]</small></p><p> A list of <a href="http://www.w3.org/TR/REC-CSS2/media.html#media-types"> media types </a> for this rule. </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> A list of all CSS rules contained within the media block. </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 media block. </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 media rule 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 media block's rule collection of the rule before which to insert the specified rule. If the specified index is equal to the length of the media blocks's rule collection, the rule will be added to the end of the media block. </TD></TR> </TABLE></P> <p><b>Returns</b>: The index within the media block'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 media block. </p> <p></p> <p></p> <p></p> <p> NO_MODIFICATION_ALLOWED_ERR: Raised if this media rule 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 media block's rule collection 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, media, 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>