/***************************************************************************
                            kde_CSSStyleSheet.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_CSSStyleSheet.h"
}

#include <dom/css_stylesheet.h>
#include <dom/css_rule.h>

class CSSStyleSheetBridge : public DOM::CSSStyleSheet
{
public:
	CSSStyleSheetBridge() : CSSStyleSheet() {}
	CSSStyleSheetBridge(const CSSStyleSheet& other) : CSSStyleSheet(other) {}
	CSSStyleSheetBridge(const StyleSheet& other) : CSSStyleSheet(other) {}
	~CSSStyleSheetBridge() {}
};

kde_CSSStyleSheet * kde_new_CSSStyleSheet(){
	return (kde_CSSStyleSheet *) new CSSStyleSheetBridge();
}
kde_CSSStyleSheet * kde_new_CSSStyleSheet1(kde_CSSStyleSheet* other){
	return (kde_CSSStyleSheet *) new CSSStyleSheetBridge((DOM::CSSStyleSheet&)* (DOM::CSSStyleSheet*)other);
}
kde_CSSStyleSheet * kde_new_CSSStyleSheet2(kde_StyleSheet* other){
	return (kde_CSSStyleSheet *) new CSSStyleSheetBridge((DOM::StyleSheet&)* (DOM::StyleSheet*)other);
}
void kde_del_CSSStyleSheet( kde_CSSStyleSheet* p ){
	delete (CSSStyleSheetBridge*) p;
}
kde_CSSRule* kde_CSSStyleSheet_ownerRule( kde_CSSStyleSheet* instPointer){
	return (kde_CSSRule*)new DOM::CSSRule(((CSSStyleSheetBridge*)instPointer)->ownerRule());
}
kde_CSSRuleList* kde_CSSStyleSheet_cssRules( kde_CSSStyleSheet* instPointer){
	return (kde_CSSRuleList*)new DOM::CSSRuleList(((CSSStyleSheetBridge*)instPointer)->cssRules());
}
unsigned long kde_CSSStyleSheet_insertRule( kde_CSSStyleSheet* instPointer,kde_DOMString* rule, unsigned long index){
	return (unsigned long) ((CSSStyleSheetBridge*)instPointer)->insertRule((DOM::DOMString&)* (DOM::DOMString*)rule, (unsigned long)index);
}
void kde_CSSStyleSheet_deleteRule( kde_CSSStyleSheet* instPointer,unsigned long index){
	((CSSStyleSheetBridge*)instPointer)->deleteRule((unsigned long)index);
	return;
}
