html_elementimpl.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef HTML_ELEMENTIMPL_H
00025 #define HTML_ELEMENTIMPL_H
00026
00027 #include "xml/dom_elementimpl.h"
00028
00029 namespace DOM {
00030
00031 class DOMString;
00032 class CSSStyleDeclarationImpl;
00033
00034 class HTMLElementImpl : public ElementImpl
00035 {
00036 public:
00037 HTMLElementImpl(DocumentPtr *doc)
00038 : ElementImpl(doc) {}
00039
00040 virtual ~HTMLElementImpl();
00041
00042 virtual bool isHTMLElement() const { return true; }
00043
00044 virtual Id id() const = 0;
00045
00046 virtual void parseAttribute(AttributeImpl *token);
00047
00048 void addCSSLength(int id, const DOMString &value, bool numOnly = false, bool multiLength = false);
00049 void addCSSProperty(int id, const DOMString &value);
00050 void addCSSProperty(int id, int value);
00051 void removeCSSProperty(int id);
00052
00053 virtual void recalcStyle( StyleChange );
00054
00055 DOMString innerHTML() const;
00056 DOMString innerText() const;
00057 bool setInnerHTML( const DOMString &html );
00058 bool setInnerText( const DOMString &text );
00059
00060 virtual DOMString namespaceURI() const;
00061
00062 protected:
00063 bool isURLAllowed(const QString& url) const;
00064
00065
00066 void addHTMLAlignment( DOMString alignment );
00067 };
00068
00069 class HTMLGenericElementImpl : public HTMLElementImpl
00070 {
00071 public:
00072 HTMLGenericElementImpl(DocumentPtr *doc, ushort i);
00073
00074 virtual ~HTMLGenericElementImpl();
00075
00076 virtual Id id() const { return _id; };
00077
00078 protected:
00079 ushort _id;
00080 };
00081
00082 }
00083
00084 #endif
This file is part of the documentation for kdelibs Version 3.1.4.