//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqregexp.h>
#include <kstringhandler.h>
#include <tqstring.h>
#include <tqstringlist.h>
#include <tqfontmetrics.h>

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

class KStringHandlerJBridge : public KStringHandler
{
public:
	KStringHandlerJBridge() : KStringHandler() {};
	~KStringHandlerJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_cEmSqueeze__Ljava_lang_String_2Lorg_trinitydesktop_qt_QFontMetrics_2(JNIEnv* env, jclass cls, jstring name, jobject fontMetrics)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_name = 0;
	_qstring = KStringHandlerJBridge::cEmSqueeze((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQFontMetrics&)*(const TQFontMetrics*) QtSupport::getQt(env, fontMetrics));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_cEmSqueeze__Ljava_lang_String_2Lorg_trinitydesktop_qt_QFontMetrics_2I(JNIEnv* env, jclass cls, jstring name, jobject fontMetrics, jint maxlen)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_name = 0;
	_qstring = KStringHandlerJBridge::cEmSqueeze((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQFontMetrics&)*(const TQFontMetrics*) QtSupport::getQt(env, fontMetrics), (uint) maxlen);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_cPixelSqueeze(JNIEnv* env, jclass cls, jstring name, jobject fontMetrics, jint maxPixels)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_name = 0;
	_qstring = KStringHandlerJBridge::cPixelSqueeze((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQFontMetrics&)*(const TQFontMetrics*) QtSupport::getQt(env, fontMetrics), (uint) maxPixels);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_capwords__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring text)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_text = 0;
	_qstring = KStringHandlerJBridge::capwords((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KStringHandler_capwords___3Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray list)
{
	TQStringList  _qlist;
	(void) cls;
static TQStringList* _qlist_list = 0;
	_qlist = KStringHandlerJBridge::capwords((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, list, &_qlist_list));
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_center(JNIEnv* env, jclass cls, jstring text, jint width)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_text = 0;
	_qstring = KStringHandlerJBridge::center((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (uint) width);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_csqueeze__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring str)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_str = 0;
	_qstring = KStringHandlerJBridge::csqueeze((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_csqueeze__Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring str, jint maxlen)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_str = 0;
	_qstring = KStringHandlerJBridge::csqueeze((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (uint) maxlen);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KStringHandler_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KStringHandler_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KStringHandler_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (KStringHandler*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_from8Bit(JNIEnv* env, jclass cls, jstring str)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_str = 0;
	_qstring = KStringHandlerJBridge::from8Bit((const char*) QtSupport::toCharString(env, str, &_qstring_str));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_insword(JNIEnv* env, jclass cls, jstring text, jstring word, jint pos)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_text = 0;
static TQString* _qstring_word = 0;
	_qstring = KStringHandlerJBridge::insword((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQString&)*(TQString*) QtSupport::toTQString(env, word, &_qstring_word), (uint) pos);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KStringHandler_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KStringHandler_isUtf8(JNIEnv* env, jclass cls, jstring str)
{
	(void) cls;
static TQCString* _qstring_str = 0;
	jboolean xret = (jboolean) KStringHandlerJBridge::isUtf8((const char*) QtSupport::toCharString(env, str, &_qstring_str));
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_lEmSqueeze__Ljava_lang_String_2Lorg_trinitydesktop_qt_QFontMetrics_2(JNIEnv* env, jclass cls, jstring name, jobject fontMetrics)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_name = 0;
	_qstring = KStringHandlerJBridge::lEmSqueeze((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQFontMetrics&)*(const TQFontMetrics*) QtSupport::getQt(env, fontMetrics));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_lEmSqueeze__Ljava_lang_String_2Lorg_trinitydesktop_qt_QFontMetrics_2I(JNIEnv* env, jclass cls, jstring name, jobject fontMetrics, jint maxlen)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_name = 0;
	_qstring = KStringHandlerJBridge::lEmSqueeze((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQFontMetrics&)*(const TQFontMetrics*) QtSupport::getQt(env, fontMetrics), (uint) maxlen);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_lPixelSqueeze(JNIEnv* env, jclass cls, jstring name, jobject fontMetrics, jint maxPixels)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_name = 0;
	_qstring = KStringHandlerJBridge::lPixelSqueeze((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQFontMetrics&)*(const TQFontMetrics*) QtSupport::getQt(env, fontMetrics), (uint) maxPixels);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_lsqueeze__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring str)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_str = 0;
	_qstring = KStringHandlerJBridge::lsqueeze((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_lsqueeze__Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring str, jint maxlen)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_str = 0;
	_qstring = KStringHandlerJBridge::lsqueeze((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (uint) maxlen);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KStringHandler_matchFileName(JNIEnv* env, jclass cls, jstring filename, jstring pattern)
{
	(void) cls;
static TQString* _qstring_filename = 0;
static TQString* _qstring_pattern = 0;
	jboolean xret = (jboolean) KStringHandlerJBridge::matchFileName((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (const TQString&)*(TQString*) QtSupport::toTQString(env, pattern, &_qstring_pattern));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KStringHandler_newKStringHandler(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KStringHandlerJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_obscure(JNIEnv* env, jclass cls, jstring str)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_str = 0;
	_qstring = KStringHandlerJBridge::obscure((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KStringHandler_perlSplit__CLjava_lang_String_2(JNIEnv* env, jclass cls, jchar sep, jstring s)
{
	TQStringList  _qlist;
	(void) cls;
static TQChar* _qchar_sep = 0;
static TQString* _qstring_s = 0;
	_qlist = KStringHandlerJBridge::perlSplit((const TQChar&)*(TQChar*) QtSupport::toTQChar(env, sep, &_qchar_sep), (const TQString&)*(TQString*) QtSupport::toTQString(env, s, &_qstring_s));
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KStringHandler_perlSplit__CLjava_lang_String_2I(JNIEnv* env, jclass cls, jchar sep, jstring s, jint max)
{
	TQStringList  _qlist;
	(void) cls;
static TQChar* _qchar_sep = 0;
static TQString* _qstring_s = 0;
	_qlist = KStringHandlerJBridge::perlSplit((const TQChar&)*(TQChar*) QtSupport::toTQChar(env, sep, &_qchar_sep), (const TQString&)*(TQString*) QtSupport::toTQString(env, s, &_qstring_s), (uint) max);
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KStringHandler_perlSplit__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring sep, jstring s)
{
	TQStringList  _qlist;
	(void) cls;
static TQString* _qstring_sep = 0;
static TQString* _qstring_s = 0;
	_qlist = KStringHandlerJBridge::perlSplit((const TQString&)*(TQString*) QtSupport::toTQString(env, sep, &_qstring_sep), (const TQString&)*(TQString*) QtSupport::toTQString(env, s, &_qstring_s));
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KStringHandler_perlSplit__Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring sep, jstring s, jint max)
{
	TQStringList  _qlist;
	(void) cls;
static TQString* _qstring_sep = 0;
static TQString* _qstring_s = 0;
	_qlist = KStringHandlerJBridge::perlSplit((const TQString&)*(TQString*) QtSupport::toTQString(env, sep, &_qstring_sep), (const TQString&)*(TQString*) QtSupport::toTQString(env, s, &_qstring_s), (uint) max);
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KStringHandler_perlSplit__Lorg_trinitydesktop_qt_QRegExp_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject sep, jstring s)
{
	TQStringList  _qlist;
	(void) cls;
static TQString* _qstring_s = 0;
	_qlist = KStringHandlerJBridge::perlSplit((const TQRegExp&)*(const TQRegExp*) QtSupport::getQt(env, sep), (const TQString&)*(TQString*) QtSupport::toTQString(env, s, &_qstring_s));
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KStringHandler_perlSplit__Lorg_trinitydesktop_qt_QRegExp_2Ljava_lang_String_2I(JNIEnv* env, jclass cls, jobject sep, jstring s, jint max)
{
	TQStringList  _qlist;
	(void) cls;
static TQString* _qstring_s = 0;
	_qlist = KStringHandlerJBridge::perlSplit((const TQRegExp&)*(const TQRegExp*) QtSupport::getQt(env, sep), (const TQString&)*(TQString*) QtSupport::toTQString(env, s, &_qstring_s), (uint) max);
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_rEmSqueeze__Ljava_lang_String_2Lorg_trinitydesktop_qt_QFontMetrics_2(JNIEnv* env, jclass cls, jstring name, jobject fontMetrics)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_name = 0;
	_qstring = KStringHandlerJBridge::rEmSqueeze((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQFontMetrics&)*(const TQFontMetrics*) QtSupport::getQt(env, fontMetrics));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_rEmSqueeze__Ljava_lang_String_2Lorg_trinitydesktop_qt_QFontMetrics_2I(JNIEnv* env, jclass cls, jstring name, jobject fontMetrics, jint maxlen)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_name = 0;
	_qstring = KStringHandlerJBridge::rEmSqueeze((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQFontMetrics&)*(const TQFontMetrics*) QtSupport::getQt(env, fontMetrics), (uint) maxlen);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_rPixelSqueeze(JNIEnv* env, jclass cls, jstring name, jobject fontMetrics, jint maxPixels)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_name = 0;
	_qstring = KStringHandlerJBridge::rPixelSqueeze((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQFontMetrics&)*(const TQFontMetrics*) QtSupport::getQt(env, fontMetrics), (uint) maxPixels);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_remrange(JNIEnv* env, jclass cls, jstring text, jstring range)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_text = 0;
static TQCString* _qstring_range = 0;
	_qstring = KStringHandlerJBridge::remrange((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const char*) QtSupport::toCharString(env, range, &_qstring_range));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_remword__Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring text, jint pos)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_text = 0;
	_qstring = KStringHandlerJBridge::remword((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (uint) pos);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_remword__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring text, jstring word)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_text = 0;
static TQString* _qstring_word = 0;
	_qstring = KStringHandlerJBridge::remword((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQString&)*(TQString*) QtSupport::toTQString(env, word, &_qstring_word));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_reverse__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring text)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_text = 0;
	_qstring = KStringHandlerJBridge::reverse((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KStringHandler_reverse___3Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray list)
{
	TQStringList  _qlist;
	(void) cls;
static TQStringList* _qlist_list = 0;
	_qlist = KStringHandlerJBridge::reverse((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, list, &_qlist_list));
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_rsqueeze__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring str)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_str = 0;
	_qstring = KStringHandlerJBridge::rsqueeze((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_rsqueeze__Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring str, jint maxlen)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_str = 0;
	_qstring = KStringHandlerJBridge::rsqueeze((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (uint) maxlen);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_setword(JNIEnv* env, jclass cls, jstring text, jstring word, jint pos)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_text = 0;
static TQString* _qstring_word = 0;
	_qstring = KStringHandlerJBridge::setword((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQString&)*(TQString*) QtSupport::toTQString(env, word, &_qstring_word), (uint) pos);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_tagURLs(JNIEnv* env, jclass cls, jstring text)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_text = 0;
	_qstring = KStringHandlerJBridge::tagURLs((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KStringHandler_word(JNIEnv* env, jclass cls, jstring text, jstring range)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_text = 0;
static TQCString* _qstring_range = 0;
	_qstring = KStringHandlerJBridge::word((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const char*) QtSupport::toCharString(env, range, &_qstring_range));
	return QtSupport::fromTQString(env, &_qstring);
}

