html_document.h
/*
* This file is part of the DOM implementation for KDE.
*
* (C) 1999 Lars Knoll (knoll@kde.org)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
* This file includes excerpts from the Document Object Model (DOM)
* Level 1 Specification (Recommendation)
* http://www.w3.org/TR/REC-DOM-Level-1/
* Copyright © World Wide Web Consortium , (Massachusetts Institute of
* Technology , Institut National de Recherche en Informatique et en
* Automatique , Keio University ). All Rights Reserved.
*
*/
#ifndef HTML_DOCUMENT_H
#define HTML_DOCUMENT_H
#include <dom/dom_doc.h>
#include <dom/dom_string.h>
#include <kdelibs_export.h>
class KHTMLView;
class KHTMLPart;
namespace DOM {
class HTMLDocumentImpl;
class DOMImplementation;
class HTMLCollection;
class NodeList;
class Element;
class HTMLElement;
class KHTML_EXPORT HTMLDocument : public Document
{
friend class ::KHTMLView;
friend class ::KHTMLPart;
friend class DOMImplementation;
public:
HTMLDocument();
HTMLDocument(KHTMLView *parent);
HTMLDocument(const HTMLDocument &other);
HTMLDocument(const Node &other) : Document(false)
{(*this)=other;}
protected:
HTMLDocument(HTMLDocumentImpl *impl);
public:
HTMLDocument & operator = (const HTMLDocument &other);
HTMLDocument & operator = (const Node &other);
~HTMLDocument();
DOMString title() const;
void setTitle( const DOMString & );
DOMString referrer() const;
DOMString domain() const;
DOMString URL() const;
HTMLElement body() const;
void setBody(const HTMLElement &);
HTMLCollection images() const;
HTMLCollection applets() const;
HTMLCollection links() const;
HTMLCollection forms() const;
HTMLCollection layers() const;
HTMLCollection scripts() const;
HTMLCollection anchors() const;
DOMString cookie() const;
void setCookie( const DOMString & );
void open ( );
void close ( );
void write ( const DOMString &text );
void writeln ( const DOMString &text );
NodeList getElementsByName ( const DOMString &elementName );
DOMString completeURL( const DOMString& url) const;
DOMString lastModified() const;
HTMLCollection all() const;
};
} //namespace
#endif
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:274
DOM::HTMLDocument
An HTMLDocument is the root of the HTML hierarchy and holds the entire content.
Definition: html_document.h:73
KHTMLPart
This class is khtml's main class.
Definition: khtml_part.h:184
DOM::DOMImplementation
The DOMImplementation interface provides a number of methods for performing operations that are indep...
Definition: dom_doc.h:77
KHTMLView
Renders and displays HTML in a QScrollView.
Definition: khtmlview.h:78
DOM::HTMLCollection
An HTMLCollection is a list of nodes.
Definition: html_misc.h:126
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:43
DOM::Document
The Document interface represents the entire HTML or XML document.
Definition: dom_doc.h:245
DOM::NodeList
The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented.
Definition: dom_node.h:931
DOM::HTMLElement
All HTML element interfaces derive from this class.
Definition: html_element.h:69

KDE Home | KDE Accessibility Home | Description of Access Keys