| # khtml Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# html_documentimpl.h

    00001 /*
    00002  * This file is part of the DOM implementation for KDE.
    00003  *
    00004  * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    00005  *           (C) 1999 Antti Koivisto (koivisto@kde.org)
    00006  *
    00007  * This library is free software; you can redistribute it and/or
    00008  * modify it under the terms of the GNU Library General Public
    00009  * License as published by the Free Software Foundation; either
    00010  * version 2 of the License, or (at your option) any later version.
    00011  *
    00012  * This library is distributed in the hope that it will be useful,
    00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00015  * Library General Public License for more details.
    00016  *
    00017  * You should have received a copy of the GNU Library General Public License
    00018  * along with this library; see the file COPYING.LIB.  If not, write to
    00019  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00020  * Boston, MA 02111-1307, USA.
    00021  *
    00022  * $Id: html_documentimpl.h,v 1.65.2.3 2003/06/25 11:56:35 faure Exp $
    00023  */
    00024
    00025 #ifndef HTML_DOCUMENTIMPL_H
    00026 #define HTML_DOCUMENTIMPL_H
    00027
    00028 #include "xml/dom_docimpl.h"
    00029 #include "misc/loader_client.h"
    00030
    00031 #include <qmap.h>
    00032
    00033 class KHTMLView;
    00034 class QString;
    00035
    00036 namespace DOM {
    00037
    00038     class HTMLCollection;
    00039     class NodeList;
    00040     class Element;
    00041     class HTMLElement;
    00042     class HTMLElementImpl;
    00043     class DOMString;
    00044     class CSSStyleSheetImpl;
    00045     class HTMLMapElementImpl;
    00046
    00047 class HTMLDocumentImpl : public DOM::DocumentImpl, public khtml::CachedObjectClient
    00048 {
    00049     Q_OBJECT
    00050 public:
    00051     HTMLDocumentImpl(DOMImplementationImpl *_implementation, KHTMLView *v = 0);
    00052     ~HTMLDocumentImpl();
    00053
    00054     virtual bool isHTMLDocument() const { return true; }
    00055
    00056     DOMString referrer() const;
    00057     DOMString domain() const;
    00058     void setDomain( const DOMString &newDomain ); // not part of the DOM
    00059     DOMString lastModified() const;
    00060     DOMString cookie() const;
    00061     void setCookie( const DOMString &);
    00062
    00063     HTMLElementImpl *body();
    00064     void setBody(HTMLElementImpl *_body);
    00065
    00066     virtual Tokenizer *createTokenizer();
    00067
    00068     virtual bool childAllowed( NodeImpl *newChild );
    00069
    00070     virtual ElementImpl *createElement ( const DOMString &tagName, int* pExceptioncode );
    00071
    00072     HTMLMapElementImpl* getMap(const DOMString& url_);
    00073
    00074     virtual void determineParseMode( const QString &str );
    00075     virtual void close();
    00076
    00077 protected:
    00078     HTMLElementImpl *bodyElement;
    00079     HTMLElementImpl *htmlElement;
    00080     friend class HTMLMapElementImpl;
    00081     friend class HTMLImageElementImpl;
    00082     QMap<QString,HTMLMapElementImpl*> mapMap;
    00083
    00084 protected slots:
    00088     void slotHistoryChanged();
    00089 private:
    00090     mutable DOMString m_domain;
    00091 };
    00092
    00093 } //namespace
    00094
    00095 #endif

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 13:33:50 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001