.TH "DOM::CSSStyleDeclaration" kde3 "11 Jun 2005" "Version Version 3.4.1" "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
.ti -1c
.RI "void \fBsetCssText\fP (const \fBDOM::DOMString\fP &)"
.br
.ti -1c
.RI "unsigned long \fBlength\fP () const "
.br
.ti -1c
.RI "\fBCSSRule\fP \fBparentRule\fP () const "
.br
.ti -1c
.RI "\fBDOM::DOMString\fP \fBgetPropertyValue\fP (const \fBDOM::DOMString\fP &propertyName) const "
.br
.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
.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
.ti -1c
.RI "\fBDOM::DOMString\fP \fBgetPropertyPriority\fP (const \fBDOM::DOMString\fP &propertyName) const "
.br
.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
.ti -1c
.RI "\fBDOM::DOMString\fP \fBitem\fP (unsigned long index) const "
.br
.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 60 of file css_value.h.
.SH "Member Function Documentation"
.PP 
.SS "\fBDOMString\fP DOM::CSSStyleDeclaration::cssText () const"
.PP
The parsable textual representation of the declaration block (including the surrounding curly braces). 
.PP
Setting this attribute will result in the parsing of the new value and resetting of the properties in the declaration block. 
.PP
Definition at line 63 of file css_value.cpp.
.SS "void DOM::CSSStyleDeclaration::setCssText (const \fBDOM::DOMString\fP &)"
.PP
see cssText 
.PP
\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

.PP
Definition at line 69 of file css_value.cpp.
.SS "unsigned long DOM::CSSStyleDeclaration::length () const"
.PP
The number of properties that have been explicitly set in this declaration block. 
.PP
Definition at line 135 of file css_value.cpp.
.SS "\fBCSSRule\fP DOM::CSSStyleDeclaration::parentRule () const"
.PP
The CSS rule that contains this declaration block. 
.PP
Definition at line 151 of file css_value.cpp.
.SS "\fBDOMString\fP DOM::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. 
.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 empty string if the property has not been set. 
.RE
.PP

.PP
Definition at line 80 of file css_value.cpp.
.SS "\fBCSSValue\fP DOM::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. 
.PP
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 \fCgetPropertyValue\fP and \fCsetProperty\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 \fCnull\fP if the property has not been set. 
.RE
.PP

.PP
Definition at line 93 of file css_value.cpp.
.SS "\fBDOMString\fP DOM::CSSStyleDeclaration::removeProperty (const \fBDOM::DOMString\fP & propertyName)"
.PP
Used to remove a CSS property if it has been explicitly set within 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
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

.PP
Definition at line 101 of file css_value.cpp.
.SS "\fBDOMString\fP DOM::CSSStyleDeclaration::getPropertyPriority (const \fBDOM::DOMString\fP & propertyName) const"
.PP
Used to retrieve the priority of a CSS property (e.g. 
.PP
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

.PP
Definition at line 113 of file css_value.cpp.
.SS "void DOM::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. 
.PP
\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

.PP
Definition at line 122 of file css_value.cpp.
.PP
References QString::find().
.SS "\fBDOMString\fP DOM::CSSStyleDeclaration::item (unsigned long index) const"
.PP
Used to retrieve the properties that have been explicitly set in this declaration block. 
.PP
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

.PP
Definition at line 146 of file css_value.cpp.

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