css_renderstyledeclarationimpl.h

00001 
00021 #ifndef CSS_RENDERSTYLEIMPL_H
00022 #define CSS_RENDERSTYLEIMPL_H
00023 
00024 #include "css/css_valueimpl.h"
00025 #include "dom/dom_string.h"
00026 #include "rendering/render_style.h"
00027 
00028 
00029 namespace DOM {
00030     class NodeImpl;
00031 }
00032 
00033 namespace khtml {
00034 
00035 class RenderObject;
00036 
00037 
00038 // Used by DOM::Counter::listStyle()
00039 DOM::DOMString stringForListStyleType(khtml::EListStyleType type);
00040 
00041 class RenderStyleDeclarationImpl : public DOM::CSSStyleDeclarationImpl
00042 {
00043 public:
00044     RenderStyleDeclarationImpl( DOM::NodeImpl *node );
00045     virtual ~RenderStyleDeclarationImpl();
00046 
00047     DOM::DOMString cssText() const;
00048     void setCssText( DOM::DOMString str );
00049 
00050     DOM::CSSValueImpl *getPropertyCSSValue( int propertyID ) const;
00051     DOM::DOMString getPropertyValue( int propertyID ) const;
00052     bool getPropertyPriority( int propertyID ) const;
00053     unsigned long length() const;
00054 
00055     DOM::DOMString removeProperty( int propertyID, bool NonCSSHints = false );
00056     bool setProperty ( int propertyId, const DOM::DOMString &value, bool important = false,
00057                        bool nonCSSHint = false);
00058     void setProperty ( int propertyId, int value, bool important = false, bool nonCSSHint = false);
00059     void setLengthProperty(int id, const DOM::DOMString &value, bool important,
00060                            bool nonCSSHint = true, bool multiLength = false);
00061 
00062     void setProperty ( const DOM::DOMString &propertyString);
00063     DOM::DOMString item ( unsigned long index ) const;
00064 
00065 protected:
00066     DOM::CSSProperty property( int id ) const;
00067 
00068 protected:
00069     SharedPtr<DOM::NodeImpl> m_node;
00070 };
00071 
00072 
00073 }
00074 
00075 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys