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

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSyntaxHighlighter_currentParagraph(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QSyntaxHighlighter*) QtSupport::getQt(env, obj))->currentParagraph();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QSyntaxHighlighter_rehighlight(JNIEnv* env, jobject obj)
{
	((QSyntaxHighlighter*) QtSupport::getQt(env, obj))->rehighlight();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSyntaxHighlighter_setFormat__IILorg_kde_qt_QColor_2(JNIEnv* env, jobject obj, jint start, jint count, jobject color)
{
	((QSyntaxHighlighter*) QtSupport::getQt(env, obj))->setFormat((int) start, (int) count, (const QColor&)*(const QColor*) QtSupport::getQt(env, color));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSyntaxHighlighter_setFormat__IILorg_kde_qt_QFont_2(JNIEnv* env, jobject obj, jint start, jint count, jobject font)
{
	((QSyntaxHighlighter*) QtSupport::getQt(env, obj))->setFormat((int) start, (int) count, (const QFont&)*(const QFont*) QtSupport::getQt(env, font));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSyntaxHighlighter_setFormat__IILorg_kde_qt_QFont_2Lorg_kde_qt_QColor_2(JNIEnv* env, jobject obj, jint start, jint count, jobject font, jobject color)
{
	((QSyntaxHighlighter*) QtSupport::getQt(env, obj))->setFormat((int) start, (int) count, (const QFont&)*(const QFont*) QtSupport::getQt(env, font), (const QColor&)*(const QColor*) QtSupport::getQt(env, color));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSyntaxHighlighter_textEdit(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QSyntaxHighlighter*) QtSupport::getQt(env, obj))->textEdit(), "org.kde.qt.QTextEdit");
	return xret;
}

