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

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KSyntaxHighlighter.h>

class KSyntaxHighlighterJBridge : public KSyntaxHighlighter
{
public:
	KSyntaxHighlighterJBridge(QTextEdit* arg1,bool arg2,const QColor& arg3,const QColor& arg4,const QColor& arg5,const QColor& arg6,KSyntaxHighlighter::SyntaxMode arg7) : KSyntaxHighlighter(arg1,arg2,arg3,arg4,arg5,arg6,arg7) {};
	KSyntaxHighlighterJBridge(QTextEdit* arg1,bool arg2,const QColor& arg3,const QColor& arg4,const QColor& arg5,const QColor& arg6) : KSyntaxHighlighter(arg1,arg2,arg3,arg4,arg5,arg6) {};
	KSyntaxHighlighterJBridge(QTextEdit* arg1,bool arg2,const QColor& arg3,const QColor& arg4,const QColor& arg5) : KSyntaxHighlighter(arg1,arg2,arg3,arg4,arg5) {};
	KSyntaxHighlighterJBridge(QTextEdit* arg1,bool arg2,const QColor& arg3,const QColor& arg4) : KSyntaxHighlighter(arg1,arg2,arg3,arg4) {};
	KSyntaxHighlighterJBridge(QTextEdit* arg1,bool arg2,const QColor& arg3) : KSyntaxHighlighter(arg1,arg2,arg3) {};
	KSyntaxHighlighterJBridge(QTextEdit* arg1,bool arg2) : KSyntaxHighlighter(arg1,arg2) {};
	KSyntaxHighlighterJBridge(QTextEdit* arg1) : KSyntaxHighlighter(arg1) {};
	~KSyntaxHighlighterJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KSyntaxHighlighter_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KSyntaxHighlighter_finalize(env, obj);
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_koala_KSyntaxHighlighter_highlightParagraph(JNIEnv* env, jobject obj, jstring text, jint endStateOfLastPara)
{
static QString* _qstring_text = 0;
	jint xret = (jint) ((KSyntaxHighlighter*) QtSupport::getQt(env, obj))->highlightParagraph((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (int) endStateOfLastPara);
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KSyntaxHighlighter_newKSyntaxHighlighter__Lorg_kde_qt_QTextEdit_2Z(JNIEnv* env, jobject obj, jobject textEdit, jboolean colorQuoting)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KSyntaxHighlighterJBridge((QTextEdit*) QtSupport::getQt(env, textEdit), (bool) colorQuoting));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSyntaxHighlighter_newKSyntaxHighlighter__Lorg_kde_qt_QTextEdit_2ZLorg_kde_qt_QColor_2(JNIEnv* env, jobject obj, jobject textEdit, jboolean colorQuoting, jobject QuoteColor0)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KSyntaxHighlighterJBridge((QTextEdit*) QtSupport::getQt(env, textEdit), (bool) colorQuoting, (const QColor&)*(const QColor*) QtSupport::getQt(env, QuoteColor0)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSyntaxHighlighter_newKSyntaxHighlighter__Lorg_kde_qt_QTextEdit_2ZLorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2(JNIEnv* env, jobject obj, jobject textEdit, jboolean colorQuoting, jobject QuoteColor0, jobject QuoteColor1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KSyntaxHighlighterJBridge((QTextEdit*) QtSupport::getQt(env, textEdit), (bool) colorQuoting, (const QColor&)*(const QColor*) QtSupport::getQt(env, QuoteColor0), (const QColor&)*(const QColor*) QtSupport::getQt(env, QuoteColor1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSyntaxHighlighter_newKSyntaxHighlighter__Lorg_kde_qt_QTextEdit_2ZLorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2(JNIEnv* env, jobject obj, jobject textEdit, jboolean colorQuoting, jobject QuoteColor0, jobject QuoteColor1, jobject QuoteColor2)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KSyntaxHighlighterJBridge((QTextEdit*) QtSupport::getQt(env, textEdit), (bool) colorQuoting, (const QColor&)*(const QColor*) QtSupport::getQt(env, QuoteColor0), (const QColor&)*(const QColor*) QtSupport::getQt(env, QuoteColor1), (const QColor&)*(const QColor*) QtSupport::getQt(env, QuoteColor2)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSyntaxHighlighter_newKSyntaxHighlighter__Lorg_kde_qt_QTextEdit_2ZLorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2(JNIEnv* env, jobject obj, jobject textEdit, jboolean colorQuoting, jobject QuoteColor0, jobject QuoteColor1, jobject QuoteColor2, jobject QuoteColor3)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KSyntaxHighlighterJBridge((QTextEdit*) QtSupport::getQt(env, textEdit), (bool) colorQuoting, (const QColor&)*(const QColor*) QtSupport::getQt(env, QuoteColor0), (const QColor&)*(const QColor*) QtSupport::getQt(env, QuoteColor1), (const QColor&)*(const QColor*) QtSupport::getQt(env, QuoteColor2), (const QColor&)*(const QColor*) QtSupport::getQt(env, QuoteColor3)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSyntaxHighlighter_newKSyntaxHighlighter__Lorg_kde_qt_QTextEdit_2ZLorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2I(JNIEnv* env, jobject obj, jobject textEdit, jboolean colorQuoting, jobject QuoteColor0, jobject QuoteColor1, jobject QuoteColor2, jobject QuoteColor3, jint mode)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KSyntaxHighlighterJBridge((QTextEdit*) QtSupport::getQt(env, textEdit), (bool) colorQuoting, (const QColor&)*(const QColor*) QtSupport::getQt(env, QuoteColor0), (const QColor&)*(const QColor*) QtSupport::getQt(env, QuoteColor1), (const QColor&)*(const QColor*) QtSupport::getQt(env, QuoteColor2), (const QColor&)*(const QColor*) QtSupport::getQt(env, QuoteColor3), (KSyntaxHighlighter::SyntaxMode) mode));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

