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

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

class QStyleSheetItemJBridge : public QStyleSheetItem
{
public:
	QStyleSheetItemJBridge(QStyleSheet* arg1,const QString& arg2) : QStyleSheetItem(arg1,arg2) {};
	QStyleSheetItemJBridge(const QStyleSheetItem& arg1) : QStyleSheetItem(arg1) {};
	~QStyleSheetItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jint JNICALL
Java_org_kde_qt_QStyleSheetItem_alignment(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->alignment();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QStyleSheetItem_allowedInContext(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->allowedInContext((const QStyleSheetItem*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QStyleSheetItem_color(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QColor(((QStyleSheetItem*) QtSupport::getQt(env, obj))->color()), "org.kde.qt.QColor", TRUE);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QStyleSheetItem_contexts(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QStyleSheetItem*) QtSupport::getQt(env, obj))->contexts();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QStyleSheetItem_definesFontItalic(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->definesFontItalic();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QStyleSheetItem_definesFontStrikeOut(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->definesFontStrikeOut();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QStyleSheetItem_definesFontUnderline(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->definesFontUnderline();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QStyleSheetItem_displayMode(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->displayMode();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QStyleSheetItem_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (QStyleSheetItem*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QStyleSheetItem_fontFamily(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QStyleSheetItem*) QtSupport::getQt(env, obj))->fontFamily();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QStyleSheetItem_fontItalic(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->fontItalic();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QStyleSheetItem_fontSize(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->fontSize();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QStyleSheetItem_fontStrikeOut(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->fontStrikeOut();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QStyleSheetItem_fontUnderline(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->fontUnderline();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QStyleSheetItem_fontWeight(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->fontWeight();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QStyleSheetItem_isAnchor(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->isAnchor();
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QStyleSheetItem_lineSpacing(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->lineSpacing();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QStyleSheetItem_listStyle(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->listStyle();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QStyleSheetItem_logicalFontSizeStep(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->logicalFontSizeStep();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QStyleSheetItem_logicalFontSize(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->logicalFontSize();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QStyleSheetItem_margin(JNIEnv* env, jobject obj, jint m)
{
	jint xret = (jint) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->margin((QStyleSheetItem::Margin) m);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QStyleSheetItem_name(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QStyleSheetItem*) QtSupport::getQt(env, obj))->name();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_newQStyleSheetItem__Lorg_kde_qt_QStyleSheetItem_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QStyleSheetItemJBridge((const QStyleSheetItem&)*(const QStyleSheetItem*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_newQStyleSheetItem__Lorg_kde_qt_QStyleSheet_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static QString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QStyleSheetItemJBridge((QStyleSheet*) QtSupport::getQt(env, parent), (const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QStyleSheetItem_numberOfColumns(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->numberOfColumns();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QStyleSheetItem_selfNesting(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->selfNesting();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_setAlignment(JNIEnv* env, jobject obj, jint f)
{
	((QStyleSheetItem*) QtSupport::getQt(env, obj))->setAlignment((int) f);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_setAnchor(JNIEnv* env, jobject obj, jboolean anc)
{
	((QStyleSheetItem*) QtSupport::getQt(env, obj))->setAnchor((bool) anc);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_setColor(JNIEnv* env, jobject obj, jobject arg1)
{
	((QStyleSheetItem*) QtSupport::getQt(env, obj))->setColor((const QColor&)*(const QColor*) QtSupport::getQt(env, arg1));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_setDisplayMode(JNIEnv* env, jobject obj, jint m)
{
	((QStyleSheetItem*) QtSupport::getQt(env, obj))->setDisplayMode((QStyleSheetItem::DisplayMode) m);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_setFontItalic(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QStyleSheetItem*) QtSupport::getQt(env, obj))->setFontItalic((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_setFontSize(JNIEnv* env, jobject obj, jint s)
{
	((QStyleSheetItem*) QtSupport::getQt(env, obj))->setFontSize((int) s);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_setFontStrikeOut(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QStyleSheetItem*) QtSupport::getQt(env, obj))->setFontStrikeOut((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_setFontUnderline(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QStyleSheetItem*) QtSupport::getQt(env, obj))->setFontUnderline((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_setFontWeight(JNIEnv* env, jobject obj, jint w)
{
	((QStyleSheetItem*) QtSupport::getQt(env, obj))->setFontWeight((int) w);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_setLineSpacing(JNIEnv* env, jobject obj, jint ls)
{
	((QStyleSheetItem*) QtSupport::getQt(env, obj))->setLineSpacing((int) ls);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_setListStyle(JNIEnv* env, jobject obj, jint arg1)
{
	((QStyleSheetItem*) QtSupport::getQt(env, obj))->setListStyle((QStyleSheetItem::ListStyle) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_setLogicalFontSizeStep(JNIEnv* env, jobject obj, jint s)
{
	((QStyleSheetItem*) QtSupport::getQt(env, obj))->setLogicalFontSizeStep((int) s);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_setLogicalFontSize(JNIEnv* env, jobject obj, jint s)
{
	((QStyleSheetItem*) QtSupport::getQt(env, obj))->setLogicalFontSize((int) s);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_setMargin(JNIEnv* env, jobject obj, jint arg1, jint arg2)
{
	((QStyleSheetItem*) QtSupport::getQt(env, obj))->setMargin((QStyleSheetItem::Margin) arg1, (int) arg2);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_setNumberOfColumns(JNIEnv* env, jobject obj, jint ncols)
{
	((QStyleSheetItem*) QtSupport::getQt(env, obj))->setNumberOfColumns((int) ncols);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_setSelfNesting(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QStyleSheetItem*) QtSupport::getQt(env, obj))->setSelfNesting((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_setVerticalAlignment(JNIEnv* env, jobject obj, jint valign)
{
	((QStyleSheetItem*) QtSupport::getQt(env, obj))->setVerticalAlignment((QStyleSheetItem::VerticalAlignment) valign);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleSheetItem_setWhiteSpaceMode(JNIEnv* env, jobject obj, jint m)
{
	((QStyleSheetItem*) QtSupport::getQt(env, obj))->setWhiteSpaceMode((QStyleSheetItem::WhiteSpaceMode) m);
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QStyleSheetItem_verticalAlignment(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->verticalAlignment();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QStyleSheetItem_whiteSpaceMode(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QStyleSheetItem*) QtSupport::getQt(env, obj))->whiteSpaceMode();
	return xret;
}

