html_documentimpl.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
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 );
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 }
00094
00095 #endif
This file is part of the documentation for kdelibs Version 3.1.4.