html_documentimpl.h [plain text]
#ifndef HTML_DOCUMENTIMPL_H
#define HTML_DOCUMENTIMPL_H
#include "xml/dom_docimpl.h"
#include "misc/loader_client.h"
#include <qmap.h>
class KHTMLView;
class QString;
namespace DOM {
class HTMLCollection;
class NodeList;
class Element;
class HTMLElement;
class HTMLElementImpl;
class DOMString;
class CSSStyleSheetImpl;
class HTMLMapElementImpl;
class HTMLImageElementImpl;
class HTMLFormElementImpl;
class HTMLDocumentImpl : public DOM::DocumentImpl, public khtml::CachedObjectClient
{
Q_OBJECT
public:
HTMLDocumentImpl(DOMImplementationImpl *_implementation, KHTMLView *v = 0);
~HTMLDocumentImpl();
virtual bool isHTMLDocument() const { return true; }
DOMString referrer() const;
DOMString lastModified() const;
DOMString cookie() const;
void setCookie( const DOMString &);
#if APPLE_CHANGES
DOMString policyBaseURL() const { return m_policyBaseURL; }
void setPolicyBaseURL(const DOMString &s) { m_policyBaseURL = s; }
#endif
DOMString designMode() const;
void setDesignMode(const DOMString &);
void setBody(HTMLElementImpl *_body, int& exceptioncode);
virtual Tokenizer *createTokenizer();
virtual bool childAllowed( NodeImpl *newChild );
virtual ElementImpl *createElement ( const DOMString &tagName, int &exceptioncode );
HTMLMapElementImpl* getMap(const DOMString& url_);
virtual void determineParseMode( const QString &str );
void addNamedImageOrForm(const QString &name);
void removeNamedImageOrForm(const QString &name);
bool haveNamedImageOrForm(const QString &name);
protected:
HTMLElementImpl *bodyElement;
HTMLElementImpl *htmlElement;
friend class HTMLMapElementImpl;
friend class HTMLImageElementImpl;
QMap<QString,HTMLMapElementImpl*> mapMap;
protected slots:
void slotHistoryChanged();
private:
QDict<char> namedImageAndFormCounts;
#if APPLE_CHANGES
DOMString m_policyBaseURL;
#endif
};
};
#endif