.TH "DOM::CSSRule" kde3 "11 Jun 2005" "Version Version 3.4.1" "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, \fBQUIRKS_RULE\fP =  100 }"
.br
.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
.ti -1c
.RI "\fBDOM::DOMString\fP \fBcssText\fP () const "
.br
.ti -1c
.RI "void \fBsetCssText\fP (const \fBDOM::DOMString\fP &)"
.br
.ti -1c
.RI "\fBCSSStyleSheet\fP \fBparentStyleSheet\fP () const "
.br
.ti -1c
.RI "\fBCSSRule\fP \fBparentRule\fP () const "
.br
.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 52 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. 
.PP
Definition at line 67 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. 
.PP
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 \fCtype\fP . 
.PP
Definition at line 59 of file css_rule.cpp.
.SS "\fBDOMString\fP CSSRule::cssText () const"
.PP
The parsable textual representation of the rule. 
.PP
This reflects the current state of the rule and not its initial value. 
.PP
Definition at line 65 of file css_rule.cpp.
.SS "void CSSRule::setCssText (const \fBDOM::DOMString\fP &)"
.PP
see cssText 
.PP
\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. 
.PP
Definition at line 71 of file css_rule.cpp.
.SS "\fBCSSStyleSheet\fP CSSRule::parentStyleSheet () const"
.PP
The style sheet that contains this rule. 
.PP
Definition at line 77 of file css_rule.cpp.
.PP
References DOM::StyleSheet::parentStyleSheet().
.SS "\fBCSSRule\fP CSSRule::parentRule () const"
.PP
If this rule is contained inside another rule (e.g. 
.PP
a style rule inside an @media block), this is the containing rule. If this rule is not nested inside any other rules, this returns \fCnull\fP . 
.PP
Definition at line 83 of file css_rule.cpp.

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