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

tdehtml

  • tdehtml
  • dom
dom_doc.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#ifndef _DOM_Document_h_
30#define _DOM_Document_h_
31
32#include <dom/dom_node.h>
33#include <dom/css_stylesheet.h>
34
35class TDEHTMLView;
36class TDEHTMLPart;
37
38namespace DOM {
39
40class DOMString;
41class DocumentType;
42class NodeList;
43class CDATASection;
44class Comment;
45class DocumentFragment;
46class Text;
47class DOMImplementation;
48class Element;
49class Attr;
50class EntityReference;
51class ProcessingInstruction;
52class DocumentImpl;
53class Range;
54class NodeIterator;
55class TreeWalker;
56class NodeFilter;
57class DOMImplementationImpl;
58class DocumentTypeImpl;
59class Event;
60class AbstractView;
61class CSSStyleDeclaration;
62class HTMLElementImpl;
63class HTMLFrameElement;
64class HTMLElementImpl;
65class HTMLIFrameElement;
66class HTMLObjectElement;
67class HTMLDocument;
68
77class TDEHTML_EXPORT DOMImplementation
78{
79 friend class Document;
80public:
81 DOMImplementation();
82 DOMImplementation(const DOMImplementation &other);
83
84 DOMImplementation & operator = (const DOMImplementation &other);
85 ~DOMImplementation();
86
103 bool hasFeature ( const DOMString &feature, const DOMString &version );
104
130 DocumentType createDocumentType ( const DOMString &qualifiedName,
131 const DOMString &publicId,
132 const DOMString &systemId );
133
164 Document createDocument ( const DOMString &namespaceURI,
165 const DOMString &qualifiedName,
166 const DocumentType &doctype );
167
182 DOMImplementation getInterface(const DOMString &feature) const;
183
200 CSSStyleSheet createCSSStyleSheet(const DOMString &title, const DOMString &media);
201
217 HTMLDocument createHTMLDocument(const DOMString& title);
218
223 DOMImplementationImpl *handle() const;
224 bool isNull() const;
225
226protected:
227 DOMImplementation(DOMImplementationImpl *i);
228 DOMImplementationImpl *impl;
229};
230
245class TDEHTML_EXPORT Document : public Node
246{
247 friend class ::TDEHTMLView;
248 friend class ::TDEHTMLPart;
249 friend class AbstractView;
250 friend class DOMImplementation;
251 friend class HTMLFrameElement;
252 friend class HTMLIFrameElement;
253 friend class HTMLObjectElement;
254
255public:
256 Document();
261 Document(bool);
262 Document(const Document &other);
263 Document(const Node &other) : Node()
264 {(*this)=other;}
265
266 Document & operator = (const Node &other);
267 Document & operator = (const Document &other);
268
269 ~Document();
270
280 DocumentType doctype() const;
281
288 DOMImplementation implementation() const;
289
296 Element documentElement() const;
297
316 Element createElement ( const DOMString &tagName );
317
336 Element createElementNS( const DOMString &namespaceURI,
337 const DOMString &qualifiedName );
338
345 DocumentFragment createDocumentFragment ( );
346
355 Text createTextNode ( const DOMString &data );
356
366 Comment createComment ( const DOMString &data );
367
381 CDATASection createCDATASection ( const DOMString &data );
382
401 ProcessingInstruction createProcessingInstruction ( const DOMString &target,
402 const DOMString &data );
403
418 Attr createAttribute ( const DOMString &name );
419
448 Attr createAttributeNS( const DOMString &namespaceURI,
449 const DOMString &qualifiedName );
450
466 EntityReference createEntityReference ( const DOMString &name );
467
481 Element getElementById ( const DOMString &elementId ) const;
482
498 NodeList getElementsByTagName ( const DOMString &tagname );
499
516 NodeList getElementsByTagNameNS( const DOMString &namespaceURI,
517 const DOMString &localName );
518
612 Node importNode( const Node & importedNode, bool deep );
613
618 bool isHTMLDocument() const;
619
631 Range createRange();
632
660 NodeIterator createNodeIterator(Node root, unsigned long whatToShow,
661 NodeFilter filter,
662 bool entityReferenceExpansion);
663
694 TreeWalker createTreeWalker(Node root, unsigned long whatToShow,
695 NodeFilter filter,
696 bool entityReferenceExpansion);
697
725 Event createEvent(const DOMString &eventType);
726
733 AbstractView defaultView() const;
734
745 StyleSheetList styleSheets() const;
746
752 DOMString preferredStylesheetSet();
753 DOMString selectedStylesheetSet();
754 void setSelectedStylesheetSet(const DOMString& aString);
755
771 void addStyleSheet(const StyleSheet &sheet);
772
786 void removeStyleSheet(const StyleSheet &sheet);
787
791 TDEHTMLView *view() const;
792
807 CSSStyleDeclaration getOverrideStyle(const Element &elt,
808 const DOMString &pseudoElt);
809
819 bool async() const;
820
831 void setAsync( bool );
832
833
843 void abort();
844
881 void load( const DOMString &uri );
882
902 void loadXML( const DOMString &source );
903
913 bool designMode() const;
914
922 void setDesignMode(bool enable);
923
929 DOMString completeURL(const DOMString& url);
930
931 DOMString toString() const;
932
939 void updateRendering();
940
941 Document( DocumentImpl *i);
942protected:
943
944 friend class Node;
945};
946
947class DocumentFragmentImpl;
948
991class TDEHTML_EXPORT DocumentFragment : public Node
992{
993 friend class Document;
994 friend class HTMLElementImpl;
995 friend class Range;
996
997public:
998 DocumentFragment();
999 DocumentFragment(const DocumentFragment &other);
1000 DocumentFragment(const Node &other) : Node()
1001 {(*this)=other;}
1002
1003 DocumentFragment & operator = (const Node &other);
1004 DocumentFragment & operator = (const DocumentFragment &other);
1005
1006 ~DocumentFragment();
1007
1008protected:
1009 DocumentFragment(DocumentFragmentImpl *i);
1010};
1011
1012class NamedNodeMap;
1013class DOMString;
1014
1028class TDEHTML_EXPORT DocumentType : public Node
1029{
1030 friend class Document;
1031 friend class DOMImplementation;
1032public:
1033 DocumentType();
1034 DocumentType(const DocumentType &other);
1035
1036 DocumentType(const Node &other) : Node()
1037 {(*this)=other;}
1038 DocumentType & operator = (const Node &other);
1039 DocumentType & operator = (const DocumentType &other);
1040
1041 ~DocumentType();
1042
1048 DOMString name() const;
1049
1064 NamedNodeMap entities() const;
1065
1075 NamedNodeMap notations() const;
1076
1082 DOMString publicId() const;
1083
1089 DOMString systemId() const;
1090
1100 DOMString internalSubset() const;
1101
1102protected:
1103 DocumentType(DocumentTypeImpl *impl);
1104};
1105
1106} //namespace
1107#endif
DOM::AbstractView
Introduced in DOM Level 2.
Definition: dom2_views.h:41
DOM::Attr
The Attr interface represents an attribute in an Element object.
Definition: dom_element.h:90
DOM::CDATASection
CDATA sections are used to escape blocks of text containing characters that would otherwise be regard...
Definition: dom_xml.h:67
DOM::CSSStyleDeclaration
The CSSStyleDeclaration interface represents a single CSS declaration block .
Definition: css_value.h:61
DOM::CSSStyleSheet
The CSSStyleSheet interface is a concrete interface used to represent a CSS style sheet i....
Definition: css_stylesheet.h:208
DOM::Comment
This represents the content of a comment, i.e., all the characters between the starting ' <!...
Definition: dom_text.h:224
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::DocumentFragment
DocumentFragment is a "lightweight" or "minimal" Document object.
Definition: dom_doc.h:992
DOM::DocumentType
Each Document has a doctype attribute whose value is either null or a DocumentType object.
Definition: dom_doc.h:1029
DOM::Document
The Document interface represents the entire HTML or XML document.
Definition: dom_doc.h:246
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::EntityReference
EntityReference objects may be inserted into the structure model when an entity reference is in the s...
Definition: dom_xml.h:189
DOM::Event
Introduced in DOM Level 2.
Definition: dom2_events.h:111
DOM::HTMLDocument
An HTMLDocument is the root of the HTML hierarchy and holds the entire content.
Definition: html_document.h:74
DOM::HTMLFrameElement
Create a frame.
Definition: html_base.h:164
DOM::HTMLIFrameElement
Inline subwindows.
Definition: html_base.h:363
DOM::HTMLObjectElement
Generic embedded object.
Definition: html_object.h:259
DOM::NamedNodeMap
Objects implementing the NamedNodeMap interface are used to represent collections of nodes that can b...
Definition: dom_node.h:67
DOM::NodeFilter
Filters are objects that know how to "filter out" nodes.
Definition: dom2_traversal.h:185
DOM::NodeIterator
NodeIterators are used to step through a set of nodes, e.g.
Definition: dom2_traversal.h:61
DOM::NodeList
The NodeList interface provides the abstraction of an ordered collection of nodes,...
Definition: dom_node.h:932
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:275
DOM::ProcessingInstruction
The ProcessingInstruction interface represents a "processing instruction", used in XML as a way to ke...
Definition: dom_xml.h:260
DOM::StyleSheetList
The StyleSheetList interface provides the abstraction of an ordered collection of style sheets.
Definition: css_stylesheet.h:310
DOM::StyleSheet
The StyleSheet interface is the abstract base interface for any type of style sheet.
Definition: css_stylesheet.h:59
DOM::Text
The Text interface represents the textual content (termed character data in XML) of an Element or At...
Definition: dom_text.h:270
DOM::TreeWalker
TreeWalker objects are used to navigate a document tree or subtree using the view of the document def...
Definition: dom2_traversal.h:340
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.9.4
This website is maintained by Timothy Pearson.