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

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

JNIEXPORT jint JNICALL
Java_org_kde_koala_KSpellingHighlighter_highlightParagraph(JNIEnv* env, jobject obj, jstring text, jint endStateOfLastPara)
{
static QString* _qstring_text = 0;
	jint xret = (jint) ((KSpellingHighlighter*) 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_KSpellingHighlighter_intraWordEditing(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KSpellingHighlighter*) QtSupport::getQt(env, obj))->intraWordEditing();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KSpellingHighlighter_isMisspelled(JNIEnv* env, jobject obj, jstring word)
{
static QString* _qstring_word = 0;
	jboolean xret = (jboolean) ((KSpellingHighlighter*) QtSupport::getQt(env, obj))->isMisspelled((const QString&)*(QString*) QtSupport::toQString(env, word, &_qstring_word));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KSpellingHighlighter_personalWords(JNIEnv* env, jclass cls)
{
	QStringList  _qlist;
	(void) cls;
	_qlist = KSpellingHighlighter::personalWords();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSpellingHighlighter_setIntraWordEditing(JNIEnv* env, jobject obj, jboolean editing)
{
	((KSpellingHighlighter*) QtSupport::getQt(env, obj))->setIntraWordEditing((bool) editing);
	return;
}

