html_documentimpl.h [plain text]
#ifndef HTML_DOCUMENTIMPL_H
#define HTML_DOCUMENTIMPL_H
#include "xml/dom_docimpl.h"
#include "misc/loader_client.h"
#include "html/html_miscimpl.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 &);
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);
HTMLCollectionImpl::CollectionInfo *collectionInfo(int type) { return m_collection_info+type; }
protected:
HTMLElementImpl *bodyElement;
HTMLElementImpl *htmlElement;
protected slots:
void slotHistoryChanged();
private:
HTMLCollectionImpl::CollectionInfo m_collection_info[HTMLCollectionImpl::LAST_TYPE];
QDict<char> namedImageAndFormCounts;
};
};
#endif