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
00027 class RenderObject;
00028
00029 namespace DOM {
00030 class NodeImpl;
00031 }
00032
00033 namespace khtml {
00034
00035 class RenderStyleDeclarationImpl : public DOM::CSSStyleDeclarationImpl
00036 {
00037 public:
00038 RenderStyleDeclarationImpl( DOM::NodeImpl *node );
00039 virtual ~RenderStyleDeclarationImpl();
00040
00041 DOM::DOMString cssText() const;
00042 void setCssText( DOM::DOMString str );
00043
00044 DOM::CSSValueImpl *getPropertyCSSValue( int propertyID ) const;
00045 DOM::DOMString getPropertyValue( int propertyID ) const;
00046 bool getPropertyPriority( int propertyID ) const;
00047
00048 DOM::DOMString removeProperty( int propertyID, bool NonCSSHints = false );
00049 bool setProperty ( int propertyId, const DOM::DOMString &value, bool important = false,
00050 bool nonCSSHint = false);
00051 void setProperty ( int propertyId, int value, bool important = false, bool nonCSSHint = false);
00052 void setLengthProperty(int id, const DOM::DOMString &value, bool important,
00053 bool nonCSSHint = true, bool multiLength = false);
00054
00055 void setProperty ( const DOM::DOMString &propertyString);
00056 DOM::DOMString item ( unsigned long index ) const;
00057
00058 protected:
00059 DOM::CSSProperty property( int id ) const;
00060
00061 protected:
00062 khtml::RenderObject *m_renderer;
00063 };
00064
00065
00066 }
00067
00068 #endif
This file is part of the documentation for khtml Library Version 3.3.2.