.TH "DOM::CSSRule" 3 "28 Jan 2004" "khtml Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
DOM::CSSRule \- The \fC \fBCSSRule\fP \fP interface is the abstract base interface for any type of CSS \fCstatement \fP .  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <css_rule.h>\fP
.PP
Inherited by \fBDOM::CSSCharsetRule\fP, \fBDOM::CSSFontFaceRule\fP, \fBDOM::CSSImportRule\fP, \fBDOM::CSSMediaRule\fP, DOM::CSSPageRule, \fBDOM::CSSStyleRule\fP, and \fBDOM::CSSUnknownRule\fP.
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBRuleType\fP { \fBUNKNOWN_RULE\fP =  0, \fBSTYLE_RULE\fP =  1, \fBCHARSET_RULE\fP =  2, \fBIMPORT_RULE\fP =  3, \fBMEDIA_RULE\fP =  4, \fBFONT_FACE_RULE\fP =  5, \fBPAGE_RULE\fP =  6 }"
.br
.RI "\fIAn integer indicating which type of rule this is. \fP"
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBCSSRule\fP (const  \fBCSSRule\fP &other)"
.br
.ti -1c
.RI "\fBCSSRule\fP (CSSRuleImpl *impl)"
.br
.ti -1c
.RI "\fBCSSRule\fP & \fBoperator=\fP (const  \fBCSSRule\fP &other)"
.br
.ti -1c
.RI "unsigned short \fBtype\fP () const "
.br
.RI "\fIThe type of the rule, as defined above. \fP"
.ti -1c
.RI "\fBDOM::DOMString\fP \fBcssText\fP () const "
.br
.RI "\fIThe parsable textual representation of the rule. \fP"
.ti -1c
.RI "void \fBsetCssText\fP (const  \fBDOM::DOMString\fP &)"
.br
.RI "\fIsee \fBcssText\fP \fP"
.ti -1c
.RI "\fBCSSStyleSheet\fP \fBparentStyleSheet\fP () const "
.br
.RI "\fIThe style sheet that contains this rule. \fP"
.ti -1c
.RI "\fBCSSRule\fP \fBparentRule\fP () const "
.br
.RI "\fIIf this rule is contained inside another rule (e.g. \fP"
.ti -1c
.RI "CSSRuleImpl * \fBhandle\fP () const "
.br
.ti -1c
.RI "bool \fBisNull\fP () const "
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "void \fBassignOther\fP (const  \fBCSSRule\fP &other, \fBRuleType\fP thisType)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "CSSRuleImpl * \fBimpl\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
The \fC \fBCSSRule\fP \fP interface is the abstract base interface for any type of CSS \fCstatement \fP . 

This includes both \fCrule sets \fP and \fCat-rules \fP . 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 \fC \fBCSSUnknownRule\fP \fP interface. 
.PP
Definition at line 53 of file css_rule.h.
.SH "Member Enumeration Documentation"
.PP 
.SS "enum \fBDOM::CSSRule::RuleType\fP"
.PP
An integer indicating which type of rule this is. Definition at line 68 of file css_rule.h.
.SH "Member Function Documentation"
.PP 
.SS "unsigned short CSSRule::type () const"
.PP
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 \fC \fBCSSRule\fP \fP interface to the specific derived interface implied by the \fC type \fP . Definition at line 60 of file css_rule.cpp.
.SS "\fBDOMString\fP CSSRule::cssText () const"
.PP
The parsable textual representation of the rule. This reflects the current state of the rule and not its initial value. Definition at line 66 of file css_rule.cpp.
.SS "void CSSRule::setCssText (const \fBDOM::DOMString\fP &)"
.PP
see \fBcssText\fP \fBExceptions:\fP
.RS 4
\fIDOMException\fP HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at this point in the style sheet.
.RE
.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 CSS string value has a syntax error and is unparsable.
.RE
.PP
INVALID_MODIFICATION_ERR: Raised if the specified CSS string value represents a different type of rule than the current one. Definition at line 72 of file css_rule.cpp.
.SS "\fBCSSStyleSheet\fP CSSRule::parentStyleSheet () const"
.PP
The style sheet that contains this rule. Definition at line 78 of file css_rule.cpp.
.SS "\fBCSSRule\fP CSSRule::parentRule () const"
.PP
If this rule is contained inside another rule (e.g. a style rule inside an  block), this is the containing rule. If this rule is not nested inside any other rules, this returns \fC null \fP . Definition at line 84 of file css_rule.cpp.

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