• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KHTML

DOM::CSS2Properties

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

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

Constructor & Destructor Documentation

CSS2Properties::CSS2Properties (  ) 

Definition at line 630 of file css_extensions.cpp.

CSS2Properties::CSS2Properties ( const CSS2Properties &  other  ) 

Definition at line 634 of file css_extensions.cpp.

CSS2Properties::CSS2Properties ( CSS2PropertiesImpl *  impl  ) 

Definition at line 638 of file css_extensions.cpp.

CSS2Properties::~CSS2Properties (  ) 

Definition at line 648 of file css_extensions.cpp.


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.