Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
khtml
khtml
khtml
dom
html_document.h
1
/*
2
* This file is part of the DOM implementation for KDE.
3
*
4
* (C) 1999 Lars Knoll (knoll@kde.org)
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Library General Public
8
* License as published by the Free Software Foundation; either
9
* version 2 of the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Library General Public License for more details.
15
*
16
* You should have received a copy of the GNU Library General Public License
17
* along with this library; see the file COPYING.LIB. If not, write to
18
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19
* Boston, MA 02110-1301, USA.
20
*
21
* This file includes excerpts from the Document Object Model (DOM)
22
* Level 1 Specification (Recommendation)
23
* http://www.w3.org/TR/REC-DOM-Level-1/
24
* Copyright © World Wide Web Consortium , (Massachusetts Institute of
25
* Technology , Institut National de Recherche en Informatique et en
26
* Automatique , Keio University ). All Rights Reserved.
27
*
28
*/
29
30
#ifndef HTML_DOCUMENT_H
31
#define HTML_DOCUMENT_H
32
33
#include <dom/dom_doc.h>
34
#include <dom/dom_string.h>
35
36
#include <kdelibs_export.h>
37
38
class
KHTMLView
;
39
class
KHTMLPart
;
40
41
namespace
DOM {
42
43
class
HTMLDocumentImpl;
44
class
DOMImplementation;
45
class
HTMLCollection;
46
class
NodeList;
47
class
Element;
48
class
HTMLElement;
49
73
class
KHTML_EXPORT
HTMLDocument
:
public
Document
74
{
75
friend
class ::KHTMLView;
76
friend
class ::KHTMLPart;
77
friend
class
DOMImplementation
;
78
public
:
79
HTMLDocument
();
85
HTMLDocument
(
KHTMLView
*parent);
86
HTMLDocument
(
const
HTMLDocument
&other);
87
HTMLDocument
(
const
Node
&other) :
Document
(
false
)
88
{(*this)=other;}
89
protected
:
90
HTMLDocument
(HTMLDocumentImpl *impl);
91
public
:
92
93
HTMLDocument
& operator = (
const
HTMLDocument
&other);
94
HTMLDocument
& operator = (
const
Node
&other);
95
96
~
HTMLDocument
();
97
103
DOMString
title()
const
;
104
108
void
setTitle(
const
DOMString
& );
109
115
DOMString
referrer()
const
;
116
123
DOMString
domain()
const
;
124
128
DOMString
URL()
const
;
129
137
HTMLElement
body()
const
;
138
142
void
setBody(
const
HTMLElement
&);
143
150
HTMLCollection
images()
const
;
151
158
HTMLCollection
applets()
const
;
159
166
HTMLCollection
links()
const
;
167
172
HTMLCollection
forms()
const
;
173
178
HTMLCollection
layers()
const
;
179
184
HTMLCollection
scripts()
const
;
185
195
HTMLCollection
anchors()
const
;
196
205
DOMString
cookie()
const
;
206
210
void
setCookie(
const
DOMString
& );
211
227
void
open ( );
228
236
void
close ( );
237
249
void
write (
const
DOMString
&text );
250
262
void
writeln (
const
DOMString
&text );
263
274
NodeList
getElementsByName (
const
DOMString
&elementName );
275
283
DOMString
completeURL(
const
DOMString
& url)
const
;
284
290
DOMString
lastModified()
const
;
291
299
HTMLCollection
all()
const
;
300
};
301
302
}
//namespace
303
304
#endif
khtml
Skip menu "khtml"
Main Page
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
khtml
Skip menu "khtml"
arts
dcop
dnssd
interfaces
interface
library
kspeech
ktexteditor
kabc
kate
kcmshell
kdecore
kded
kdefx
kdeprint
kdesu
kdeui
kdoctools
khtml
kimgio
kinit
kio
bookmarks
httpfilter
kfile
kio
kioexec
kpasswdserver
kssl
kioslave
http
kjs
kmdi
kmdi
knewstuff
kparts
krandr
kresources
kspell2
kunittest
kutils
kwallet
libkmid
libkscreensaver