summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/kdejava/KSpellingHighlighter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/kdejava/KSpellingHighlighter.cpp')
-rw-r--r--kdejava/koala/kdejava/KSpellingHighlighter.cpp49
1 files changed, 49 insertions, 0 deletions
diff --git a/kdejava/koala/kdejava/KSpellingHighlighter.cpp b/kdejava/koala/kdejava/KSpellingHighlighter.cpp
new file mode 100644
index 00000000..6fe2a6be
--- /dev/null
+++ b/kdejava/koala/kdejava/KSpellingHighlighter.cpp
@@ -0,0 +1,49 @@
+//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;
+}
+