diff options
Diffstat (limited to 'kdejava/koala/kdejava/KSpell.cpp')
-rw-r--r-- | kdejava/koala/kdejava/KSpell.cpp | 689 |
1 files changed, 0 insertions, 689 deletions
diff --git a/kdejava/koala/kdejava/KSpell.cpp b/kdejava/koala/kdejava/KSpell.cpp deleted file mode 100644 index 1bb6c1b3..00000000 --- a/kdejava/koala/kdejava/KSpell.cpp +++ /dev/null @@ -1,689 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -#include <ksconfig.h> -#include <tdespell.h> -#include <tqstring.h> -#include <tqstringlist.h> - -#include <qtjava/QtSupport.h> -#include <kdejava/KDESupport.h> -#include <kdejava/KSpell.h> - -class KSpellJBridge : public KSpell -{ -public: - KSpellJBridge(TQWidget* arg1,const TQString& arg2,TQObject* arg3,const char* arg4,KSpellConfig* arg5,bool arg6,bool arg7) : KSpell(arg1,arg2,arg3,arg4,arg5,arg6,arg7) {}; - KSpellJBridge(TQWidget* arg1,const TQString& arg2,TQObject* arg3,const char* arg4,KSpellConfig* arg5,bool arg6) : KSpell(arg1,arg2,arg3,arg4,arg5,arg6) {}; - KSpellJBridge(TQWidget* arg1,const TQString& arg2,TQObject* arg3,const char* arg4,KSpellConfig* arg5) : KSpell(arg1,arg2,arg3,arg4,arg5) {}; - KSpellJBridge(TQWidget* arg1,const TQString& arg2,TQObject* arg3,const char* arg4) : KSpell(arg1,arg2,arg3,arg4) {}; - KSpellJBridge(TQWidget* arg1,const TQString& arg2,TQObject* arg3,const char* arg4,KSpellConfig* arg5,bool arg6,bool arg7,KSpell::SpellerType arg8) : KSpell(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) {}; - void public_cleanUp() { - KSpell::cleanUp(); - return; - } - int protected_parseOneResponse(const TQString& arg1,TQString& arg2,TQStringList& arg3) { - return (int) KSpell::parseOneResponse(arg1,arg2,arg3); - } - TQString protected_funnyWord(const TQString& arg1) { - return (TQString) KSpell::funnyWord(arg1); - } - void protected_dialog(const TQString& arg1,TQStringList& arg2,const char* arg3) { - KSpell::dialog(arg1,arg2,arg3); - return; - } - TQString protected_replacement() { - return (TQString) KSpell::replacement(); - } - void protected_setUpDialog(bool arg1) { - KSpell::setUpDialog(arg1); - return; - } - void protected_setUpDialog() { - KSpell::setUpDialog(); - return; - } - void protected_emitProgress() { - KSpell::emitProgress(); - return; - } - bool protected_cleanFputs(const TQString& arg1,bool arg2) { - return (bool) KSpell::cleanFputs(arg1,arg2); - } - bool protected_cleanFputs(const TQString& arg1) { - return (bool) KSpell::cleanFputs(arg1); - } - bool protected_cleanFputsWord(const TQString& arg1,bool arg2) { - return (bool) KSpell::cleanFputsWord(arg1,arg2); - } - bool protected_cleanFputsWord(const TQString& arg1) { - return (bool) KSpell::cleanFputsWord(arg1); - } - void protected_startIspell() { - KSpell::startIspell(); - return; - } - bool protected_writePersonalDictionary() { - return (bool) KSpell::writePersonalDictionary(); - } - void protected_initialize(TQWidget* arg1,const TQString& arg2,TQObject* arg3,const char* arg4,KSpellConfig* arg5,bool arg6,bool arg7,KSpell::SpellerType arg8) { - KSpell::initialize(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); - return; - } - void protected_KSpell2(KProcIO* arg1) { - KSpell::KSpell2(arg1); - return; - } - void protected_checkWord2(KProcIO* arg1) { - KSpell::checkWord2(arg1); - return; - } - void protected_checkWord3() { - KSpell::checkWord3(); - return; - } - void protected_check2(KProcIO* arg1) { - KSpell::check2(arg1); - return; - } - void protected_checkList2() { - KSpell::checkList2(); - return; - } - void protected_checkList3a(KProcIO* arg1) { - KSpell::checkList3a(arg1); - return; - } - void protected_checkListReplaceCurrent() { - KSpell::checkListReplaceCurrent(); - return; - } - void protected_checkList4() { - KSpell::checkList4(); - return; - } - void protected_dialog2(int arg1) { - KSpell::dialog2(arg1); - return; - } - void protected_check3() { - KSpell::check3(); - return; - } - void protected_suggestWord(KProcIO* arg1) { - KSpell::suggestWord(arg1); - return; - } - void protected_slotStopCancel(int arg1) { - KSpell::slotStopCancel(arg1); - return; - } - void protected_ispellExit(TDEProcess* arg1) { - KSpell::ispellExit(arg1); - return; - } - void protected_emitDeath() { - KSpell::emitDeath(); - return; - } - void protected_ispellErrors(TDEProcess* arg1,char* arg2,int arg3) { - KSpell::ispellErrors(arg1,arg2,arg3); - return; - } - void protected_checkNext() { - KSpell::checkNext(); - return; - } - ~KSpellJBridge() {QtSupport::qtKeyDeleted(this);} - void removeChild(TQObject* arg1) { - if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.TQObject")) { - TQObject::removeChild(arg1); - } - return; - } - void customEvent(TQCustomEvent* arg1) { - if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.TQCustomEvent")) { - TQObject::customEvent(arg1); - } - return; - } - void timerEvent(TQTimerEvent* arg1) { - if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.TQTimerEvent")) { - TQObject::timerEvent(arg1); - } - return; - } - void childEvent(TQChildEvent* arg1) { - if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.TQChildEvent")) { - TQObject::childEvent(arg1); - } - return; - } - void cleanUp() { - if (!QtSupport::voidDelegate(this,"org.kde.koala.KSpell","cleanUp")) { - KSpell::cleanUp(); - } - return; - } - void insertChild(TQObject* arg1) { - if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.TQObject")) { - TQObject::insertChild(arg1); - } - return; - } - bool eventFilter(TQObject* object,TQEvent* event) { - if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.KSpell",object,event)) { - return TQObject::eventFilter(object,event); - } else { - return TRUE; - } - } -}; - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_KSpell2(JNIEnv* env, jobject obj, jobject arg1) -{ - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_KSpell2((KProcIO*) QtSupport::getQt(env, arg1)); - return; -} - -JNIEXPORT jboolean JNICALL -Java_org_kde_koala_KSpell_addPersonal(JNIEnv* env, jobject obj, jstring word) -{ -static TQString* _qstring_word = 0; - jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->addPersonal((const TQString&)*(TQString*) QtSupport::toTQString(env, word, &_qstring_word)); - return xret; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_check2(JNIEnv* env, jobject obj, jobject arg1) -{ - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_check2((KProcIO*) QtSupport::getQt(env, arg1)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_check3(JNIEnv* env, jobject obj) -{ - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_check3(); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_checkList2(JNIEnv* env, jobject obj) -{ - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_checkList2(); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_checkList3a(JNIEnv* env, jobject obj, jobject arg1) -{ - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_checkList3a((KProcIO*) QtSupport::getQt(env, arg1)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_checkList4(JNIEnv* env, jobject obj) -{ - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_checkList4(); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_checkListReplaceCurrent(JNIEnv* env, jobject obj) -{ - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_checkListReplaceCurrent(); - return; -} - -JNIEXPORT jboolean JNICALL -Java_org_kde_koala_KSpell_checkList___3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobjectArray _wordlist) -{ -static TQStringList* _qlist__wordlist = 0; - jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->checkList((TQStringList*) QtSupport::toTQStringList(env, _wordlist, &_qlist__wordlist)); - return xret; -} - -JNIEXPORT jboolean JNICALL -Java_org_kde_koala_KSpell_checkList___3Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jobjectArray _wordlist, jboolean usedialog) -{ -static TQStringList* _qlist__wordlist = 0; - jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->checkList((TQStringList*) QtSupport::toTQStringList(env, _wordlist, &_qlist__wordlist), (bool) usedialog); - return xret; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_checkNext(JNIEnv* env, jobject obj) -{ - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_checkNext(); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_checkWord2(JNIEnv* env, jobject obj, jobject arg1) -{ - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_checkWord2((KProcIO*) QtSupport::getQt(env, arg1)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_checkWord3(JNIEnv* env, jobject obj) -{ - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_checkWord3(); - return; -} - -JNIEXPORT jboolean JNICALL -Java_org_kde_koala_KSpell_checkWord__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring _buffer) -{ -static TQString* _qstring__buffer = 0; - jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->checkWord((const TQString&)*(TQString*) QtSupport::toTQString(env, _buffer, &_qstring__buffer)); - return xret; -} - -JNIEXPORT jboolean JNICALL -Java_org_kde_koala_KSpell_checkWord__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring _buffer, jboolean usedialog) -{ -static TQString* _qstring__buffer = 0; - jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->checkWord((const TQString&)*(TQString*) QtSupport::toTQString(env, _buffer, &_qstring__buffer), (bool) usedialog); - return xret; -} - -JNIEXPORT jboolean JNICALL -Java_org_kde_koala_KSpell_checkWord__Ljava_lang_String_2ZZ(JNIEnv* env, jobject obj, jstring buffer, jboolean _usedialog, jboolean suggest) -{ -static TQString* _qstring_buffer = 0; - jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->checkWord((const TQString&)*(TQString*) QtSupport::toTQString(env, buffer, &_qstring_buffer), (bool) _usedialog, (bool) suggest); - return xret; -} - -JNIEXPORT jboolean JNICALL -Java_org_kde_koala_KSpell_check__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring _buffer) -{ -static TQString* _qstring__buffer = 0; - jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->check((const TQString&)*(TQString*) QtSupport::toTQString(env, _buffer, &_qstring__buffer)); - return xret; -} - -JNIEXPORT jboolean JNICALL -Java_org_kde_koala_KSpell_check__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring _buffer, jboolean usedialog) -{ -static TQString* _qstring__buffer = 0; - jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->check((const TQString&)*(TQString*) QtSupport::toTQString(env, _buffer, &_qstring__buffer), (bool) usedialog); - return xret; -} - -JNIEXPORT jstring JNICALL -Java_org_kde_koala_KSpell_className(JNIEnv* env, jobject obj) -{ - const char* _qstring; - _qstring = ((KSpell*) QtSupport::getQt(env, obj))->className(); - return QtSupport::fromCharString(env, (char *) _qstring); -} - -JNIEXPORT jboolean JNICALL -Java_org_kde_koala_KSpell_cleanFputsWord__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring s) -{ -static TQString* _qstring_s = 0; - jboolean xret = (jboolean) ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_cleanFputsWord((const TQString&)*(TQString*) QtSupport::toTQString(env, s, &_qstring_s)); - return xret; -} - -JNIEXPORT jboolean JNICALL -Java_org_kde_koala_KSpell_cleanFputsWord__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring s, jboolean appendCR) -{ -static TQString* _qstring_s = 0; - jboolean xret = (jboolean) ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_cleanFputsWord((const TQString&)*(TQString*) QtSupport::toTQString(env, s, &_qstring_s), (bool) appendCR); - return xret; -} - -JNIEXPORT jboolean JNICALL -Java_org_kde_koala_KSpell_cleanFputs__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring s) -{ -static TQString* _qstring_s = 0; - jboolean xret = (jboolean) ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_cleanFputs((const TQString&)*(TQString*) QtSupport::toTQString(env, s, &_qstring_s)); - return xret; -} - -JNIEXPORT jboolean JNICALL -Java_org_kde_koala_KSpell_cleanFputs__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring s, jboolean appendCR) -{ -static TQString* _qstring_s = 0; - jboolean xret = (jboolean) ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_cleanFputs((const TQString&)*(TQString*) QtSupport::toTQString(env, s, &_qstring_s), (bool) appendCR); - return xret; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_cleanUp(JNIEnv* env, jobject obj) -{ - ((KSpellJBridge*) QtSupport::getQt(env, obj))->public_cleanUp(); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_dialog2(JNIEnv* env, jobject obj, jint dlgresult) -{ - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_dialog2((int) dlgresult); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_dialog(JNIEnv* env, jobject obj, jstring word, jobjectArray sugg, jstring _slot) -{ -static TQString* _qstring_word = 0; -static TQStringList* _qlist_sugg = 0; -static TQCString* _qstring__slot = 0; - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_dialog((const TQString&)*(TQString*) QtSupport::toTQString(env, word, &_qstring_word), (TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, sugg, &_qlist_sugg), (const char*) QtSupport::toCharString(env, _slot, &_qstring__slot)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_dispose(JNIEnv* env, jobject obj) -{ - Java_org_kde_koala_KSpell_finalize(env, obj); - return; -} - -JNIEXPORT jint JNICALL -Java_org_kde_koala_KSpell_dlgResult(JNIEnv* env, jobject obj) -{ - jint xret = (jint) ((KSpell*) QtSupport::getQt(env, obj))->dlgResult(); - return xret; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_emitDeath(JNIEnv* env, jobject obj) -{ - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_emitDeath(); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_emitProgress(JNIEnv* env, jobject obj) -{ - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_emitProgress(); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_finalize(JNIEnv* env, jobject obj) -{ - if (QtSupport::allocatedInJavaWorld(env, obj)) { - delete (KSpell*)QtSupport::getQt(env, obj); - QtSupport::setQt(env, obj, 0); - } - return; -} - -JNIEXPORT jstring JNICALL -Java_org_kde_koala_KSpell_funnyWord(JNIEnv* env, jobject obj, jstring word) -{ - TQString _qstring; -static TQString* _qstring_word = 0; - _qstring = ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_funnyWord((const TQString&)*(TQString*) QtSupport::toTQString(env, word, &_qstring_word)); - return QtSupport::fromTQString(env, &_qstring); -} - -JNIEXPORT jint JNICALL -Java_org_kde_koala_KSpell_heightDlg(JNIEnv* env, jobject obj) -{ - jint xret = (jint) ((KSpell*) QtSupport::getQt(env, obj))->heightDlg(); - return xret; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_hide(JNIEnv* env, jobject obj) -{ - ((KSpell*) QtSupport::getQt(env, obj))->hide(); - return; -} - -JNIEXPORT jboolean JNICALL -Java_org_kde_koala_KSpell_ignore(JNIEnv* env, jobject obj, jstring word) -{ -static TQString* _qstring_word = 0; - jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->ignore((const TQString&)*(TQString*) QtSupport::toTQString(env, word, &_qstring_word)); - return xret; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_initialize(JNIEnv* env, jobject obj, jobject _parent, jstring _caption, jobject arg3, jstring slot, jobject _ksc, jboolean _progressbar, jboolean _modal, jint type) -{ -static TQString* _qstring__caption = 0; -static TQCString* _qstring_slot = 0; - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_initialize((TQWidget*) QtSupport::getQt(env, _parent), (const TQString&)*(TQString*) QtSupport::toTQString(env, _caption, &_qstring__caption), (TQObject*) QtSupport::getQt(env, arg3), (const char*) QtSupport::toCharString(env, slot, &_qstring_slot), (KSpellConfig*) QtSupport::getQt(env, _ksc), (bool) _progressbar, (bool) _modal, (KSpell::SpellerType) type); - return; -} - -JNIEXPORT jstring JNICALL -Java_org_kde_koala_KSpell_intermediateBuffer(JNIEnv* env, jobject obj) -{ - TQString _qstring; - _qstring = ((KSpell*) QtSupport::getQt(env, obj))->intermediateBuffer(); - return QtSupport::fromTQString(env, &_qstring); -} - -JNIEXPORT jboolean JNICALL -Java_org_kde_koala_KSpell_isDisposed(JNIEnv* env, jobject obj) -{ - return (QtSupport::getQt(env, obj) == 0); -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_ispellErrors(JNIEnv* env, jobject obj, jobject arg1, jstring arg2, jint arg3) -{ -static TQCString* _qstring_arg2 = 0; - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_ispellErrors((TDEProcess*) QtSupport::getQt(env, arg1), (char*) QtSupport::toCharString(env, arg2, &_qstring_arg2), (int) arg3); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_ispellExit(JNIEnv* env, jobject obj, jobject arg1) -{ - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_ispellExit((TDEProcess*) QtSupport::getQt(env, arg1)); - return; -} - -JNIEXPORT jobject JNICALL -Java_org_kde_koala_KSpell_ksConfig(JNIEnv* env, jobject obj) -{ - jobject xret = QtSupport::objectForQtKey(env, (void*)new KSpellConfig(((KSpell*) QtSupport::getQt(env, obj))->ksConfig()), "org.kde.koala.KSpellConfig", TRUE); - return xret; -} - -JNIEXPORT jint JNICALL -Java_org_kde_koala_KSpell_lastPosition(JNIEnv* env, jobject obj) -{ - jint xret = (jint) ((KSpell*) QtSupport::getQt(env, obj))->lastPosition(); - return xret; -} - -JNIEXPORT jobject JNICALL -Java_org_kde_koala_KSpell_metaObject(JNIEnv* env, jobject obj) -{ - jobject xret = QtSupport::objectForQtKey(env, (void*)((KSpell*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TQMetaObject"); - return xret; -} - -JNIEXPORT jint JNICALL -Java_org_kde_koala_KSpell_modalCheck(JNIEnv* env, jclass cls, jobject text, jobject kcs) -{ - (void) cls; -static TQString* _qstring_text = 0; - jint xret = (jint) KSpellJBridge::modalCheck((TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, text, &_qstring_text), (KSpellConfig*) QtSupport::getQt(env, kcs)); - QtSupport::fromTQStringToStringBuffer(env, _qstring_text, text); - return xret; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_moveDlg(JNIEnv* env, jobject obj, jint x, jint y) -{ - ((KSpell*) QtSupport::getQt(env, obj))->moveDlg((int) x, (int) y); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_newKSpell__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring caption, jobject receiver, jstring slot) -{ -static TQString* _qstring_caption = 0; - if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KSpellJBridge((TQWidget*) QtSupport::getQt(env, parent), (const TQString&)*(TQString*) QtSupport::toTQString(env, caption, &_qstring_caption), (TQObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()")); - QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); - } - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_newKSpell__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_koala_KSpellConfig_2(JNIEnv* env, jobject obj, jobject parent, jstring caption, jobject receiver, jstring slot, jobject kcs) -{ -static TQString* _qstring_caption = 0; - if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KSpellJBridge((TQWidget*) QtSupport::getQt(env, parent), (const TQString&)*(TQString*) QtSupport::toTQString(env, caption, &_qstring_caption), (TQObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (KSpellConfig*) QtSupport::getQt(env, kcs))); - QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); - } - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_newKSpell__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_koala_KSpellConfig_2Z(JNIEnv* env, jobject obj, jobject parent, jstring caption, jobject receiver, jstring slot, jobject kcs, jboolean progressbar) -{ -static TQString* _qstring_caption = 0; - if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KSpellJBridge((TQWidget*) QtSupport::getQt(env, parent), (const TQString&)*(TQString*) QtSupport::toTQString(env, caption, &_qstring_caption), (TQObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (KSpellConfig*) QtSupport::getQt(env, kcs), (bool) progressbar)); - QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); - } - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_newKSpell__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_koala_KSpellConfig_2ZZ(JNIEnv* env, jobject obj, jobject parent, jstring caption, jobject receiver, jstring slot, jobject kcs, jboolean progressbar, jboolean modal) -{ -static TQString* _qstring_caption = 0; - if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KSpellJBridge((TQWidget*) QtSupport::getQt(env, parent), (const TQString&)*(TQString*) QtSupport::toTQString(env, caption, &_qstring_caption), (TQObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (KSpellConfig*) QtSupport::getQt(env, kcs), (bool) progressbar, (bool) modal)); - QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); - } - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_newKSpell__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_koala_KSpellConfig_2ZZI(JNIEnv* env, jobject obj, jobject parent, jstring caption, jobject receiver, jstring slot, jobject kcs, jboolean progressbar, jboolean modal, jint type) -{ -static TQString* _qstring_caption = 0; - if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KSpellJBridge((TQWidget*) QtSupport::getQt(env, parent), (const TQString&)*(TQString*) QtSupport::toTQString(env, caption, &_qstring_caption), (TQObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (KSpellConfig*) QtSupport::getQt(env, kcs), (bool) progressbar, (bool) modal, (KSpell::SpellerType) type)); - QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); - } - return; -} - -JNIEXPORT jint JNICALL -Java_org_kde_koala_KSpell_parseOneResponse(JNIEnv* env, jobject obj, jstring _buffer, jobject word, jobjectArray sugg) -{ -static TQString* _qstring__buffer = 0; -static TQString* _qstring_word = 0; -static TQStringList* _qlist_sugg = 0; - jint xret = (jint) ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_parseOneResponse((const TQString&)*(TQString*) QtSupport::toTQString(env, _buffer, &_qstring__buffer), (TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, word, &_qstring_word), (TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, sugg, &_qlist_sugg)); - QtSupport::fromTQStringToStringBuffer(env, _qstring_word, word); - return xret; -} - -JNIEXPORT jstring JNICALL -Java_org_kde_koala_KSpell_replacement(JNIEnv* env, jobject obj) -{ - TQString _qstring; - _qstring = ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_replacement(); - return QtSupport::fromTQString(env, &_qstring); -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_setAutoDelete(JNIEnv* env, jobject obj, jboolean _autoDelete) -{ - ((KSpell*) QtSupport::getQt(env, obj))->setAutoDelete((bool) _autoDelete); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_setIgnoreTitleCase(JNIEnv* env, jobject obj, jboolean b) -{ - ((KSpell*) QtSupport::getQt(env, obj))->setIgnoreTitleCase((bool) b); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_setIgnoreUpperWords(JNIEnv* env, jobject obj, jboolean b) -{ - ((KSpell*) QtSupport::getQt(env, obj))->setIgnoreUpperWords((bool) b); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_setProgressResolution(JNIEnv* env, jobject obj, jint res) -{ - ((KSpell*) QtSupport::getQt(env, obj))->setProgressResolution((unsigned int) res); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_setUpDialog__(JNIEnv* env, jobject obj) -{ - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_setUpDialog(); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_setUpDialog__Z(JNIEnv* env, jobject obj, jboolean reallyusedialogbox) -{ - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_setUpDialog((bool) reallyusedialogbox); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_slotStopCancel(JNIEnv* env, jobject obj, jint arg1) -{ - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_slotStopCancel((int) arg1); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_startIspell(JNIEnv* env, jobject obj) -{ - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_startIspell(); - return; -} - -JNIEXPORT jint JNICALL -Java_org_kde_koala_KSpell_status(JNIEnv* env, jobject obj) -{ - jint xret = (jint) ((KSpell*) QtSupport::getQt(env, obj))->status(); - return xret; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_KSpell_suggestWord(JNIEnv* env, jobject obj, jobject arg1) -{ - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_suggestWord((KProcIO*) QtSupport::getQt(env, arg1)); - return; -} - -JNIEXPORT jobject JNICALL -Java_org_kde_koala_KSpell_suggestions(JNIEnv* env, jobject obj) -{ - TQStringList _qlist; - _qlist = ((KSpell*) QtSupport::getQt(env, obj))->suggestions(); - return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist); -} - -JNIEXPORT jint JNICALL -Java_org_kde_koala_KSpell_widthDlg(JNIEnv* env, jobject obj) -{ - jint xret = (jint) ((KSpell*) QtSupport::getQt(env, obj))->widthDlg(); - return xret; -} - -JNIEXPORT jboolean JNICALL -Java_org_kde_koala_KSpell_writePersonalDictionary(JNIEnv* env, jobject obj) -{ - jboolean xret = (jboolean) ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_writePersonalDictionary(); - return xret; -} - |