/***************************************************************************
                            kde_StyleSheet.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_StyleSheet.h"
}

#include <dom/css_stylesheet.h>

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

kde_StyleSheet * kde_new_StyleSheet(){
	return (kde_StyleSheet *) new StyleSheetBridge();
}
kde_StyleSheet * kde_new_StyleSheet1(kde_StyleSheet* other){
	return (kde_StyleSheet *) new StyleSheetBridge((DOM::StyleSheet&)* (DOM::StyleSheet*)other);
}
void kde_del_StyleSheet( kde_StyleSheet* p ){
	delete (StyleSheetBridge*) p;
}
//kde_DOMString* kde_StyleSheet_type( kde_StyleSheet* instPointer){
//	return (kde_DOMString*) ((StyleSheetBridge*)instPointer)->type();
//}
int kde_StyleSheet_disabled( kde_StyleSheet* instPointer){
	return (int) ((StyleSheetBridge*)instPointer)->disabled();
}
void kde_StyleSheet_setDisabled( kde_StyleSheet* instPointer,int arg1){
	((StyleSheetBridge*)instPointer)->setDisabled((bool)arg1);
	return;
}
//kde_DOMNode* kde_StyleSheet_ownerNode( kde_StyleSheet* instPointer){
//	return (kde_DOMNode*) ((StyleSheetBridge*)instPointer)->ownerNode();
//}
kde_StyleSheet* kde_StyleSheet_parentStyleSheet( kde_StyleSheet* instPointer){
	return (kde_StyleSheet*)new DOM::StyleSheet(((StyleSheetBridge*)instPointer)->parentStyleSheet());
}
//kde_DOMString* kde_StyleSheet_href( kde_StyleSheet* instPointer){
//	return (kde_DOMString*) ((StyleSheetBridge*)instPointer)->href();
//}
//kde_DOMString* kde_StyleSheet_title( kde_StyleSheet* instPointer){
//	return (kde_DOMString*) ((StyleSheetBridge*)instPointer)->title();
//}
//kde_MediaList kde_StyleSheet_media( kde_StyleSheet* instPointer){
//	return (kde_MediaList)new DOM::MediaList(((StyleSheetBridge*)instPointer)->media());
//}
int kde_StyleSheet_isCSSStyleSheet( kde_StyleSheet* instPointer){
	return (int) ((StyleSheetBridge*)instPointer)->isCSSStyleSheet();
}
//kde_StyleSheetImpl* kde_StyleSheet_handle( kde_StyleSheet* instPointer){
//	return (kde_StyleSheetImpl*) ((StyleSheetBridge*)instPointer)->handle();
//}
int kde_StyleSheet_isNull( kde_StyleSheet* instPointer){
	return (int) ((StyleSheetBridge*)instPointer)->isNull();
}
