• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KHTML

  • khtml
  • dom
html_document.h
Go to the documentation of this file.
1/*
2 * This file is part of the DOM implementation for KDE.
3 *
4 * Copyright 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 <khtml_export.h>
34
35#include <dom/dom_doc.h>
36#include <dom/dom_string.h>
37
38class KHTMLView;
39class KHTMLPart;
40
41namespace DOM {
42
43class HTMLDocumentImpl;
44class DOMImplementation;
45class HTMLCollection;
46class NodeList;
47class Element;
48class HTMLElement;
49
73class KHTML_EXPORT HTMLDocument : public Document
74{
75 friend class ::KHTMLView;
76 friend class ::KHTMLPart;
77 friend class DOMImplementation;
78public:
79 HTMLDocument();
85 HTMLDocument(KHTMLView *parent);
86 HTMLDocument(const HTMLDocument &other);
87 HTMLDocument(const Node &other) : Document(false)
88 {(*this)=other;}
89protected:
90 HTMLDocument(HTMLDocumentImpl *impl);
91public:
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
DOM::DOMImplementation
The DOMImplementation interface provides a number of methods for performing operations that are indep...
Definition: dom_doc.h:78
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:44
DOM::Document
The Document interface represents the entire HTML or XML document.
Definition: dom_doc.h:246
DOM::HTMLCollection
An HTMLCollection is a list of nodes.
Definition: html_misc.h:131
DOM::HTMLDocument
An HTMLDocument is the root of the HTML hierarchy and holds the entire content.
Definition: html_document.h:74
DOM::HTMLDocument::HTMLDocument
HTMLDocument(const Node &other)
Definition: html_document.h:87
DOM::HTMLElement
All HTML element interfaces derive from this class.
Definition: html_element.h:70
DOM::NodeList
The NodeList interface provides the abstraction of an ordered collection of nodes,...
Definition: dom_node.h:964
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:271
KHTMLPart
This class is khtml's main class.
Definition: khtml_part.h:207
KHTMLView
Renders and displays HTML in a QScrollArea.
Definition: khtmlview.h:93
dom_doc.h
dom_string.h
khtml_export.h
DOM
This library provides a full-featured HTML parser and widget.
Definition: design.h:55
open
int open(const QString &pathname, int flags, mode_t mode)
close
KAction * close(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal