.TH "DOM::CSSStyleSheet" 3 "28 Jan 2004" "khtml Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
DOM::CSSStyleSheet \- The \fC \fBCSSStyleSheet\fP \fP interface is a concrete interface used to represent a CSS style sheet i.e.  

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

.in +1c
.ti -1c
.RI "\fBCSSStyleSheet\fP (const  \fBCSSStyleSheet\fP &other)"
.br
.ti -1c
.RI "\fBCSSStyleSheet\fP (const  \fBStyleSheet\fP &other)"
.br
.ti -1c
.RI "\fBCSSStyleSheet\fP (CSSStyleSheetImpl *impl)"
.br
.ti -1c
.RI "\fBCSSStyleSheet\fP & \fBoperator=\fP (const  \fBCSSStyleSheet\fP &other)"
.br
.ti -1c
.RI "\fBCSSStyleSheet\fP & \fBoperator=\fP (const  \fBStyleSheet\fP &other)"
.br
.ti -1c
.RI "\fBCSSRule\fP \fBownerRule\fP () const "
.br
.RI "\fIIf this style sheet comes from an \fC  \fP rule, the \fC ownerRule \fP attribute will contain the \fC \fBCSSImportRule\fP \fP . \fP"
.ti -1c
.RI "\fBCSSRuleList\fP \fBcssRules\fP () const "
.br
.RI "\fIThe list of all CSS rules contained within the style sheet. \fP"
.ti -1c
.RI "unsigned long \fBinsertRule\fP (const  \fBDOM::DOMString\fP &rule, unsigned long index)"
.br
.RI "\fIUsed to insert a new rule into the style sheet. \fP"
.ti -1c
.RI "void \fBdeleteRule\fP (unsigned long index)"
.br
.RI "\fIUsed to delete a rule from the style sheet. \fP"
.in -1c
.SH "Detailed Description"
.PP 
The \fC \fBCSSStyleSheet\fP \fP interface is a concrete interface used to represent a CSS style sheet i.e. 

a style sheet whose content type is 'text/css'. 
.PP
Definition at line 207 of file css_stylesheet.h.
.SH "Member Function Documentation"
.PP 
.SS "\fBCSSRule\fP CSSStyleSheet::ownerRule () const"
.PP
If this style sheet comes from an \fC  \fP rule, the \fC ownerRule \fP attribute will contain the \fC \fBCSSImportRule\fP \fP . In that case, the \fC ownerNode \fP attribute in the \fC \fBStyleSheet\fP \fP interface will be \fC null \fP . If the style sheet comes from an element or a processing instruction, the \fC ownerRule \fP attribute will be \fC null \fP and the \fC ownerNode \fP attribute will contain the \fC \fBNode\fP \fP . Definition at line 173 of file css_stylesheet.cpp.
.SS "\fBCSSRuleList\fP CSSStyleSheet::cssRules () const"
.PP
The list of all CSS rules contained within the style sheet. This includes both \fCrule sets \fP and \fCat-rules \fP . Definition at line 179 of file css_stylesheet.cpp.
.SS "unsigned long CSSStyleSheet::insertRule (const \fBDOM::DOMString\fP & rule, unsigned long index)"
.PP
Used to insert a new rule into the style sheet. The new rule now becomes part of the cascade.
.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 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.
.RE
.PP
\fBReturns:\fP
.RS 4
The index within the style sheet'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  \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 style sheet 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
Definition at line 185 of file css_stylesheet.cpp.
.SS "void CSSStyleSheet::deleteRule (unsigned long index)"
.PP
Used to delete a rule from the style sheet. \fBParameters:\fP
.RS 4
\fIindex\fP The index within the style sheet's rule list 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 style sheet's rule list.
.RE
.PP
NO_MODIFICATION_ALLOWED_ERR: Raised if this style sheet is readonly. Definition at line 197 of file css_stylesheet.cpp.

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