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_MISC_H
00030
#define HTML_MISC_H
00031
00032
#include <dom/html_element.h>
00033
#include <kdelibs_export.h>
00034
00035
namespace DOM {
00036
00037
class HTMLBaseFontElementImpl;
00038
class DOMString;
00039
class HTMLCollectionImpl;
00040
00048 class KHTML_EXPORT HTMLBaseFontElement :
public HTMLElement
00049 {
00050
public:
00051 HTMLBaseFontElement();
00052 HTMLBaseFontElement(
const HTMLBaseFontElement &other);
00053 HTMLBaseFontElement(
const Node &other) :
HTMLElement()
00054 {(*this)=other;}
00055
protected:
00056 HTMLBaseFontElement(HTMLBaseFontElementImpl *impl);
00057
public:
00058
00059 HTMLBaseFontElement & operator = (
const HTMLBaseFontElement &other);
00060 HTMLBaseFontElement & operator = (
const Node &other);
00061
00062 ~HTMLBaseFontElement();
00063
00070
DOMString color()
const;
00071
00075
void setColor(
const DOMString & );
00076
00084
DOMString face()
const;
00085
00089
void setFace(
const DOMString & );
00090
00098
long getSize()
const;
00099
00103
void setSize(
long );
00104
00108
DOMString size()
const KDE_DEPRECATED;
00109
00113
void setSize(
const DOMString & ) KDE_DEPRECATED;
00114 };
00115
00116
00117
00126 class KHTML_EXPORT HTMLCollection
00127 {
00128
friend class HTMLDocument;
00129
friend class HTMLSelectElement;
00130
friend class HTMLImageElement;
00131
friend class HTMLMapElement;
00132
friend class HTMLTableElement;
00133
friend class HTMLTableRowElement;
00134
friend class HTMLTableSectionElement;
00135
friend class HTMLLayerElement;
00136
friend class HTMLElement;
00137
00138
public:
00139 HTMLCollection();
00140 HTMLCollection(
const HTMLCollection &other);
00141
protected:
00142 HTMLCollection(NodeImpl *base,
int type);
00143
public:
00144
00145 HTMLCollection & operator = (
const HTMLCollection &other);
00146
00147 ~HTMLCollection();
00148
00153
unsigned long length()
const;
00154
00167
Node item (
unsigned long index )
const;
00168
00185
Node namedItem (
const DOMString &name )
const;
00186
00191
Node base()
const;
00192 HTMLCollectionImpl *handle()
const;
00193
bool isNull()
const;
00194
00195
Node firstItem()
const;
00196
Node nextItem()
const;
00197
00198
Node nextNamedItem(
const DOMString &name )
const;
00199
00200
protected:
00201 HTMLCollectionImpl *impl;
00202 };
00203
00204
class KHTML_EXPORT HTMLFormCollection :
public HTMLCollection
00205 {
00206
friend class HTMLFormElement;
00207
protected:
00208 HTMLFormCollection(NodeImpl *base);
00209 };
00210
00211 }
00212
00213
#endif