DOM::CSS2Properties Class Reference

#include <css_extensions.h>

List of all members.


Detailed Description

The CSS2Properties interface represents a convenience mechanism for retrieving and setting properties within a CSSStyleDeclaration .

The attributes of this interface correspond to all the properties specified in CSS2 . Getting an attribute of this interface is equivalent to calling the getPropertyValue method of the CSSStyleDeclaration interface. Setting an attribute of this interface is equivalent to calling the setProperty method of the CSSStyleDeclaration interface.

A compliant implementation is not required to implement the CSS2Properties interface. If an implementation does implement this interface, the expectation is that language-specific methods can be used to cast from an instance of the CSSStyleDeclaration interface to the CSS2Properties interface.

If an implementation does implement this interface, it is expected to understand the specific syntax of the shorthand properties, and apply their semantics; when the margin property is set, for example, the marginTop , marginRight , marginBottom and marginLeft properties are actually being set by the underlying implementation.

When dealing with CSS "shorthand" properties, the shorthand properties should be decomposed into their component longhand properties as appropriate, and when querying for their value, the form returned should be the shortest form exactly equivalent to the declarations made in the ruleset. However, if there is no shorthand declaration that could be added to the ruleset without changing in any way the rules already declared in the ruleset (i.e., by adding longhand rules that were previously not declared in the ruleset), then the empty string should be returned for the shorthand property.

For example, querying for the font property should not return "normal normal normal 14pt/normal Arial, sans-serif", when "14pt Arial, sans-serif" suffices (the normals are initial values, and are implied by use of the longhand property).

If the values for all the longhand properties that compose a particular string are the initial values, then a string consisting of all the initial values should be returned (e.g. a border-width value of "medium" should be returned as such, not as "").

For some shorthand properties that take missing values from other sides, such as the margin , padding , and border-[width|style|color] properties, the minimum number of sides possible should be used, i.e., "0px 10px" will be returned instead of "0px 10px 0px 10px".

If the value of a shorthand property can not be decomposed into its component longhand properties, as is the case for the font property with a value of "menu", querying for the values of the component longhand properties should return the empty string.

Definition at line 1048 of file css_extensions.h.


Public Member Functions

 CSS2Properties ()
 CSS2Properties (const CSS2Properties &other)
 CSS2Properties (CSS2PropertiesImpl *impl)
CSS2Propertiesoperator= (const CSS2Properties &other)
 ~CSS2Properties ()
DOM::DOMString azimuth () const
void setAzimuth (const DOM::DOMString &)
DOM::DOMString background () const
void setBackground (const DOM::DOMString &)
DOM::DOMString backgroundAttachment () const
void setBackgroundAttachment (const DOM::DOMString &)
DOM::DOMString backgroundColor () const
void setBackgroundColor (const DOM::DOMString &)
DOM::DOMString backgroundImage () const
void setBackgroundImage (const DOM::DOMString &)
DOM::DOMString backgroundPosition () const
void setBackgroundPosition (const DOM::DOMString &)
DOM::DOMString backgroundRepeat () const
void setBackgroundRepeat (const DOM::DOMString &)
DOM::DOMString border () const
void setBorder (const DOM::DOMString &)
DOM::DOMString borderCollapse () const
void setBorderCollapse (const DOM::DOMString &)
DOM::DOMString borderColor () const
void setBorderColor (const DOM::DOMString &)
DOM::DOMString borderSpacing () const
void setBorderSpacing (const DOM::DOMString &)
DOM::DOMString borderStyle () const
void setBorderStyle (const DOM::DOMString &)
DOM::DOMString borderTop () const
void setBorderTop (const DOM::DOMString &)
DOM::DOMString borderRight () const
void setBorderRight (const DOM::DOMString &)
DOM::DOMString borderBottom () const
void setBorderBottom (const DOM::DOMString &)
DOM::DOMString borderLeft () const
void setBorderLeft (const DOM::DOMString &)
DOM::DOMString borderTopColor () const
void setBorderTopColor (const DOM::DOMString &)
DOM::DOMString borderRightColor () const
void setBorderRightColor (const DOM::DOMString &)
DOM::DOMString borderBottomColor () const
void setBorderBottomColor (const DOM::DOMString &)
DOM::DOMString borderLeftColor () const
void setBorderLeftColor (const DOM::DOMString &)
DOM::DOMString borderTopStyle () const
void setBorderTopStyle (const DOM::DOMString &)
DOM::DOMString borderRightStyle () const
void setBorderRightStyle (const DOM::DOMString &)
DOM::DOMString borderBottomStyle () const
void setBorderBottomStyle (const DOM::DOMString &)
DOM::DOMString borderLeftStyle () const
void setBorderLeftStyle (const DOM::DOMString &)
DOM::DOMString borderTopWidth () const
void setBorderTopWidth (const DOM::DOMString &)
DOM::DOMString borderRightWidth () const
void setBorderRightWidth (const DOM::DOMString &)
DOM::DOMString borderBottomWidth () const
void setBorderBottomWidth (const DOM::DOMString &)
DOM::DOMString borderLeftWidth () const
void setBorderLeftWidth (const DOM::DOMString &)
DOM::DOMString borderWidth () const
void setBorderWidth (const DOM::DOMString &)
DOM::DOMString bottom () const
void setBottom (const DOM::DOMString &)
DOM::DOMString captionSide () const
void setCaptionSide (const DOM::DOMString &)
DOM::DOMString clear () const
void setClear (const DOM::DOMString &)
DOM::DOMString clip () const
void setClip (const DOM::DOMString &)
DOM::DOMString color () const
void setColor (const DOM::DOMString &)
DOM::DOMString content () const
void setContent (const DOM::DOMString &)
DOM::DOMString counterIncrement () const
void setCounterIncrement (const DOM::DOMString &)
DOM::DOMString counterReset () const
void setCounterReset (const DOM::DOMString &)
DOM::DOMString cue () const
void setCue (const DOM::DOMString &)
DOM::DOMString cueAfter () const
void setCueAfter (const DOM::DOMString &)
DOM::DOMString cueBefore () const
void setCueBefore (const DOM::DOMString &)
DOM::DOMString cursor () const
void setCursor (const DOM::DOMString &)
DOM::DOMString direction () const
void setDirection (const DOM::DOMString &)
DOM::DOMString display () const
void setDisplay (const DOM::DOMString &)
DOM::DOMString elevation () const
void setElevation (const DOM::DOMString &)
DOM::DOMString emptyCells () const
void setEmptyCells (const DOM::DOMString &)
DOM::DOMString cssFloat () const
void setCssFloat (const DOM::DOMString &)
DOM::DOMString font () const
void setFont (const DOM::DOMString &)
DOM::DOMString fontFamily () const
void setFontFamily (const DOM::DOMString &)
DOM::DOMString fontSize () const
void setFontSize (const DOM::DOMString &)
DOM::DOMString fontSizeAdjust () const
void setFontSizeAdjust (const DOM::DOMString &)
DOM::DOMString fontStretch () const
void setFontStretch (const DOM::DOMString &)
DOM::DOMString fontStyle () const
void setFontStyle (const DOM::DOMString &)
DOM::DOMString fontVariant () const
void setFontVariant (const DOM::DOMString &)
DOM::DOMString fontWeight () const
void setFontWeight (const DOM::DOMString &)
DOM::DOMString height () const
void setHeight (const DOM::DOMString &)
DOM::DOMString left () const
void setLeft (const DOM::DOMString &)
DOM::DOMString letterSpacing () const
void setLetterSpacing (const DOM::DOMString &)
DOM::DOMString lineHeight () const
void setLineHeight (const DOM::DOMString &)
DOM::DOMString listStyle () const
void setListStyle (const DOM::DOMString &)
DOM::DOMString listStyleImage () const
void setListStyleImage (const DOM::DOMString &)
DOM::DOMString listStylePosition () const
void setListStylePosition (const DOM::DOMString &)
DOM::DOMString listStyleType () const
void setListStyleType (const DOM::DOMString &)
DOM::DOMString margin () const
void setMargin (const DOM::DOMString &)
DOM::DOMString marginTop () const
void setMarginTop (const DOM::DOMString &)
DOM::DOMString marginRight () const
void setMarginRight (const DOM::DOMString &)
DOM::DOMString marginBottom () const
void setMarginBottom (const DOM::DOMString &)
DOM::DOMString marginLeft () const
void setMarginLeft (const DOM::DOMString &)
DOM::DOMString markerOffset () const
void setMarkerOffset (const DOM::DOMString &)
DOM::DOMString marks () const
void setMarks (const DOM::DOMString &)
DOM::DOMString maxHeight () const
void setMaxHeight (const DOM::DOMString &)
DOM::DOMString maxWidth () const
void setMaxWidth (const DOM::DOMString &)
DOM::DOMString minHeight () const
void setMinHeight (const DOM::DOMString &)
DOM::DOMString minWidth () const
void setMinWidth (const DOM::DOMString &)
DOM::DOMString orphans () const
void setOrphans (const DOM::DOMString &)
DOM::DOMString outline () const
void setOutline (const DOM::DOMString &)
DOM::DOMString outlineColor () const
void setOutlineColor (const DOM::DOMString &)
DOM::DOMString outlineStyle () const
void setOutlineStyle (const DOM::DOMString &)
DOM::DOMString outlineWidth () const
void setOutlineWidth (const DOM::DOMString &)
DOM::DOMString overflow () const
void setOverflow (const DOM::DOMString &)
DOM::DOMString padding () const
void setPadding (const DOM::DOMString &)
DOM::DOMString paddingTop () const
void setPaddingTop (const DOM::DOMString &)
DOM::DOMString paddingRight () const
void setPaddingRight (const DOM::DOMString &)
DOM::DOMString paddingBottom () const
void setPaddingBottom (const DOM::DOMString &)
DOM::DOMString paddingLeft () const
void setPaddingLeft (const DOM::DOMString &)
DOM::DOMString page () const
void setPage (const DOM::DOMString &)
DOM::DOMString pageBreakAfter () const
void setPageBreakAfter (const DOM::DOMString &)
DOM::DOMString pageBreakBefore () const
void setPageBreakBefore (const DOM::DOMString &)
DOM::DOMString pageBreakInside () const
void setPageBreakInside (const DOM::DOMString &)
DOM::DOMString pause () const
void setPause (const DOM::DOMString &)
DOM::DOMString pauseAfter () const
void setPauseAfter (const DOM::DOMString &)
DOM::DOMString pauseBefore () const
void setPauseBefore (const DOM::DOMString &)
DOM::DOMString pitch () const
void setPitch (const DOM::DOMString &)
DOM::DOMString pitchRange () const
void setPitchRange (const DOM::DOMString &)
DOM::DOMString playDuring () const
void setPlayDuring (const DOM::DOMString &)
DOM::DOMString position () const
void setPosition (const DOM::DOMString &)
DOM::DOMString quotes () const
void setQuotes (const DOM::DOMString &)
DOM::DOMString richness () const
void setRichness (const DOM::DOMString &)
DOM::DOMString right () const
void setRight (const DOM::DOMString &)
DOM::DOMString size () const
void setSize (const DOM::DOMString &)
DOM::DOMString speak () const
void setSpeak (const DOM::DOMString &)
DOM::DOMString speakHeader () const
void setSpeakHeader (const DOM::DOMString &)
DOM::DOMString speakNumeral () const
void setSpeakNumeral (const DOM::DOMString &)
DOM::DOMString speakPunctuation () const
void setSpeakPunctuation (const DOM::DOMString &)
DOM::DOMString speechRate () const
void setSpeechRate (const DOM::DOMString &)
DOM::DOMString stress () const
void setStress (const DOM::DOMString &)
DOM::DOMString tableLayout () const
void setTableLayout (const DOM::DOMString &)
DOM::DOMString textAlign () const
void setTextAlign (const DOM::DOMString &)
DOM::DOMString textDecoration () const
void setTextDecoration (const DOM::DOMString &)
DOM::DOMString textIndent () const
void setTextIndent (const DOM::DOMString &)
DOM::DOMString textShadow () const
void setTextShadow (const DOM::DOMString &)
DOM::DOMString textTransform () const
void setTextTransform (const DOM::DOMString &)
DOM::DOMString top () const
void setTop (const DOM::DOMString &)
DOM::DOMString unicodeBidi () const
void setUnicodeBidi (const DOM::DOMString &)
DOM::DOMString verticalAlign () const
void setVerticalAlign (const DOM::DOMString &)
DOM::DOMString visibility () const
void setVisibility (const DOM::DOMString &)
DOM::DOMString voiceFamily () const
void setVoiceFamily (const DOM::DOMString &)
DOM::DOMString volume () const
void setVolume (const DOM::DOMString &)
DOM::DOMString whiteSpace () const
void setWhiteSpace (const DOM::DOMString &)
DOM::DOMString widows () const
void setWidows (const DOM::DOMString &)
DOM::DOMString width () const
void setWidth (const DOM::DOMString &)
DOM::DOMString wordSpacing () const
void setWordSpacing (const DOM::DOMString &)
DOM::DOMString zIndex () const
void setZIndex (const DOM::DOMString &)

Member Function Documentation

DOMString CSS2Properties::azimuth (  )  const

See the azimuth property definition in CSS2.

Definition at line 652 of file css_extensions.cpp.

DOMString CSS2Properties::background (  )  const

See the background property definition in CSS2.

Definition at line 663 of file css_extensions.cpp.

DOMString CSS2Properties::backgroundAttachment (  )  const

See the background-attachment property definition in CSS2.

Definition at line 674 of file css_extensions.cpp.

DOMString CSS2Properties::backgroundColor (  )  const

See the background-color property definition in CSS2.

Definition at line 685 of file css_extensions.cpp.

DOMString CSS2Properties::backgroundImage (  )  const

See the background-image property definition in CSS2.

Definition at line 696 of file css_extensions.cpp.

DOMString CSS2Properties::backgroundPosition (  )  const

See the background-position property definition in CSS2.

Definition at line 707 of file css_extensions.cpp.

DOMString CSS2Properties::backgroundRepeat (  )  const

See the background-repeat property definition in CSS2.

Definition at line 718 of file css_extensions.cpp.

DOMString CSS2Properties::border (  )  const

See the border property definition in CSS2.

Definition at line 729 of file css_extensions.cpp.

DOMString CSS2Properties::borderBottom (  )  const

See the border-bottom property definition in CSS2.

Definition at line 806 of file css_extensions.cpp.

DOMString CSS2Properties::borderBottomColor (  )  const

See the border-bottom-color property definition in CSS2.

Definition at line 850 of file css_extensions.cpp.

DOMString CSS2Properties::borderBottomStyle (  )  const

See the border-bottom-style property definition in CSS2.

Definition at line 894 of file css_extensions.cpp.

DOMString CSS2Properties::borderBottomWidth (  )  const

See the border-bottom-width property definition in CSS2.

Definition at line 938 of file css_extensions.cpp.

DOMString CSS2Properties::borderCollapse (  )  const

See the border-collapse property definition in CSS2.

Definition at line 740 of file css_extensions.cpp.

DOMString CSS2Properties::borderColor (  )  const

See the border-color property definition in CSS2.

Definition at line 751 of file css_extensions.cpp.

DOMString CSS2Properties::borderLeft (  )  const

See the border-left property definition in CSS2.

Definition at line 817 of file css_extensions.cpp.

DOMString CSS2Properties::borderLeftColor (  )  const

See the border-left-color property definition in CSS2.

Definition at line 861 of file css_extensions.cpp.

DOMString CSS2Properties::borderLeftStyle (  )  const

See the border-left-style property definition in CSS2.

Definition at line 905 of file css_extensions.cpp.

DOMString CSS2Properties::borderLeftWidth (  )  const

See the border-left-width property definition in CSS2.

Definition at line 949 of file css_extensions.cpp.

DOMString CSS2Properties::borderRight (  )  const

See the border-right property definition in CSS2.

Definition at line 795 of file css_extensions.cpp.

DOMString CSS2Properties::borderRightColor (  )  const

See the border-right-color property definition in CSS2.

Definition at line 839 of file css_extensions.cpp.

DOMString CSS2Properties::borderRightStyle (  )  const

See the border-right-style property definition in CSS2.

Definition at line 883 of file css_extensions.cpp.

DOMString CSS2Properties::borderRightWidth (  )  const

See the border-right-width property definition in CSS2.

Definition at line 927 of file css_extensions.cpp.

DOMString CSS2Properties::borderSpacing (  )  const

See the border-spacing property definition in CSS2.

Definition at line 762 of file css_extensions.cpp.

DOMString CSS2Properties::borderStyle (  )  const

See the border-style property definition in CSS2.

Definition at line 773 of file css_extensions.cpp.

DOMString CSS2Properties::borderTop (  )  const

See the border-top property definition in CSS2.

Definition at line 784 of file css_extensions.cpp.

DOMString CSS2Properties::borderTopColor (  )  const

See the border-top-color property definition in CSS2.

Definition at line 828 of file css_extensions.cpp.

DOMString CSS2Properties::borderTopStyle (  )  const

See the border-top-style property definition in CSS2.

Definition at line 872 of file css_extensions.cpp.

DOMString CSS2Properties::borderTopWidth (  )  const

See the border-top-width property definition in CSS2.

Definition at line 916 of file css_extensions.cpp.

DOMString CSS2Properties::borderWidth (  )  const

See the border-width property definition in CSS2.

Definition at line 960 of file css_extensions.cpp.

DOMString CSS2Properties::bottom (  )  const

See the bottom property definition in CSS2.

Definition at line 971 of file css_extensions.cpp.

DOMString CSS2Properties::captionSide (  )  const

See the caption-side property definition in CSS2.

Definition at line 982 of file css_extensions.cpp.

DOMString CSS2Properties::clear (  )  const

See the clear property definition in CSS2.

Definition at line 993 of file css_extensions.cpp.

DOMString CSS2Properties::clip (  )  const

See the clip property definition in CSS2.

Definition at line 1004 of file css_extensions.cpp.

DOMString CSS2Properties::color (  )  const

See the color property definition in CSS2.

Definition at line 1015 of file css_extensions.cpp.

DOMString CSS2Properties::content (  )  const

See the content property definition in CSS2.

Definition at line 1026 of file css_extensions.cpp.

DOMString CSS2Properties::counterIncrement (  )  const

See the counter-increment property definition in CSS2.

Definition at line 1037 of file css_extensions.cpp.

DOMString CSS2Properties::counterReset (  )  const

See the counter-reset property definition in CSS2.

Definition at line 1048 of file css_extensions.cpp.

DOMString CSS2Properties::cssFloat (  )  const

See the float property definition in CSS2.

Definition at line 1147 of file css_extensions.cpp.

DOMString CSS2Properties::cue (  )  const

See the cue property definition in CSS2.

Definition at line 1059 of file css_extensions.cpp.

DOMString CSS2Properties::cueAfter (  )  const

See the cue-after property definition in CSS2.

Definition at line 1070 of file css_extensions.cpp.

DOMString CSS2Properties::cueBefore (  )  const

See the cue-before property definition in CSS2.

Definition at line 1081 of file css_extensions.cpp.

DOMString CSS2Properties::cursor (  )  const

See the cursor property definition in CSS2.

Definition at line 1092 of file css_extensions.cpp.

DOMString CSS2Properties::direction (  )  const

See the direction property definition in CSS2.

Definition at line 1103 of file css_extensions.cpp.

DOMString CSS2Properties::display (  )  const

See the display property definition in CSS2.

Definition at line 1114 of file css_extensions.cpp.

DOMString CSS2Properties::elevation (  )  const

See the elevation property definition in CSS2.

Definition at line 1125 of file css_extensions.cpp.

DOMString CSS2Properties::emptyCells (  )  const

See the empty-cells property definition in CSS2.

Definition at line 1136 of file css_extensions.cpp.

DOMString CSS2Properties::font (  )  const

See the font property definition in CSS2.

Definition at line 1158 of file css_extensions.cpp.

DOMString CSS2Properties::fontFamily (  )  const

See the font-family property definition in CSS2.

Definition at line 1169 of file css_extensions.cpp.

DOMString CSS2Properties::fontSize (  )  const

See the font-size property definition in CSS2.

Definition at line 1180 of file css_extensions.cpp.

DOMString CSS2Properties::fontSizeAdjust (  )  const

See the font-size-adjust property definition in CSS2.

Definition at line 1191 of file