html_element.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
00025
00026
00027
00028
00029 #ifndef HTML_ELEMENT_H
00030 #define HTML_ELEMENT_H
00031
00032 #include <dom/dom_element.h>
00033 class KHTMLView;
00034
00035 namespace DOM {
00036
00037 class HTMLElementImpl;
00038 class DOMString;
00039 class Element;
00040 class HTMLCollection;
00041
00067 class HTMLElement : public Element
00068 {
00069 friend class HTMLDocument;
00070 friend class ::KHTMLView;
00071 friend class HTMLTableElement;
00072 friend class HTMLTableRowElement;
00073 friend class HTMLTableSectionElement;
00074
00075 public:
00076 HTMLElement();
00077 HTMLElement(const HTMLElement &other);
00078 HTMLElement(const Node &other) : Element()
00079 {(*this)=other;}
00080
00081 protected:
00082 HTMLElement(HTMLElementImpl *impl);
00083 public:
00084
00085 HTMLElement & operator = (const HTMLElement &other);
00086 HTMLElement & operator = (const Node &other);
00087
00088 ~HTMLElement();
00089
00096 DOMString id() const;
00097
00101 void setId( const DOMString & );
00102
00109 DOMString title() const;
00110
00114 void setTitle( const DOMString & );
00115
00122 DOMString lang() const;
00123
00127 void setLang( const DOMString & );
00128
00136 DOMString dir() const;
00137
00141 void setDir( const DOMString & );
00142
00151 DOMString className() const;
00152
00156 void setClassName( const DOMString & );
00157
00162 DOMString innerHTML() const;
00163
00171 void setInnerHTML( const DOMString &html );
00172
00177 DOMString innerText() const;
00178
00186 void setInnerText( const DOMString &text );
00187
00192 HTMLCollection children() const;
00193
00198 HTMLCollection all() const;
00199
00200
00201
00202
00203 void removeCSSProperty( const DOMString& property );
00204
00205
00206
00207
00208 void addCSSProperty( const DOMString &property, const DOMString &value );
00209
00210 protected:
00211
00212
00213
00214 void assignOther( const Node &other, int elementId );
00215 };
00216
00217 }
00218
00219 #endif
This file is part of the documentation for khtml Library Version 3.3.1.