• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdehtml
 

tdehtml

  • tdehtml
  • 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 <tdelibs_export.h>
37
38class TDEHTMLView;
39class TDEHTMLPart;
40
41namespace DOM {
42
43class HTMLDocumentImpl;
44class DOMImplementation;
45class HTMLCollection;
46class NodeList;
47class Element;
48class HTMLElement;
49
73class TDEHTML_EXPORT HTMLDocument : public Document
74{
75 friend class ::TDEHTMLView;
76 friend class ::TDEHTMLPart;
77 friend class DOMImplementation;
78public:
79 HTMLDocument();
85 HTMLDocument(TDEHTMLView *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::Element
By far the vast majority of objects (apart from text) that authors encounter when traversing a docume...
Definition dom_element.h:211
DOM::HTMLCollection
An HTMLCollection is a list of nodes.
Definition html_misc.h:127
DOM::HTMLDocument::links
HTMLCollection links() const
A collection of all AREA elements and anchor ( A ) elements in a document with a value for the href a...
Definition html_document.cpp:161
DOM::HTMLDocument::close
void close()
Closes a document stream opened by open() and forces rendering.
Definition html_document.cpp:210
DOM::HTMLDocument::cookie
DOMString cookie() const
The cookies associated with this document.
Definition html_document.cpp:191
DOM::HTMLDocument::layers
HTMLCollection layers() const
A collection of all the layers of a document.
Definition html_document.cpp:173
DOM::HTMLDocument::writeln
void writeln(const DOMString &text)
Write a string of text followed by a newline character to a document stream opened by open() .
Definition html_document.cpp:222
DOM::HTMLDocument::domain
DOMString domain() const
The domain name of the server that served the document, or a null string if the server cannot be iden...
Definition html_document.cpp:109
DOM::HTMLDocument::applets
HTMLCollection applets() const
A collection of all the OBJECT elements that include applets and APPLET ( deprecated ) elements in a ...
Definition html_document.cpp:149
DOM::HTMLDocument::URL
DOMString URL() const
The absolute URI of the document.
Definition html_document.cpp:121
DOM::HTMLDocument::body
HTMLElement body() const
The element that contains the content for the document.
Definition html_document.cpp:127
DOM::HTMLDocument::referrer
DOMString referrer() const
Returns the URI of the page that linked to this page.
Definition html_document.cpp:96
DOM::HTMLDocument::images
HTMLCollection images() const
A collection of all the IMG elements in a document.
Definition html_document.cpp:143
DOM::HTMLDocument::getElementsByName
NodeList getElementsByName(const DOMString &elementName)
Returns the (possibly empty) collection of elements whose name value is given by elementName .
Definition html_document.cpp:228
DOM::HTMLDocument::forms
HTMLCollection forms() const
A collection of all the forms of a document.
Definition html_document.cpp:167
DOM::HTMLDocument::title
DOMString title() const
The title of a document as specified by the TITLE element in the head of the document.
Definition html_document.cpp:84
DOM::HTMLDocument::anchors
HTMLCollection anchors() const
A collection of all the anchor ( A ) elements in a document with a value for the name attribute.
Definition html_document.cpp:179
DOM::HTMLDocument::setCookie
void setCookie(const DOMString &)
see cookie
Definition html_document.cpp:197
DOM::HTMLDocument::lastModified
DOMString lastModified() const
Not part of the DOM.
Definition html_document.cpp:115
DOM::HTMLDocument::open
void open()
Note.
Definition html_document.cpp:204
DOM::HTMLDocument::completeURL
DOMString completeURL(const DOMString &url) const
not part of the DOM
Definition html_document.cpp:102
DOM::HTMLDocument::all
HTMLCollection all() const
Not part of the DOM.
Definition html_document.cpp:185
DOM::HTMLDocument::setBody
void setBody(const HTMLElement &)
see body
Definition html_document.cpp:133
DOM::HTMLDocument::scripts
HTMLCollection scripts() const
A collection of all the scripts in the document.
Definition html_document.cpp:155
DOM::HTMLDocument::write
void write(const DOMString &text)
Write a string of text to a document stream opened by open() .
Definition html_document.cpp:216
DOM::HTMLDocument::setTitle
void setTitle(const DOMString &)
see title
Definition html_document.cpp:90
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:932
TDEHTMLPart
This class is tdehtml's main class.
Definition tdehtml_part.h:184
TDEHTMLView
Renders and displays HTML in a TQScrollView.
Definition tdehtmlview.h:79
DOM
The Document Object Model (DOM) is divided into two parts, the COREDOM core DOM, specifying some core...
Definition design.h:57

tdehtml

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

tdehtml

Skip menu "tdehtml"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdehtml by doxygen 1.15.0
This website is maintained by Timothy Pearson.