KHtml

dom_xml.h
1 /*
2  * This file is part of the DOM implementation for KDE.
3  *
4  * Copyright 1999 Lars Knoll ([email protected])
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  * https://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_XML_h
30 #define _DOM_XML_h
31 
32 #include <dom/dom_text.h>
33 #include <dom/css_stylesheet.h>
34 
35 namespace DOM
36 {
37 
38 class CDATASectionImpl;
39 class EntityImpl;
40 class EntityReferenceImpl;
41 class NotationImpl;
42 class ProcessingInstructionImpl;
43 
65 class KHTML_EXPORT CDATASection : public Text
66 {
67  friend class Document;
68 public:
69  CDATASection();
70  CDATASection(const CDATASection &other);
71  CDATASection(const Node &other) : Text()
72  {
73  (*this) = other;
74  }
75 
76  CDATASection &operator = (const Node &other);
77  CDATASection &operator = (const CDATASection &other);
78 
79  ~CDATASection();
80 protected:
81  CDATASection(CDATASectionImpl *i);
82 };
83 
84 class DOMString;
85 
125 class KHTML_EXPORT Entity : public Node
126 {
127 public:
128  Entity();
129  Entity(const Entity &other);
130  Entity(const Node &other) : Node()
131  {
132  (*this) = other;
133  }
134 
135  Entity &operator = (const Node &other);
136  Entity &operator = (const Entity &other);
137 
138  ~Entity();
139 
145  DOMString publicId() const;
146 
152  DOMString systemId() const;
153 
159  DOMString notationName() const;
160 protected:
161  Entity(EntityImpl *i);
162 };
163 
190 class KHTML_EXPORT EntityReference : public Node
191 {
192  friend class Document;
193 public:
194  EntityReference();
195  EntityReference(const EntityReference &other);
196  EntityReference(const Node &other) : Node()
197  {
198  (*this) = other;
199  }
200 
201  EntityReference &operator = (const Node &other);
202  EntityReference &operator = (const EntityReference &other);
203 
204  ~EntityReference();
205 protected:
206  EntityReference(EntityReferenceImpl *i);
207 };
208 
209 class DOMString;
210 
226 class KHTML_EXPORT Notation : public Node
227 {
228 public:
229  Notation();
230  Notation(const Notation &other);
231  Notation(const Node &other) : Node()
232  {
233  (*this) = other;
234  }
235 
236  Notation &operator = (const Node &other);
237  Notation &operator = (const Notation &other);
238 
239  ~Notation();
240 
246  DOMString publicId() const;
247 
253  DOMString systemId() const;
254 protected:
255  Notation(NotationImpl *i);
256 };
257 
264 class KHTML_EXPORT ProcessingInstruction : public Node
265 {
266  friend class Document;
267 public:
270  ProcessingInstruction(const Node &other) : Node()
271  {
272  (*this) = other;
273  }
274 
275  ProcessingInstruction &operator = (const Node &other);
276  ProcessingInstruction &operator = (const ProcessingInstruction &other);
277 
279 
286  DOMString target() const;
287 
294  DOMString data() const;
295 
302  void setData(const DOMString &);
303 
310  StyleSheet sheet() const;
311 
312 protected:
313  ProcessingInstruction(ProcessingInstructionImpl *i);
314 };
315 
316 } //namespace
317 #endif
The ProcessingInstruction interface represents a "processing instruction", used in XML as a way to ke...
Definition: dom_xml.h:264
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:278
This interface represents an entity, either parsed or unparsed, in an XML document.
Definition: dom_xml.h:125
EntityReference objects may be inserted into the structure model when an entity reference is in the s...
Definition: dom_xml.h:190
The Text interface represents the textual content (termed character data in XML) of an Element or At...
Definition: dom_text.h:273
This class implements the basic string we use in the DOM.
Definition: dom_string.h:44
CDATA sections are used to escape blocks of text containing characters that would otherwise be regard...
Definition: dom_xml.h:65
The Document interface represents the entire HTML or XML document.
Definition: dom_doc.h:246
This library provides a full-featured HTML parser and widget.
The StyleSheet interface is the abstract base interface for any type of style sheet.
This interface represents a notation declared in the DTD.
Definition: dom_xml.h:226
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jul 4 2020 22:46:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.