css_computedstyle.h [plain text]
#ifndef CSS_COMPUTEDSTYLE_H
#define CSS_COMPUTEDSTYLE_H
#include "css/css_valueimpl.h"
#include "dom/dom_string.h"
namespace khtml {
class RenderObject;
}
namespace DOM {
class CSSProperty;
class CSSStyleDeclarationImpl;
class CSSValueImpl;
class DOMString;
class NodeImpl;
class CSSComputedStyleDeclarationImpl : public CSSStyleDeclarationImpl
{
public:
CSSComputedStyleDeclarationImpl(NodeImpl *node);
virtual ~CSSComputedStyleDeclarationImpl();
virtual DOMString cssText() const;
virtual void setCssText(const DOMString &);
virtual CSSValueImpl *getPropertyCSSValue(int propertyID) const;
virtual DOMString getPropertyValue(int propertyID) const;
virtual bool getPropertyPriority(int propertyID) const;
virtual DOMString removeProperty(int propertyID);
virtual bool setProperty(int propertyId, const DOMString &value, bool important = false);
virtual void setProperty(int propertyId, int value, bool important = false);
virtual void setLengthProperty(int id, const DOMString &value, bool important, bool multiLength = false);
virtual void setProperty(const DOMString &propertyString);
virtual DOMString item(unsigned long index) const;
private:
CSSProperty property(int id) const;
khtml::RenderObject *m_renderer;
};
}
#endif