//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tqstringlist.h>
#include <ksyntaxhighlighter.h>
#include <tqcolor.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/KSpellingHighlighter.h>

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSpellingHighlighter_intraWordEditing(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KSpellingHighlighter*) QtSupport::getQt(env, obj))->intraWordEditing();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KSpellingHighlighter_personalWords(JNIEnv* env, jclass cls)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = KSpellingHighlighter::personalWords();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

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

