/***************************************************************************
                            kde_HTMLElement.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_HTMLElement.h"
}

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

class HTMLElementBridge : public DOM::HTMLElement
{
public:
	HTMLElementBridge() : HTMLElement() {}
	HTMLElementBridge(const HTMLElement& other) : HTMLElement(other) {}
	HTMLElementBridge(const Node& other) : HTMLElement(other) {}
	~HTMLElementBridge() {}
};

kde_HTMLElement * kde_new_HTMLElement(){
	return (kde_HTMLElement *) new HTMLElementBridge();
}
kde_HTMLElement * kde_new_HTMLElement1(kde_HTMLElement* other){
	return (kde_HTMLElement *) new HTMLElementBridge((DOM::HTMLElement&)* (DOM::HTMLElement*)other);
}
kde_HTMLElement * kde_new_HTMLElement2(kde_DOMNode* other){
	return (kde_HTMLElement *) new HTMLElementBridge((DOM::Node&)* (DOM::Node*)other);
}
void kde_del_HTMLElement( kde_HTMLElement* p ){
	delete (HTMLElementBridge*) p;
}
kde_DOMString* kde_HTMLElement_id( kde_HTMLElement* instPointer){
	return (kde_DOMString*)new DOM::DOMString(((HTMLElementBridge*)instPointer)->id());
}
void kde_HTMLElement_setId( kde_HTMLElement* instPointer,kde_DOMString* arg1){
	((HTMLElementBridge*)instPointer)->setId((DOM::DOMString&)* (DOM::DOMString*)arg1);
	return;
}
kde_DOMString* kde_HTMLElement_title( kde_HTMLElement* instPointer){
	return (kde_DOMString*)new DOM::DOMString(((HTMLElementBridge*)instPointer)->title());
}
void kde_HTMLElement_setTitle( kde_HTMLElement* instPointer,kde_DOMString* arg1){
	((HTMLElementBridge*)instPointer)->setTitle((DOM::DOMString&)* (DOM::DOMString*)arg1);
	return;
}
kde_DOMString* kde_HTMLElement_lang( kde_HTMLElement* instPointer){
	return (kde_DOMString*)new DOM::DOMString(((HTMLElementBridge*)instPointer)->lang());
}
void kde_HTMLElement_setLang( kde_HTMLElement* instPointer,kde_DOMString* arg1){
	((HTMLElementBridge*)instPointer)->setLang((DOM::DOMString&)* (DOM::DOMString*)arg1);
	return;
}
kde_DOMString* kde_HTMLElement_dir( kde_HTMLElement* instPointer){
	return (kde_DOMString*)new DOM::DOMString(((HTMLElementBridge*)instPointer)->dir());
}
void kde_HTMLElement_setDir( kde_HTMLElement* instPointer,kde_DOMString* arg1){
	((HTMLElementBridge*)instPointer)->setDir((DOM::DOMString&)* (DOM::DOMString*)arg1);
	return;
}
kde_DOMString* kde_HTMLElement_className( kde_HTMLElement* instPointer){
	return (kde_DOMString*)new DOM::DOMString(((HTMLElementBridge*)instPointer)->className());
}
void kde_HTMLElement_setClassName( kde_HTMLElement* instPointer,kde_DOMString* arg1){
	((HTMLElementBridge*)instPointer)->setClassName((DOM::DOMString&)* (DOM::DOMString*)arg1);
	return;
}
kde_DOMString* kde_HTMLElement_innerHTML( kde_HTMLElement* instPointer){
	return (kde_DOMString*)new DOM::DOMString(((HTMLElementBridge*)instPointer)->innerHTML());
}
void kde_HTMLElement_setInnerHTML( kde_HTMLElement* instPointer,kde_DOMString* html){
	((HTMLElementBridge*)instPointer)->setInnerHTML((DOM::DOMString&)* (DOM::DOMString*)html);
	return;
}
kde_DOMString* kde_HTMLElement_innerText( kde_HTMLElement* instPointer){
	return (kde_DOMString*)new DOM::DOMString(((HTMLElementBridge*)instPointer)->innerText());
}
void kde_HTMLElement_setInnerText( kde_HTMLElement* instPointer,kde_DOMString* text){
	((HTMLElementBridge*)instPointer)->setInnerText((DOM::DOMString&)* (DOM::DOMString*)text);
	return;
}
kde_HTMLCollection* kde_HTMLElement_children( kde_HTMLElement* instPointer){
	return (kde_HTMLCollection*)new DOM::HTMLCollection(((HTMLElementBridge*)instPointer)->children());
}
void kde_HTMLElement_removeCSSProperty( kde_HTMLElement* instPointer,kde_DOMString* property){
	((HTMLElementBridge*)instPointer)->removeCSSProperty((DOM::DOMString&)* (DOM::DOMString*)property);
	return;
}
void kde_HTMLElement_addCSSProperty( kde_HTMLElement* instPointer,kde_DOMString* property, kde_DOMString* value){
	((HTMLElementBridge*)instPointer)->addCSSProperty((DOM::DOMString&)* (DOM::DOMString*)property, (DOM::DOMString&)* (DOM::DOMString*)value);
	return;
}
