/***************************************************************************
                            kde_StyleSheetList.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_StyleSheetList.h"
}

#include <dom/css_stylesheet.h>

class StyleSheetListBridge : public DOM::StyleSheetList
{
public:
	StyleSheetListBridge() : StyleSheetList() {}
	StyleSheetListBridge(const StyleSheetList& other) : StyleSheetList(other) {}
	~StyleSheetListBridge() {}
};

kde_StyleSheetList * kde_new_StyleSheetList(){
	return (kde_StyleSheetList *) new StyleSheetListBridge();
}
kde_StyleSheetList * kde_new_StyleSheetList1(kde_StyleSheetList* other){
	return (kde_StyleSheetList *) new StyleSheetListBridge((DOM::StyleSheetList&)* (DOM::StyleSheetList*)other);
}
void kde_del_StyleSheetList( kde_StyleSheetList* p ){
	delete (StyleSheetListBridge*) p;
}
unsigned long kde_StyleSheetList_length( kde_StyleSheetList* instPointer){
	return (unsigned long) ((StyleSheetListBridge*)instPointer)->length();
}
kde_StyleSheet* kde_StyleSheetList_item( kde_StyleSheetList* instPointer,unsigned long index){
	return (kde_StyleSheet*)new DOM::StyleSheet(((StyleSheetListBridge*)instPointer)->item((unsigned long)index));
}
//kde_StyleSheetListImpl* kde_StyleSheetList_handle( kde_StyleSheetList* instPointer){
//	return (kde_StyleSheetListImpl*) ((StyleSheetListBridge*)instPointer)->handle();
//}
int kde_StyleSheetList_isNull( kde_StyleSheetList* instPointer){
	return (int) ((StyleSheetListBridge*)instPointer)->isNull();
}
