.TH "DOM::CSSStyleSheet" kde3 "11 Jun 2005" "Version Version 3.4.1" "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
.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\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@import\fP rule, the \fCownerRule\fP attribute will contain the \fC\fBCSSImportRule\fP\fP . 
.PP
In that case, the \fCownerNode\fP attribute in the \fC\fBStyleSheet\fP\fP interface will be \fCnull\fP . If the style sheet comes from an element or a processing instruction, the \fCownerRule\fP attribute will be \fCnull\fP and the \fCownerNode\fP attribute will contain the \fC\fBNode\fP\fP . 
.PP
Definition at line 167 of file css_stylesheet.cpp.
.SS "\fBCSSRuleList\fP CSSStyleSheet::cssRules () const"
.PP
The list of all CSS rules contained within the style sheet. 
.PP
This includes both \fCrule sets \fP and \fCat-rules \fP . 
.PP
Definition at line 173 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. 
.PP
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@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 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

.PP
Definition at line 179 of file css_stylesheet.cpp.
.SS "void CSSStyleSheet::deleteRule (unsigned long index)"
.PP
Used to delete a rule from the style sheet. 
.PP
\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. 
.PP
Definition at line 191 of file css_stylesheet.cpp.

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