• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KHTML

html_document.h

Go to the documentation of this file.
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., 51 Franklin Street, Fifth Floor,
00019  * Boston, MA 02110-1301, 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  */
00029 
00030 #ifndef HTML_DOCUMENT_H
00031 #define HTML_DOCUMENT_H
00032 
00033 #include <dom/dom_doc.h>
00034 #include <dom/dom_string.h>
00035 
00036 #include <kdelibs_export.h>
00037 
00038 class KHTMLView;
00039 class KHTMLPart;
00040 
00041 namespace DOM {
00042 
00043 class HTMLDocumentImpl;
00044 class DOMImplementation;
00045 class HTMLCollection;
00046 class NodeList;
00047 class Element;
00048 class HTMLElement;
00049 
00073 class KHTML_EXPORT HTMLDocument : public Document
00074 {
00075     friend class ::KHTMLView;
00076     friend class ::KHTMLPart;
00077     friend class DOMImplementation;
00078 public:
00079     HTMLDocument();
00085     HTMLDocument(KHTMLView *parent);
00086     HTMLDocument(const HTMLDocument &other);
00087     HTMLDocument(const Node &other) : Document(false)
00088          {(*this)=other;}
00089 protected:
00090     HTMLDocument(HTMLDocumentImpl *impl);
00091 public:
00092 
00093     HTMLDocument & operator = (const HTMLDocument &other);
00094     HTMLDocument & operator = (const Node &other);
00095 
00096     ~HTMLDocument();
00097 
00103     DOMString title() const;
00104 
00108     void setTitle( const DOMString & );
00109 
00115     DOMString referrer() const;
00116 
00123     DOMString domain() const;
00124 
00128     DOMString URL() const;
00129 
00137     HTMLElement body() const;
00138 
00142     void setBody(const HTMLElement &);
00143 
00150     HTMLCollection images() const;
00151 
00158     HTMLCollection applets() const;
00159 
00166     HTMLCollection links() const;
00167 
00172     HTMLCollection forms() const;
00173 
00178     HTMLCollection layers() const;
00179 
00184     HTMLCollection scripts() const;
00185 
00195     HTMLCollection anchors() const;
00196 
00205     DOMString cookie() const;
00206 
00210     void setCookie( const DOMString & );
00211 
00227     void open (  );
00228 
00236     void close (  );
00237 
00249     void write ( const DOMString &text );
00250 
00262     void writeln ( const DOMString &text );
00263 
00274     NodeList getElementsByName ( const DOMString &elementName );
00275 
00283     DOMString completeURL( const DOMString& url) const;
00284 
00290     DOMString lastModified() const;
00291 
00299     HTMLCollection all() const;
00300 };
00301 
00302 } //namespace
00303 
00304 #endif

KHTML

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal