/***************************************************************************
                            qt_QStyleSheet.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, 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 "qt_QStyleSheet.h"
}

#include <qstylesheet.h>

class QStyleSheetBridge : public QStyleSheet
{
public:
	QStyleSheetBridge(QObject* parent, const char* name) : QStyleSheet(parent, name) {}
	~QStyleSheetBridge() {}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "customEvent", arg1, "QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
};

qt_QStyleSheet * qt_new_QStyleSheet(qt_QObject * parent, char* name){
	return (qt_QStyleSheet *) new QStyleSheetBridge((QObject*)parent, (char*)name);
}
void qt_del_QStyleSheet( qt_QStyleSheet* p ){
	delete (QStyleSheetBridge*) p;
}
qt_QStyleSheetItem* qt_QStyleSheet_item( qt_QStyleSheet* instPointer,qt_QString * name){
	return (qt_QStyleSheetItem*) ((QStyleSheetBridge*)instPointer)->item((QString&)* (QString*)name);
}
qt_QStyleSheetItem* qt_QStyleSheet_item1( qt_QStyleSheet* instPointer,qt_QString * name){
	return (qt_QStyleSheetItem*) ((QStyleSheetBridge*)instPointer)->item((QString&)* (QString*)name);
}
void qt_QStyleSheet_insert( qt_QStyleSheet* instPointer,qt_QStyleSheetItem* item){
	((QStyleSheetBridge*)instPointer)->insert((QStyleSheetItem*)item);
	return;
}
void qt_QStyleSheet_scaleFont( qt_QStyleSheet* instPointer,qt_QFont * font, int logicalSize){
	((QStyleSheetBridge*)instPointer)->scaleFont((QFont&)* (QFont*)font, (int)logicalSize);
	return;
}
void qt_QStyleSheet_error( qt_QStyleSheet* instPointer,qt_QString * arg1){
	((QStyleSheetBridge*)instPointer)->error((QString&)* (QString*)arg1);
	return;
}
qt_QStyleSheet* qt_QStyleSheet_defaultSheet( ){
	return (qt_QStyleSheet*) QStyleSheetBridge::defaultSheet();
}
void qt_QStyleSheet_setDefaultSheet( qt_QStyleSheet* arg1){
	QStyleSheetBridge::setDefaultSheet((QStyleSheet*)arg1);
	return;
}
qt_QString * qt_QStyleSheet_escape( qt_QString * arg1){
	return (qt_QString *)new QString(QStyleSheetBridge::escape((QString&)* (QString*)arg1));
}
qt_QString * qt_QStyleSheet_convertFromPlainText( qt_QString * arg1, QStyleSheetItem::WhiteSpaceMode mode){
	return (qt_QString *)new QString(QStyleSheetBridge::convertFromPlainText((QString&)* (QString*)arg1, (QStyleSheetItem::WhiteSpaceMode)mode));
}
int qt_QStyleSheet_mightBeRichText( qt_QString * arg1){
	return (int) QStyleSheetBridge::mightBeRichText((QString&)* (QString*)arg1);
}
