html_documentimpl.h [plain text]
#ifndef HTML_DOCUMENTIMPL_H
#define HTML_DOCUMENTIMPL_H
#include "xml/dom_docimpl.h"
#include "misc/loader_client.h"
class KHTMLView;
class QString;
namespace DOM {
class HTMLElementImpl;
class HTMLDocumentImpl : public DOM::DocumentImpl, public khtml::CachedObjectClient
{
Q_OBJECT
public:
HTMLDocumentImpl(DOMImplementationImpl *_implementation, KHTMLView *v = 0);
~HTMLDocumentImpl();
virtual bool isHTMLDocument() const { return true; }
virtual ElementImpl *documentElement() const;
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
void setBody(HTMLElementImpl *_body, int& exceptioncode);
virtual khtml::Tokenizer *createTokenizer();
virtual bool childAllowed( NodeImpl *newChild );
virtual ElementImpl *createElement ( const DOMString &tagName, int &exceptioncode );
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;
protected slots:
void slotHistoryChanged();
private:
QDict<char> namedImageAndFormCounts;
#if APPLE_CHANGES
DOMString m_policyBaseURL;
#endif
};
};
#endif