/***************************************************************************
                            kde_HTMLCollection.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_HTMLCollection.h"
}

#include <dom/html_misc.h>

class HTMLCollectionBridge : public DOM::HTMLCollection
{
public:
	HTMLCollectionBridge() : HTMLCollection() {}
	HTMLCollectionBridge(const HTMLCollection& other) : HTMLCollection(other) {}
	~HTMLCollectionBridge() {}
};

kde_HTMLCollection * kde_new_HTMLCollection(){
	return (kde_HTMLCollection *) new HTMLCollectionBridge();
}
kde_HTMLCollection * kde_new_HTMLCollection1(kde_HTMLCollection* other){
	return (kde_HTMLCollection *) new HTMLCollectionBridge((DOM::HTMLCollection&)* (DOM::HTMLCollection*)other);
}
void kde_del_HTMLCollection( kde_HTMLCollection* p ){
	delete (HTMLCollectionBridge*) p;
}
unsigned long kde_HTMLCollection_length( kde_HTMLCollection* instPointer){
	return (unsigned long) ((HTMLCollectionBridge*)instPointer)->length();
}
kde_DOMNode* kde_HTMLCollection_item( kde_HTMLCollection* instPointer,unsigned long index){
	return (kde_DOMNode*)new DOM::Node(((HTMLCollectionBridge*)instPointer)->item((unsigned long)index));
}
kde_DOMNode* kde_HTMLCollection_namedItem( kde_HTMLCollection* instPointer,kde_DOMString* name){
	return (kde_DOMNode*)new DOM::Node(((HTMLCollectionBridge*)instPointer)->namedItem((DOM::DOMString&)* (DOM::DOMString*)name));
}
kde_DOMNode* kde_HTMLCollection_base( kde_HTMLCollection* instPointer){
	return (kde_DOMNode*)new DOM::Node(((HTMLCollectionBridge*)instPointer)->base());
}
//kde_HTMLCollectionImpl* kde_HTMLCollection_handle( kde_HTMLCollection* instPointer){
//	return (kde_HTMLCollectionImpl*) ((HTMLCollectionBridge*)instPointer)->handle();
//}
int kde_HTMLCollection_isNull( kde_HTMLCollection* instPointer){
	return (int) ((HTMLCollectionBridge*)instPointer)->isNull();
}
kde_DOMNode* kde_HTMLCollection_firstItem( kde_HTMLCollection* instPointer){
	return (kde_DOMNode*)new DOM::Node(((HTMLCollectionBridge*)instPointer)->firstItem());
}
kde_DOMNode* kde_HTMLCollection_nextItem( kde_HTMLCollection* instPointer){
	return (kde_DOMNode*)new DOM::Node(((HTMLCollectionBridge*)instPointer)->nextItem());
}
kde_DOMNode* kde_HTMLCollection_nextNamedItem( kde_HTMLCollection* instPointer,kde_DOMString* name){
	return (kde_DOMNode*)new DOM::Node(((HTMLCollectionBridge*)instPointer)->nextNamedItem((DOM::DOMString&)* (DOM::DOMString*)name));
}
