.TH "DOM::CSSMediaRule" kde3 "11 Jun 2005" "Version Version 3.4.1" "khtml Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
DOM::CSSMediaRule \- The \fC\fBCSSMediaRule\fP\fP interface represents a \fC@media rule \fP in a CSS style sheet.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <css_rule.h>\fP
.PP
Inherits \fBDOM::CSSRule\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBCSSMediaRule\fP (const \fBCSSMediaRule\fP &other)"
.br
.ti -1c
.RI "\fBCSSMediaRule\fP (const \fBCSSRule\fP &other)"
.br
.ti -1c
.RI "\fBCSSMediaRule\fP (CSSMediaRuleImpl *impl)"
.br
.ti -1c
.RI "\fBCSSMediaRule\fP & \fBoperator=\fP (const \fBCSSMediaRule\fP &other)"
.br
.ti -1c
.RI "\fBCSSMediaRule\fP & \fBoperator=\fP (const \fBCSSRule\fP &other)"
.br
.ti -1c
.RI "\fBMediaList\fP \fBmedia\fP () const "
.br
.ti -1c
.RI "\fBCSSRuleList\fP \fBcssRules\fP () const "
.br
.ti -1c
.RI "unsigned long \fBinsertRule\fP (const \fBDOM::DOMString\fP &rule, unsigned long index)"
.br
.ti -1c
.RI "void \fBdeleteRule\fP (unsigned long index)"
.br
.in -1c
.SH "Detailed Description"
.PP 
The \fC\fBCSSMediaRule\fP\fP interface represents a \fC@media rule \fP in a CSS style sheet. 

A \fC@media\fP rule can be used to delimit style rules for specific media types. 
.PP
Definition at line 270 of file css_rule.h.
.SH "Member Function Documentation"
.PP 
.SS "\fBMediaList\fP CSSMediaRule::media () const"
.PP
A list of \fCmedia types \fP for this rule. 
.PP
Definition at line 295 of file css_rule.cpp.
.SS "\fBCSSRuleList\fP CSSMediaRule::cssRules () const"
.PP
A list of all CSS rules contained within the media block. 
.PP
Definition at line 301 of file css_rule.cpp.
.SS "unsigned long CSSMediaRule::insertRule (const \fBDOM::DOMString\fP & rule, unsigned long index)"
.PP
Used to insert a new rule into the media block. 
.PP
\fBParameters:\fP
.RS 4
\fIrule\fP 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.
.br
\fIindex\fP 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.
.RE
.PP
\fBReturns:\fP
.RS 4
The index within the media block's rule collection of the newly inserted rule.
.RE
.PP
\fBExceptions:\fP
.RS 4
\fIDOMException\fP HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at the specified index. e.g. if an \fC@import\fP rule is inserted after a standard rule set or other at-rule.
.RE
.PP
INDEX_SIZE_ERR: Raised if the specified index is not a valid insertion point.
.PP
NO_MODIFICATION_ALLOWED_ERR: Raised if this media rule is readonly.
.PP
\fBExceptions:\fP
.RS 4
\fICSSException\fP SYNTAX_ERR: Raised if the specified rule has a syntax error and is unparsable. 
.RE
.PP

.PP
Definition at line 307 of file css_rule.cpp.
.SS "void CSSMediaRule::deleteRule (unsigned long index)"
.PP
Used to delete a rule from the media block. 
.PP
\fBParameters:\fP
.RS 4
\fIindex\fP The index within the media block's rule collection of the rule to remove.
.RE
.PP
\fBReturns:\fP
.RS 4
.RE
.PP
\fBExceptions:\fP
.RS 4
\fIDOMException\fP INDEX_SIZE_ERR: Raised if the specified index does not correspond to a rule in the media rule list.
.RE
.PP
NO_MODIFICATION_ALLOWED_ERR: Raised if this media rule is readonly. 
.PP
Definition at line 313 of file css_rule.cpp.

.SH "Author"
.PP 
Generated automatically by Doxygen for khtml Library from the source code.
