.TH "DOM::CSSStyleDeclaration" 3 "28 Jan 2004" "khtml Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
DOM::CSSStyleDeclaration \- The \fC \fBCSSStyleDeclaration\fP \fP interface represents a single \fCCSS declaration block \fP .  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <css_value.h>\fP
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBCSSStyleDeclaration\fP (const  \fBCSSStyleDeclaration\fP &other)"
.br
.ti -1c
.RI "\fBCSSStyleDeclaration\fP (CSSStyleDeclarationImpl *impl)"
.br
.ti -1c
.RI "\fBCSSStyleDeclaration\fP & \fBoperator=\fP (const  \fBCSSStyleDeclaration\fP &other)"
.br
.ti -1c
.RI "\fBDOM::DOMString\fP \fBcssText\fP () const "
.br
.RI "\fIThe parsable textual representation of the declaration block (including the surrounding curly braces). \fP"
.ti -1c
.RI "void \fBsetCssText\fP (const  \fBDOM::DOMString\fP &)"
.br
.RI "\fIsee \fBcssText\fP \fP"
.ti -1c
.RI "unsigned long \fBlength\fP () const "
.br
.RI "\fIThe number of properties that have been explicitly set in this declaration block. \fP"
.ti -1c
.RI "\fBCSSRule\fP \fBparentRule\fP () const "
.br
.RI "\fIThe CSS rule that contains this declaration block. \fP"
.ti -1c
.RI "\fBDOM::DOMString\fP \fBgetPropertyValue\fP (const  \fBDOM::DOMString\fP &propertyName) const "
.br
.RI "\fIUsed to retrieve the value of a CSS property if it has been explicitly set within this declaration block. \fP"
.ti -1c
.RI "\fBDOM::DOMString\fP \fBgetPropertyValue\fP (const  \fBDOM::DOMString\fP &propertyName)"
.br
.ti -1c
.RI "\fBCSSValue\fP \fBgetPropertyCSSValue\fP (const  \fBDOM::DOMString\fP &propertyName) const "
.br
.RI "\fIUsed to retrieve the object representation of the value of a CSS property if it has been explicitly set within this declaration block. \fP"
.ti -1c
.RI "\fBCSSValue\fP \fBgetPropertyCSSValue\fP (const  \fBDOM::DOMString\fP &propertyName)"
.br
.ti -1c
.RI "\fBDOM::DOMString\fP \fBremoveProperty\fP (const  \fBDOM::DOMString\fP &propertyName)"
.br
.RI "\fIUsed to remove a CSS property if it has been explicitly set within this declaration block. \fP"
.ti -1c
.RI "\fBDOM::DOMString\fP \fBgetPropertyPriority\fP (const  \fBDOM::DOMString\fP &propertyName) const "
.br
.RI "\fIUsed to retrieve the priority of a CSS property (e.g. \fP"
.ti -1c
.RI "\fBDOM::DOMString\fP \fBgetPropertyPriority\fP (const  \fBDOM::DOMString\fP &propertyName)"
.br
.ti -1c
.RI "void \fBsetProperty\fP (const  \fBDOM::DOMString\fP &propertyName, const  \fBDOM::DOMString\fP &value, const  \fBDOM::DOMString\fP &priority)"
.br
.RI "\fIUsed to set a property value and priority within this declaration block. \fP"
.ti -1c
.RI "\fBDOM::DOMString\fP \fBitem\fP (unsigned long index) const "
.br
.RI "\fIUsed to retrieve the properties that have been explicitly set in this declaration block. \fP"
.ti -1c
.RI "\fBDOM::DOMString\fP \fBitem\fP (unsigned long index)"
.br
.ti -1c
.RI "CSSStyleDeclarationImpl * \fBhandle\fP () const "
.br
.ti -1c
.RI "bool \fBisNull\fP () const "
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "CSSStyleDeclarationImpl * \fBimpl\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
The \fC \fBCSSStyleDeclaration\fP \fP interface represents a single \fCCSS declaration block \fP . 

This interface may be used to determine the style properties currently set in a block or to set style properties explicitly within the block.
.PP
While an implementation may not recognize all CSS properties within a CSS declaration block, it is expected to provide access to all specified properties through the \fC \fBCSSStyleDeclaration\fP \fP interface. Furthermore, implementations that support a specific level of CSS should correctly handle \fCCSS shorthand \fP properties for that level. For a further discussion of shorthand properties, see the \fC \fBCSS2Properties\fP \fP interface. 
.PP
Definition at line 59 of file css_value.h.
.SH "Member Function Documentation"
.PP 
.SS "\fBDOMString\fP CSSStyleDeclaration::cssText () const"
.PP
The parsable textual representation of the declaration block (including the surrounding curly braces). Setting this attribute will result in the parsing of the new value and resetting of the properties in the declaration block. Definition at line 63 of file css_value.cpp.
.SS "void CSSStyleDeclaration::setCssText (const \fBDOM::DOMString\fP &)"
.PP
see \fBcssText\fP \fBExceptions:\fP
.RS 4
\fICSSException\fP SYNTAX_ERR: Raised if the specified CSS string value has a syntax error and is unparsable.
.br
\fIDOMException\fP NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly. 
.RE
.PP
Definition at line 69 of file css_value.cpp.
.SS "unsigned long CSSStyleDeclaration::length () const"
.PP
The number of properties that have been explicitly set in this declaration block. Definition at line 135 of file css_value.cpp.
.SS "\fBCSSRule\fP CSSStyleDeclaration::parentRule () const"
.PP
The CSS rule that contains this declaration block. Definition at line 152 of file css_value.cpp.
.SS "\fBDOMString\fP CSSStyleDeclaration::getPropertyValue (const \fBDOM::DOMString\fP & propertyName) const"
.PP
Used to retrieve the value of a CSS property if it has been explicitly set within this declaration block. \fBParameters:\fP
.RS 4
\fIpropertyName\fP The name of the CSS property. See the \fCCSS property index \fP .
.RE
.PP
\fBReturns:\fP
.RS 4
Returns the value of the property if it has been explicitly set for this declaration block. Returns the empty string if the property has not been set. 
.RE
.PP
Definition at line 80 of file css_value.cpp.
.PP
References QString::ascii(), DOM::DOMString::length(), and DOM::DOMString::string().
.SS "\fBCSSValue\fP CSSStyleDeclaration::getPropertyCSSValue (const \fBDOM::DOMString\fP & propertyName) const"
.PP
Used to retrieve the object representation of the value of a CSS property if it has been explicitly set within this declaration block. This method returns null if the property is a \fCshorthand \fP property. Shorthand property values can only be accessed and modified as strings, using the \fC getPropertyValue \fP and \fC setProperty \fP methods.
.PP
\fBParameters:\fP
.RS 4
\fIpropertyName\fP The name of the CSS property. See the \fCCSS property index \fP .
.RE
.PP
\fBReturns:\fP
.RS 4
Returns the value of the property if it has been explicitly set for this declaration block. Returns the \fC null \fP if the property has not been set. 
.RE
.PP
Definition at line 93 of file css_value.cpp.
.PP
References QString::ascii(), DOM::DOMString::length(), and DOM::DOMString::string().
.SS "\fBDOMString\fP CSSStyleDeclaration::removeProperty (const \fBDOM::DOMString\fP & propertyName)"
.PP
Used to remove a CSS property if it has been explicitly set within this declaration block. \fBParameters:\fP
.RS 4
\fIpropertyName\fP The name of the CSS property. See the \fCCSS property index \fP .
.RE
.PP
\fBReturns:\fP
.RS 4
Returns the value of the property if it has been explicitly set for this declaration block. Returns the empty string if the property has not been set or the property name does not correspond to a valid CSS2 property.
.RE
.PP
\fBExceptions:\fP
.RS 4
\fIDOMException\fP NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly. 
.RE
.PP
Definition at line 101 of file css_value.cpp.
.PP
References QString::ascii(), DOM::DOMString::length(), and DOM::DOMString::string().
.SS "\fBDOMString\fP CSSStyleDeclaration::getPropertyPriority (const \fBDOM::DOMString\fP & propertyName) const"
.PP
Used to retrieve the priority of a CSS property (e.g. the \fC 'important' \fP qualifier) if the property has been explicitly set in this declaration block.
.PP
\fBParameters:\fP
.RS 4
\fIpropertyName\fP The name of the CSS property. See the \fCCSS property index \fP .
.RE
.PP
\fBReturns:\fP
.RS 4
A string representing the priority (e.g. \fC 'important' \fP ) if one exists. The empty string if none exists. 
.RE
.PP
Definition at line 113 of file css_value.cpp.
.PP
References QString::ascii(), DOM::DOMString::length(), and DOM::DOMString::string().
.SS "void CSSStyleDeclaration::setProperty (const \fBDOM::DOMString\fP & propertyName, const \fBDOM::DOMString\fP & value, const \fBDOM::DOMString\fP & priority)"
.PP
Used to set a property value and priority within this declaration block. \fBParameters:\fP
.RS 4
\fIpropertyName\fP The name of the CSS property. See the \fCCSS property index \fP .
.br
\fIvalue\fP The new value of the property.
.br
\fIpriority\fP The new priority of the property (e.g. \fC 'important' \fP ).
.RE
.PP
\fBReturns:\fP
.RS 4
.RE
.PP
\fBExceptions:\fP
.RS 4
\fICSSException\fP SYNTAX_ERR: Raised if the specified value has a syntax error and is unparsable.
.br
\fIDOMException\fP NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly. 
.RE
.PP
Definition at line 122 of file css_value.cpp.
.PP
References QString::find(), DOM::DOMString::length(), QString::lower(), and DOM::DOMString::string().
.SS "\fBDOMString\fP CSSStyleDeclaration::item (unsigned long index) const"
.PP
Used to retrieve the properties that have been explicitly set in this declaration block. The order of the properties retrieved using this method does not have to be the order in which they were set. This method can be used to iterate over all properties in this declaration block.
.PP
\fBParameters:\fP
.RS 4
\fIindex\fP Index of the property name to retrieve.
.RE
.PP
\fBReturns:\fP
.RS 4
The name of the property at this ordinal position. The empty string if no property exists at this position. 
.RE
.PP
Definition at line 146 of file css_value.cpp.

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