/***************************************************************************
                            kde_HTMLDocument.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "kde_HTMLDocument.h"
}

#include <dom/html_document.h>
#include <dom/html_misc.h>

class HTMLDocumentBridge : public DOM::HTMLDocument
{
public:
	HTMLDocumentBridge() : HTMLDocument() {}
	HTMLDocumentBridge(KHTMLView* parent) : HTMLDocument(parent) {}
	HTMLDocumentBridge(const HTMLDocument& other) : HTMLDocument(other) {}
	HTMLDocumentBridge(const Node& other) : HTMLDocument(other) {}
	~HTMLDocumentBridge() {}
};

kde_HTMLDocument * kde_new_HTMLDocument(){
	return (kde_HTMLDocument *) new HTMLDocumentBridge();
}
kde_HTMLDocument * kde_new_HTMLDocument1(kde_KHTMLView* parent){
	return (kde_HTMLDocument *) new HTMLDocumentBridge((KHTMLView*)parent);
}
kde_HTMLDocument * kde_new_HTMLDocument2(kde_HTMLDocument* other){
	return (kde_HTMLDocument *) new HTMLDocumentBridge((DOM::HTMLDocument&)* (DOM::HTMLDocument*)other);
}
kde_HTMLDocument * kde_new_HTMLDocument3(kde_DOMNode* other){
	return (kde_HTMLDocument *) new HTMLDocumentBridge((DOM::Node&)* (DOM::Node*)other);
}
void kde_del_HTMLDocument( kde_HTMLDocument* p ){
	delete (HTMLDocumentBridge*) p;
}
kde_DOMString* kde_HTMLDocument_title( kde_HTMLDocument* instPointer){
	return (kde_DOMString*)new DOM::DOMString(((HTMLDocumentBridge*)instPointer)->title());
}
void kde_HTMLDocument_setTitle( kde_HTMLDocument* instPointer,kde_DOMString* arg1){
	((HTMLDocumentBridge*)instPointer)->setTitle((DOM::DOMString&)* (DOM::DOMString*)arg1);
	return;
}
kde_DOMString* kde_HTMLDocument_referrer( kde_HTMLDocument* instPointer){
	return (kde_DOMString*)new DOM::DOMString(((HTMLDocumentBridge*)instPointer)->referrer());
}
kde_DOMString* kde_HTMLDocument_domain( kde_HTMLDocument* instPointer){
	return (kde_DOMString*)new DOM::DOMString(((HTMLDocumentBridge*)instPointer)->domain());
}
kde_DOMString* kde_HTMLDocument_URL( kde_HTMLDocument* instPointer){
	return (kde_DOMString*)new DOM::DOMString(((HTMLDocumentBridge*)instPointer)->URL());
}
kde_HTMLElement* kde_HTMLDocument_body( kde_HTMLDocument* instPointer){
	return (kde_HTMLElement*)new DOM::HTMLElement(((HTMLDocumentBridge*)instPointer)->body());
}
void kde_HTMLDocument_setBody( kde_HTMLDocument* instPointer,kde_HTMLElement* arg1){
	((HTMLDocumentBridge*)instPointer)->setBody((DOM::HTMLElement&)* (DOM::HTMLElement*)arg1);
	return;
}
kde_HTMLCollection* kde_HTMLDocument_images( kde_HTMLDocument* instPointer){
	return (kde_HTMLCollection*)new DOM::HTMLCollection(((HTMLDocumentBridge*)instPointer)->images());
}
kde_HTMLCollection* kde_HTMLDocument_applets( kde_HTMLDocument* instPointer){
	return (kde_HTMLCollection*)new DOM::HTMLCollection(((HTMLDocumentBridge*)instPointer)->applets());
}
kde_HTMLCollection* kde_HTMLDocument_links( kde_HTMLDocument* instPointer){
	return (kde_HTMLCollection*)new DOM::HTMLCollection(((HTMLDocumentBridge*)instPointer)->links());
}
kde_HTMLCollection* kde_HTMLDocument_forms( kde_HTMLDocument* instPointer){
	return (kde_HTMLCollection*)new DOM::HTMLCollection(((HTMLDocumentBridge*)instPointer)->forms());
}
kde_HTMLCollection* kde_HTMLDocument_anchors( kde_HTMLDocument* instPointer){
	return (kde_HTMLCollection*)new DOM::HTMLCollection(((HTMLDocumentBridge*)instPointer)->anchors());
}
kde_DOMString* kde_HTMLDocument_cookie( kde_HTMLDocument* instPointer){
	return (kde_DOMString*)new DOM::DOMString(((HTMLDocumentBridge*)instPointer)->cookie());
}
void kde_HTMLDocument_setCookie( kde_HTMLDocument* instPointer,kde_DOMString* arg1){
	((HTMLDocumentBridge*)instPointer)->setCookie((DOM::DOMString&)* (DOM::DOMString*)arg1);
	return;
}
void kde_HTMLDocument_open( kde_HTMLDocument* instPointer){
	((HTMLDocumentBridge*)instPointer)->open();
	return;
}
void kde_HTMLDocument_close( kde_HTMLDocument* instPointer){
	((HTMLDocumentBridge*)instPointer)->close();
	return;
}
void kde_HTMLDocument_write( kde_HTMLDocument* instPointer,kde_DOMString* text){
	((HTMLDocumentBridge*)instPointer)->write((DOM::DOMString&)* (DOM::DOMString*)text);
	return;
}
void kde_HTMLDocument_writeln( kde_HTMLDocument* instPointer,kde_DOMString* text){
	((HTMLDocumentBridge*)instPointer)->writeln((DOM::DOMString&)* (DOM::DOMString*)text);
	return;
}
kde_DOMNodeList* kde_HTMLDocument_getElementsByName( kde_HTMLDocument* instPointer,kde_DOMString* elementName){
	return (kde_DOMNodeList*)new DOM::NodeList(((HTMLDocumentBridge*)instPointer)->getElementsByName((DOM::DOMString&)* (DOM::DOMString*)elementName));
}
kde_DOMString* kde_HTMLDocument_completeURL( kde_HTMLDocument* instPointer,kde_DOMString* url){
	return (kde_DOMString*)new DOM::DOMString(((HTMLDocumentBridge*)instPointer)->completeURL((DOM::DOMString&)* (DOM::DOMString*)url));
}
kde_DOMString* kde_HTMLDocument_lastModified( kde_HTMLDocument* instPointer){
	return (kde_DOMString*)new DOM::DOMString(((HTMLDocumentBridge*)instPointer)->lastModified());
}
kde_HTMLCollection* kde_HTMLDocument_all( kde_HTMLDocument* instPointer){
	return (kde_HTMLCollection*)new DOM::HTMLCollection(((HTMLDocumentBridge*)instPointer)->all());
}
