//Auto-generated by kalyptus. DO NOT EDIT.
#include <qstring.h>
#include <qfont.h>
#include <qstylesheet.h>
#include <qmime.h>

#include <qtjava/QtSupport.h>
#include <qtjava/QStyleSheet.h>

class QStyleSheetJBridge : public QStyleSheet
{
public:
	QStyleSheetJBridge(QObject* arg1,const char* arg2) : QStyleSheet(arg1,arg2) {};
	QStyleSheetJBridge(QObject* arg1) : QStyleSheet(arg1) {};
	QStyleSheetJBridge() : QStyleSheet() {};
	~QStyleSheetJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.qt.QStyleSheet",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QStyleSheet_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((QStyleSheet*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QStyleSheet_convertFromPlainText__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_arg1 = 0;
	_qstring = QStyleSheetJBridge::convertFromPlainText((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QStyleSheet_convertFromPlainText__Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring arg1, jint mode)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_arg1 = 0;
	_qstring = QStyleSheetJBridge::convertFromPlainText((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (QStyleSheetItem::WhiteSpaceMode) mode);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QStyleSheet_defaultSheet(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)QStyleSheetJBridge::defaultSheet(), "org.kde.qt.QStyleSheet");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheet_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QStyleSheet_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheet_error(JNIEnv* env, jobject obj, jstring arg1)
{
static QString* _qstring_arg1 = 0;
	((QStyleSheet*) QtSupport::getQt(env, obj))->error((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QStyleSheet_escape(JNIEnv* env, jclass cls, jstring arg1)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_arg1 = 0;
	_qstring = QStyleSheetJBridge::escape((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheet_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((QStyleSheet*)QtSupport::getQt(env, obj))->parent() == 0) {
		delete (QStyleSheet*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheet_insert(JNIEnv* env, jobject obj, jobject item)
{
	((QStyleSheet*) QtSupport::getQt(env, obj))->insert((QStyleSheetItem*) QtSupport::getQt(env, item));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QStyleSheet_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QStyleSheet_item(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QStyleSheet*) QtSupport::getQt(env, obj))->item((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name)), "org.kde.qt.QStyleSheetItem");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QStyleSheet_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QStyleSheet*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QStyleSheet_mightBeRichText(JNIEnv* env, jclass cls, jstring arg1)
{
	(void) cls;
static QString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) QStyleSheetJBridge::mightBeRichText((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheet_newQStyleSheet__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QStyleSheetJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheet_newQStyleSheet__Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QStyleSheetJBridge((QObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheet_newQStyleSheet__Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QStyleSheetJBridge((QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheet_scaleFont(JNIEnv* env, jobject obj, jobject font, jint logicalSize)
{
	((QStyleSheet*) QtSupport::getQt(env, obj))->scaleFont((QFont&)*(QFont*) QtSupport::getQt(env, font), (int) logicalSize);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheet_setDefaultSheet(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	QStyleSheetJBridge::setDefaultSheet((QStyleSheet*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QStyleSheet_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
	_qstring = QStyleSheetJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QStyleSheet_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
static QCString* _qstring_arg2 = 0;
	_qstring = QStyleSheetJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromQString(env, &_qstring);
}

