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
00030
#ifndef HTML_DOCUMENT_H
00031
#define HTML_DOCUMENT_H
00032
00033
#include <dom/dom_doc.h>
00034
#include <dom/dom_string.h>
00035
00036
#include <kdelibs_export.h>
00037
00038
class KHTMLView;
00039
class KHTMLPart;
00040
00041
namespace DOM {
00042
00043
class HTMLDocumentImpl;
00044
class DOMImplementation;
00045
class HTMLCollection;
00046
class NodeList;
00047
class Element;
00048
class HTMLElement;
00049
00073 class KHTML_EXPORT HTMLDocument :
public Document
00074 {
00075
friend class ::KHTMLView;
00076
friend class ::KHTMLPart;
00077
friend class DOMImplementation;
00078
public:
00079 HTMLDocument();
00085 HTMLDocument(
KHTMLView *parent);
00086 HTMLDocument(
const HTMLDocument &other);
00087 HTMLDocument(
const Node &other) :
Document(
false)
00088 {(*this)=other;}
00089
protected:
00090 HTMLDocument(HTMLDocumentImpl *impl);
00091
public:
00092
00093 HTMLDocument & operator = (
const HTMLDocument &other);
00094 HTMLDocument & operator = (
const Node &other);
00095
00096 ~HTMLDocument();
00097
00103
DOMString title()
const;
00104
00108
void setTitle(
const DOMString & );
00109
00115
DOMString referrer()
const;
00116
00123
DOMString domain()
const;
00124
00128
DOMString URL()
const;
00129
00137
HTMLElement body()
const;
00138
00142
void setBody(
const HTMLElement &);
00143
00150
HTMLCollection images()
const;
00151
00158
HTMLCollection applets()
const;
00159
00166
HTMLCollection links()
const;
00167
00172
HTMLCollection forms()
const;
00173
00178
HTMLCollection layers()
const;
00179
00189
HTMLCollection anchors()
const;
00190
00199
DOMString cookie()
const;
00200
00204
void setCookie(
const DOMString & );
00205
00221
void open ( );
00222
00230
void close ( );
00231
00243
void write (
const DOMString &text );
00244
00256
void writeln (
const DOMString &text );
00257
00268
NodeList getElementsByName (
const DOMString &elementName );
00269
00277
DOMString completeURL(
const DOMString& url)
const;
00278
00284
DOMString lastModified()
const;
00285
00293
HTMLCollection all()
const;
00294 };
00295
00296 }
00297
00298
#endif