khtml Library API Documentation

dom_xml.h

00001 /*
00002  * This file is part of the DOM implementation for KDE.
00003  *
00004  * (C) 1999 Lars Knoll (knoll@kde.org)
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Library General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Library General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Library General Public License
00017  * along with this library; see the file COPYING.LIB.  If not, write to
00018  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00019  * Boston, MA 02111-1307, USA.
00020  *
00021  * This file includes excerpts from the Document Object Model (DOM)
00022  * Level 1 Specification (Recommendation)
00023  * http://www.w3.org/TR/REC-DOM-Level-1/
00024  * Copyright © World Wide Web Consortium , (Massachusetts Institute of
00025  * Technology , Institut National de Recherche en Informatique et en
00026  * Automatique , Keio University ). All Rights Reserved.
00027  *
00028  * $Id: dom_xml.h,v 1.10 2001/05/28 14:30:27 pmk Exp $
00029  */
00030 #ifndef _DOM_XML_h
00031 #define _DOM_XML_h
00032 
00033 #include <dom/dom_text.h>
00034 #include <dom/css_stylesheet.h>
00035 
00036 namespace DOM {
00037 
00038 class CDATASectionImpl;
00039 class EntityImpl;
00040 class EntityReferenceImpl;
00041 class NotationImpl;
00042 class ProcessingInstructionImpl;
00043 
00044 
00045 
00067 class CDATASection : public Text
00068 {
00069     friend class Document;
00070 public:
00071     CDATASection();
00072     CDATASection(const CDATASection &other);
00073     CDATASection(const Node &other) : Text()
00074          {(*this)=other;}
00075 
00076     CDATASection & operator = (const Node &other);
00077     CDATASection & operator = (const CDATASection &other);
00078 
00079     ~CDATASection();
00080 protected:
00081     CDATASection(CDATASectionImpl *i);
00082 };
00083 
00084 class DOMString;
00085 
00125 class Entity : public Node
00126 {
00127 public:
00128     Entity();
00129     Entity(const Entity &other);
00130     Entity(const Node &other) : Node()
00131          {(*this)=other;}
00132 
00133     Entity & operator = (const Node &other);
00134     Entity & operator = (const Entity &other);
00135 
00136     ~Entity();
00137 
00144     DOMString publicId() const;
00145 
00152     DOMString systemId() const;
00153 
00159     DOMString notationName() const;
00160 protected:
00161     Entity(EntityImpl *i);
00162 };
00163 
00164 
00191 class EntityReference : public Node
00192 {
00193     friend class Document;
00194 public:
00195     EntityReference();
00196     EntityReference(const EntityReference &other);
00197     EntityReference(const Node &other) : Node()
00198          {(*this)=other;}
00199 
00200     EntityReference & operator = (const Node &other);
00201     EntityReference & operator = (const EntityReference &other);
00202 
00203     ~EntityReference();
00204 protected:
00205     EntityReference(EntityReferenceImpl *i);
00206 };
00207 
00208 class DOMString;
00209 
00225 class Notation : public Node
00226 {
00227 public:
00228     Notation();
00229     Notation(const Notation &other);
00230     Notation(const Node &other) : Node()
00231          {(*this)=other;}
00232 
00233     Notation & operator = (const Node &other);
00234     Notation & operator = (const Notation &other);
00235 
00236     ~Notation();
00237 
00243     DOMString publicId() const;
00244 
00250     DOMString systemId() const;
00251 protected:
00252     Notation(NotationImpl *i);
00253 };
00254 
00255 
00262 class ProcessingInstruction : public Node
00263 {
00264     friend class Document;
00265 public:
00266     ProcessingInstruction();
00267     ProcessingInstruction(const ProcessingInstruction &other);
00268     ProcessingInstruction(const Node &other) : Node()
00269          {(*this)=other;}
00270 
00271     ProcessingInstruction & operator = (const Node &other);
00272     ProcessingInstruction & operator = (const ProcessingInstruction &other);
00273 
00274     ~ProcessingInstruction();
00275 
00282     DOMString target() const;
00283 
00290     DOMString data() const;
00291 
00298     void setData( const DOMString & );
00299 
00306     StyleSheet sheet() const;
00307 
00308 protected:
00309     ProcessingInstruction(ProcessingInstructionImpl *i);
00310 };
00311 
00312 }; //namespace
00313 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:22:36 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001