//Auto-generated by kalyptus. DO NOT EDIT.
#include <dom/html_document.h>
#include <dom/dom2_range.h>
#include <qcursor.h>
#include <qrect.h>
#include <kparts/browserextension.h>
#include <qdatastream.h>
#include <dom/dom_node.h>
#include <qstring.h>
#include <qpoint.h>
#include <qstringlist.h>
#include <qvariant.h>
#include <khtml_part.h>
#include <dom/dom_doc.h>
#include <kurl.h>
#include <qcstring.h>

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

class KHTMLPartJBridge : public KHTMLPart
{
public:
	KHTMLPartJBridge(QWidget* arg1,const char* arg2,QObject* arg3,const char* arg4,KHTMLPart::GUIProfile arg5) : KHTMLPart(arg1,arg2,arg3,arg4,arg5) {};
	KHTMLPartJBridge(QWidget* arg1,const char* arg2,QObject* arg3,const char* arg4) : KHTMLPart(arg1,arg2,arg3,arg4) {};
	KHTMLPartJBridge(QWidget* arg1,const char* arg2,QObject* arg3) : KHTMLPart(arg1,arg2,arg3) {};
	KHTMLPartJBridge(QWidget* arg1,const char* arg2) : KHTMLPart(arg1,arg2) {};
	KHTMLPartJBridge(QWidget* arg1) : KHTMLPart(arg1) {};
	KHTMLPartJBridge() : KHTMLPart() {};
	KHTMLPartJBridge(KHTMLView* arg1,QObject* arg2,const char* arg3,KHTMLPart::GUIProfile arg4) : KHTMLPart(arg1,arg2,arg3,arg4) {};
	KHTMLPartJBridge(KHTMLView* arg1,QObject* arg2,const char* arg3) : KHTMLPart(arg1,arg2,arg3) {};
	KHTMLPartJBridge(KHTMLView* arg1,QObject* arg2) : KHTMLPart(arg1,arg2) {};
	KHTMLPartJBridge(KHTMLView* arg1) : KHTMLPart(arg1) {};
	void public_begin() {
		KHTMLPart::begin();
		return;
	}
	void public_end() {
		KHTMLPart::end();
		return;
	}
	KURL protected_completeURL(const QString& arg1) {
		return (KURL) KHTMLPart::completeURL(arg1);
	}
	void protected_htmlError(int arg1,const QString& arg2,const KURL& arg3) {
		KHTMLPart::htmlError(arg1,arg2,arg3);
		return;
	}
	void protected_customEvent(QCustomEvent* arg1) {
		KHTMLPart::customEvent(arg1);
		return;
	}
	void protected_guiActivateEvent(KParts::GUIActivateEvent* arg1) {
		KHTMLPart::guiActivateEvent(arg1);
		return;
	}
	bool protected_openFile() {
		return (bool) KHTMLPart::openFile();
	}
	void protected_urlSelected(const QString& arg1,int arg2,int arg3,const QString& arg4,KParts::URLArgs arg5) {
		KHTMLPart::urlSelected(arg1,arg2,arg3,arg4,arg5);
		return;
	}
	void protected_urlSelected(const QString& arg1,int arg2,int arg3,const QString& arg4) {
		KHTMLPart::urlSelected(arg1,arg2,arg3,arg4);
		return;
	}
	KParts::ReadOnlyPart* protected_createPart(QWidget* arg1,const char* arg2,QObject* arg3,const char* arg4,const QString& arg5,QString& arg6,QStringList& arg7,const QStringList& arg8) {
		return (KParts::ReadOnlyPart*) KHTMLPart::createPart(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
	}
	bool protected_pluginPageQuestionAsked(const QString& arg1) {
		return (bool) KHTMLPart::pluginPageQuestionAsked(arg1);
	}
	void protected_setPluginPageQuestionAsked(const QString& arg1) {
		KHTMLPart::setPluginPageQuestionAsked(arg1);
		return;
	}
	bool protected_doOpenStream(const QString& arg1) {
		return (bool) KHTMLPart::doOpenStream(arg1);
	}
	bool protected_doWriteStream(const QByteArray& arg1) {
		return (bool) KHTMLPart::doWriteStream(arg1);
	}
	bool protected_doCloseStream() {
		return (bool) KHTMLPart::doCloseStream();
	}
	~KHTMLPartJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	bool doCloseStream() {
		return QtSupport::booleanDelegate(this,"doCloseStream");
	}
	void restoreState(QDataStream& arg1) {
		if (!QtSupport::eventDelegate(this,"restoreState",(void*)&arg1,"org.kde.qt.QDataStream")) {
			KHTMLPart::restoreState(arg1);
		}
		return;
	}
	void partSelectEvent(KParts::PartSelectEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"partSelectEvent",(void*)arg1,"org.kde.koala.PartSelectEvent")) {
			Part::partSelectEvent(arg1);
		}
		return;
	}
	void conserveMemory() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KHTMLPart","conserveMemory")) {
			KXMLGUIClient::conserveMemory();
		}
		return;
	}
	void end() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KHTMLPart","end")) {
			KHTMLPart::end();
		}
		return;
	}
	void setManager(KParts::PartManager* arg1) {
		if (!QtSupport::eventDelegate(this,"setManager",(void*)arg1,"org.kde.koala.PartManager")) {
			Part::setManager(arg1);
		}
		return;
	}
	void setWidget(QWidget* arg1) {
		if (!QtSupport::eventDelegate(this,"setWidget",(void*)arg1,"org.kde.qt.QWidget")) {
			Part::setWidget(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			KHTMLPart::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void showError(KIO::Job* arg1) {
		if (!QtSupport::eventDelegate(this,"showError",(void*)arg1,"org.kde.koala.Job")) {
			KHTMLPart::showError(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void embed(QWidget* arg1) {
		if (!QtSupport::eventDelegate(this,"embed",(void*)arg1,"org.kde.qt.QWidget")) {
			Part::embed(arg1);
		}
		return;
	}
	bool closeURL() {
		return QtSupport::booleanDelegate(this,"closeURL");
	}
	void partActivateEvent(KParts::PartActivateEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"partActivateEvent",(void*)arg1,"org.kde.koala.PartActivateEvent")) {
			Part::partActivateEvent(arg1);
		}
		return;
	}
	void guiActivateEvent(KParts::GUIActivateEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"guiActivateEvent",(void*)arg1,"org.kde.koala.GUIActivateEvent")) {
			KHTMLPart::guiActivateEvent(arg1);
		}
		return;
	}
	void saveState(QDataStream& arg1) {
		if (!QtSupport::eventDelegate(this,"saveState",(void*)&arg1,"org.kde.qt.QDataStream")) {
			KHTMLPart::saveState(arg1);
		}
		return;
	}
	bool openFile() {
		return QtSupport::booleanDelegate(this,"openFile");
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.KHTMLPart",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_activeNode(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((KHTMLPart*) QtSupport::getQt(env, obj))->activeNode()), "org.kde.koala.Node", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_autoloadImages__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->autoloadImages();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_autoloadImages__Z(JNIEnv* env, jobject obj, jboolean e)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->autoloadImages((bool) e);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_backgroundURL(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(((KHTMLPart*) QtSupport::getQt(env, obj))->backgroundURL()), "org.kde.koala.KURL", TRUE);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KHTMLPart_baseTarget(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->baseTarget();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_baseURL(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(((KHTMLPart*) QtSupport::getQt(env, obj))->baseURL()), "org.kde.koala.KURL", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_begin__(JNIEnv* env, jobject obj)
{
	((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->public_begin();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_begin__Lorg_kde_koala_KURL_2(JNIEnv* env, jobject obj, jobject url)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->begin((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_begin__Lorg_kde_koala_KURL_2I(JNIEnv* env, jobject obj, jobject url, jint xOffset)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->begin((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (int) xOffset);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_begin__Lorg_kde_koala_KURL_2II(JNIEnv* env, jobject obj, jobject url, jint xOffset, jint yOffset)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->begin((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (int) xOffset, (int) yOffset);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_browserExtension(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPart*) QtSupport::getQt(env, obj))->browserExtension(), "org.kde.koala.BrowserExtension");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_browserHostExtension(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPart*) QtSupport::getQt(env, obj))->browserHostExtension(), "org.kde.koala.BrowserHostExtension");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KHTMLPart_caretDisplayPolicyNonFocused(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KHTMLPart*) QtSupport::getQt(env, obj))->caretDisplayPolicyNonFocused();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KHTMLPart_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_closeURL(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->closeURL();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_completeURL(JNIEnv* env, jobject obj, jstring url)
{
static QString* _qstring_url = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_completeURL((const QString&)*(QString*) QtSupport::toQString(env, url, &_qstring_url))), "org.kde.koala.KURL", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_createPart(JNIEnv* env, jobject obj, jobject parentWidget, jstring widgetName, jobject parent, jstring name, jstring mimetype, jobject serviceName, jobjectArray serviceTypes, jobjectArray params)
{
static QCString* _qstring_widgetName = 0;
static QCString* _qstring_name = 0;
static QString* _qstring_mimetype = 0;
static QString* _qstring_serviceName = 0;
static QStringList* _qlist_serviceTypes = 0;
static QStringList* _qlist_params = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_createPart((QWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetName, &_qstring_widgetName), (QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const QString&)*(QString*) QtSupport::toQString(env, mimetype, &_qstring_mimetype), (QString&)*(QString*) QtSupport::toQStringFromStringBuffer(env, serviceName, &_qstring_serviceName), (QStringList&)*(QStringList*) QtSupport::toQStringList(env, serviceTypes, &_qlist_serviceTypes), (const QStringList&)*(QStringList*) QtSupport::toQStringList(env, params, &_qlist_params)), "org.kde.koala.ReadOnlyPart");
	QtSupport::fromQStringToStringBuffer(env, _qstring_serviceName, serviceName);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_currentFrame(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPart*) QtSupport::getQt(env, obj))->currentFrame(), "org.kde.koala.ReadOnlyPart");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_customEvent(JNIEnv* env, jobject obj, jobject event)
{
	((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_customEvent((QCustomEvent*) QtSupport::getQt(env, event));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KHTMLPart_dcopObjectId(JNIEnv* env, jobject obj)
{
	QCString  _qstring;
	_qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->dcopObjectId();
	return QtSupport::fromQCString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KHTMLPart_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_dndEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->dndEnabled();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_doCloseStream(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_doCloseStream();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_doOpenStream(JNIEnv* env, jobject obj, jstring mimeType)
{
static QString* _qstring_mimeType = 0;
	jboolean xret = (jboolean) ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_doOpenStream((const QString&)*(QString*) QtSupport::toQString(env, mimeType, &_qstring_mimeType));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_doWriteStream(JNIEnv* env, jobject obj, jbyteArray data)
{
static QByteArray* _qbyteArray_data = 0;
	jboolean xret = (jboolean) ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_doWriteStream((const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data));
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KHTMLPart_documentSource(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->documentSource();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_document(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Document(((KHTMLPart*) QtSupport::getQt(env, obj))->document()), "org.kde.koala.Document", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_enableJScript(JNIEnv* env, jobject obj, jboolean e)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->enableJScript((bool) e);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_enableJava(JNIEnv* env, jobject obj, jboolean e)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->enableJava((bool) e);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_enableMetaRefresh(JNIEnv* env, jobject obj, jboolean e)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->enableMetaRefresh((bool) e);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_enablePlugins(JNIEnv* env, jobject obj, jboolean e)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->enablePlugins((bool) e);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KHTMLPart_encoding(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->encoding();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_end(JNIEnv* env, jobject obj)
{
	((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->public_end();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_executeScript(JNIEnv* env, jobject obj, jobject n, jstring script)
{
static QString* _qstring_script = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QVariant(((KHTMLPart*) QtSupport::getQt(env, obj))->executeScript((const DOM::Node&)*(const DOM::Node*) QtSupport::getQt(env, n), (const QString&)*(QString*) QtSupport::toQString(env, script, &_qstring_script))), "org.kde.qt.QVariant", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((KHTMLPart*)QtSupport::getQt(env, obj))->parent() == 0) {
		delete (KHTMLPart*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_findFrameParent(JNIEnv* env, jobject obj, jobject callingPart, jstring f)
{
static QString* _qstring_f = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPart*) QtSupport::getQt(env, obj))->findFrameParent((KParts::ReadOnlyPart*) QtSupport::getQt(env, callingPart), (const QString&)*(QString*) QtSupport::toQString(env, f, &_qstring_f)), "org.kde.koala.KHTMLPart");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_findFramePart(JNIEnv* env, jobject obj, jstring f)
{
static QString* _qstring_f = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPart*) QtSupport::getQt(env, obj))->findFramePart((const QString&)*(QString*) QtSupport::toQString(env, f, &_qstring_f)), "org.kde.koala.ReadOnlyPart");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_findFrame(JNIEnv* env, jobject obj, jstring f)
{
static QString* _qstring_f = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPart*) QtSupport::getQt(env, obj))->findFrame((const QString&)*(QString*) QtSupport::toQString(env, f, &_qstring_f)), "org.kde.koala.KHTMLPart");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_findTextBegin(JNIEnv* env, jobject obj)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->findTextBegin();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_findTextNext__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->findTextNext();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_findTextNext__Z(JNIEnv* env, jobject obj, jboolean reverse)
{
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->findTextNext((bool) reverse);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_findText__(JNIEnv* env, jobject obj)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->findText();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_findText__Ljava_lang_String_2J(JNIEnv* env, jobject obj, jstring str, jlong options)
{
static QString* _qstring_str = 0;
	((KHTMLPart*) QtSupport::getQt(env, obj))->findText((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str), (long) options);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_findText__Ljava_lang_String_2JLorg_kde_qt_QWidget_2(JNIEnv* env, jobject obj, jstring str, jlong options, jobject parent)
{
static QString* _qstring_str = 0;
	((KHTMLPart*) QtSupport::getQt(env, obj))->findText((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str), (long) options, (QWidget*) QtSupport::getQt(env, parent));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_findText__Ljava_lang_String_2JLorg_kde_qt_QWidget_2Lorg_kde_koala_KFindDialog_2(JNIEnv* env, jobject obj, jstring str, jlong options, jobject parent, jobject findDialog)
{
static QString* _qstring_str = 0;
	((KHTMLPart*) QtSupport::getQt(env, obj))->findText((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str), (long) options, (QWidget*) QtSupport::getQt(env, parent), (KFindDialog*) QtSupport::getQt(env, findDialog));
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KHTMLPart_formNotification(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KHTMLPart*) QtSupport::getQt(env, obj))->formNotification();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_frameExists(JNIEnv* env, jobject obj, jstring frameName)
{
static QString* _qstring_frameName = 0;
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->frameExists((const QString&)*(QString*) QtSupport::toQString(env, frameName, &_qstring_frameName));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_frameNames(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((KHTMLPart*) QtSupport::getQt(env, obj))->frameNames();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_gotoAnchor(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->gotoAnchor((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_guiActivateEvent(JNIEnv* env, jobject obj, jobject event)
{
	((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_guiActivateEvent((KParts::GUIActivateEvent*) QtSupport::getQt(env, event));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_hasSelection(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->hasSelection();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_hide(JNIEnv* env, jobject obj)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->hide();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_htmlDocument(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::HTMLDocument(((KHTMLPart*) QtSupport::getQt(env, obj))->htmlDocument()), "org.kde.koala.HTMLDocument", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_htmlError(JNIEnv* env, jobject obj, jint errorCode, jstring text, jobject reqUrl)
{
static QString* _qstring_text = 0;
	((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_htmlError((int) errorCode, (const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const KURL&)*(const KURL*) QtSupport::getQt(env, reqUrl));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_inProgress(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->inProgress();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_isCaretMode(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->isCaretMode();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_isEditable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->isEditable();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_isModified(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->isModified();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_jScriptEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->jScriptEnabled();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_javaEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->javaEnabled();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KHTMLPart_jsDefaultStatusBarText(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->jsDefaultStatusBarText();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KHTMLPart_jsStatusBarText(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->jsStatusBarText();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KHTMLPart_lastModified(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->lastModified();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPart*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_metaRefreshEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->metaRefreshEnabled();
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_newKHTMLPart__Lorg_kde_koala_KHTMLView_2Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject view, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KHTMLPartJBridge((KHTMLView*) QtSupport::getQt(env, view), (QObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_newKHTMLPart__Lorg_kde_koala_KHTMLView_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject view, jobject parent, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KHTMLPartJBridge((KHTMLView*) QtSupport::getQt(env, view), (QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_newKHTMLPart__Lorg_kde_koala_KHTMLView_2Lorg_kde_qt_QObject_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jobject view, jobject parent, jstring name, jint prof)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KHTMLPartJBridge((KHTMLView*) QtSupport::getQt(env, view), (QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (KHTMLPart::GUIProfile) prof));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_newKHTMLPart__Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parentWidget, jstring widgetname)
{
static QCString* _qstring_widgetname = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KHTMLPartJBridge((QWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetname, &_qstring_widgetname)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_newKHTMLPart__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject parentWidget, jstring widgetname, jobject parent)
{
static QCString* _qstring_widgetname = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KHTMLPartJBridge((QWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetname, &_qstring_widgetname), (QObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_newKHTMLPart__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parentWidget, jstring widgetname, jobject parent, jstring name)
{
static QCString* _qstring_widgetname = 0;
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KHTMLPartJBridge((QWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetname, &_qstring_widgetname), (QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_newKHTMLPart__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jobject parentWidget, jstring widgetname, jobject parent, jstring name, jint prof)
{
static QCString* _qstring_widgetname = 0;
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KHTMLPartJBridge((QWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetname, &_qstring_widgetname), (QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (KHTMLPart::GUIProfile) prof));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_nextAnchor(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->nextAnchor();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_nodeUnderMouse(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((KHTMLPart*) QtSupport::getQt(env, obj))->nodeUnderMouse()), "org.kde.koala.Node", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_nonSharedNodeUnderMouse(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((KHTMLPart*) QtSupport::getQt(env, obj))->nonSharedNodeUnderMouse()), "org.kde.koala.Node", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_onlyLocalReferences(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->onlyLocalReferences();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_openFile(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_openFile();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_openURL(JNIEnv* env, jobject obj, jobject url)
{
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->openURL((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KHTMLPart_pageReferrer(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->pageReferrer();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_paint__Lorg_kde_qt_QPainter_2Lorg_kde_qt_QRect_2(JNIEnv* env, jobject obj, jobject arg1, jobject arg2)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->paint((QPainter*) QtSupport::getQt(env, arg1), (const QRect&)*(const QRect*) QtSupport::getQt(env, arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_paint__Lorg_kde_qt_QPainter_2Lorg_kde_qt_QRect_2I(JNIEnv* env, jobject obj, jobject arg1, jobject arg2, jint arg3)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->paint((QPainter*) QtSupport::getQt(env, arg1), (const QRect&)*(const QRect*) QtSupport::getQt(env, arg2), (int) arg3);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_paint__Lorg_kde_qt_QPainter_2Lorg_kde_qt_QRect_2I_3Z(JNIEnv* env, jobject obj, jobject arg1, jobject arg2, jint arg3, jbooleanArray arg4)
{
	bool* _bool_arg4 = QtSupport::toBooleanPtr(env, arg4);
	((KHTMLPart*) QtSupport::getQt(env, obj))->paint((QPainter*) QtSupport::getQt(env, arg1), (const QRect&)*(const QRect*) QtSupport::getQt(env, arg2), (int) arg3,  (bool*) _bool_arg4);
	env->SetBooleanArrayRegion(arg4, 0, 1, (jboolean*) _bool_arg4);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_parentPart(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPart*) QtSupport::getQt(env, obj))->parentPart(), "org.kde.koala.KHTMLPart");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_partManager(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPart*) QtSupport::getQt(env, obj))->partManager(), "org.kde.koala.PartManager");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_pluginPageQuestionAsked(JNIEnv* env, jobject obj, jstring mimetype)
{
static QString* _qstring_mimetype = 0;
	jboolean xret = (jboolean) ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_pluginPageQuestionAsked((const QString&)*(QString*) QtSupport::toQString(env, mimetype, &_qstring_mimetype));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_pluginsEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->pluginsEnabled();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_preloadScript(JNIEnv* env, jobject obj, jstring url, jstring script)
{
static QString* _qstring_url = 0;
static QString* _qstring_script = 0;
	((KHTMLPart*) QtSupport::getQt(env, obj))->preloadScript((const QString&)*(QString*) QtSupport::toQString(env, url, &_qstring_url), (const QString&)*(QString*) QtSupport::toQString(env, script, &_qstring_script));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_preloadStyleSheet(JNIEnv* env, jobject obj, jstring url, jstring stylesheet)
{
static QString* _qstring_url = 0;
static QString* _qstring_stylesheet = 0;
	((KHTMLPart*) QtSupport::getQt(env, obj))->preloadStyleSheet((const QString&)*(QString*) QtSupport::toQString(env, url, &_qstring_url), (const QString&)*(QString*) QtSupport::toQString(env, stylesheet, &_qstring_stylesheet));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_prevAnchor(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->prevAnchor();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KHTMLPart_referrer(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->referrer();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_restoreState(JNIEnv* env, jobject obj, jobject stream)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->restoreState((QDataStream&)*(QDataStream*) QtSupport::getQt(env, stream));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_restored(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->restored();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_saveState(JNIEnv* env, jobject obj, jobject stream)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->saveState((QDataStream&)*(QDataStream*) QtSupport::getQt(env, stream));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_scheduleRedirection__ILjava_lang_String_2(JNIEnv* env, jobject obj, jint delay, jstring url)
{
static QString* _qstring_url = 0;
	((KHTMLPart*) QtSupport::getQt(env, obj))->scheduleRedirection((int) delay, (const QString&)*(QString*) QtSupport::toQString(env, url, &_qstring_url));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_scheduleRedirection__ILjava_lang_String_2Z(JNIEnv* env, jobject obj, jint delay, jstring url, jboolean lockHistory)
{
static QString* _qstring_url = 0;
	((KHTMLPart*) QtSupport::getQt(env, obj))->scheduleRedirection((int) delay, (const QString&)*(QString*) QtSupport::toQString(env, url, &_qstring_url), (bool) lockHistory);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_selectAll(JNIEnv* env, jobject obj)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->selectAll();
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KHTMLPart_selectedTextAsHTML(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->selectedTextAsHTML();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KHTMLPart_selectedText(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->selectedText();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_selection__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Range(((KHTMLPart*) QtSupport::getQt(env, obj))->selection()), "org.kde.koala.Range", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_selection__Lorg_kde_koala_Node_2JLorg_kde_koala_Node_2J(JNIEnv* env, jobject obj, jobject startNode, jlong startOffset, jobject endNode, jlong endOffset)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->selection((DOM::Node&)*(DOM::Node*) QtSupport::getQt(env, startNode), (long&) startOffset, (DOM::Node&)*(DOM::Node*) QtSupport::getQt(env, endNode), (long&) endOffset);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setActiveNode(JNIEnv* env, jobject obj, jobject node)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setActiveNode((const DOM::Node&)*(const DOM::Node*) QtSupport::getQt(env, node));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setAutoloadImages(JNIEnv* env, jobject obj, jboolean enable)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setAutoloadImages((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setCaretDisplayPolicyNonFocused(JNIEnv* env, jobject obj, jint policy)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setCaretDisplayPolicyNonFocused((KHTMLPart::CaretDisplayPolicy) policy);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setCaretMode(JNIEnv* env, jobject obj, jboolean enable)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setCaretMode((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setCaretPosition__Lorg_kde_koala_Node_2J(JNIEnv* env, jobject obj, jobject node, jlong offset)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setCaretPosition((DOM::Node)*(DOM::Node*) QtSupport::getQt(env, node), (long) offset);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setCaretPosition__Lorg_kde_koala_Node_2JZ(JNIEnv* env, jobject obj, jobject node, jlong offset, jboolean extendSelection)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setCaretPosition((DOM::Node)*(DOM::Node*) QtSupport::getQt(env, node), (long) offset, (bool) extendSelection);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setCaretVisible(JNIEnv* env, jobject obj, jboolean show)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setCaretVisible((bool) show);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_setCharset(JNIEnv* env, jobject obj, jstring arg1, jboolean arg2)
{
static QString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->setCharset((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (bool) arg2);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setDNDEnabled(JNIEnv* env, jobject obj, jboolean b)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setDNDEnabled((bool) b);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setEditable(JNIEnv* env, jobject obj, jboolean enable)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setEditable((bool) enable);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_setEncoding__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->setEncoding((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_setEncoding__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring name, jboolean override)
{
static QString* _qstring_name = 0;
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->setEncoding((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (bool) override);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setFixedFont(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	((KHTMLPart*) QtSupport::getQt(env, obj))->setFixedFont((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setFormNotification(JNIEnv* env, jobject obj, jint fn)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setFormNotification((KHTMLPart::FormNotification) fn);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setJSDefaultStatusBarText(JNIEnv* env, jobject obj, jstring text)
{
static QString* _qstring_text = 0;
	((KHTMLPart*) QtSupport::getQt(env, obj))->setJSDefaultStatusBarText((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setJSStatusBarText(JNIEnv* env, jobject obj, jstring text)
{
static QString* _qstring_text = 0;
	((KHTMLPart*) QtSupport::getQt(env, obj))->setJSStatusBarText((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setJScriptEnabled(JNIEnv* env, jobject obj, jboolean enable)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setJScriptEnabled((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setJavaEnabled(JNIEnv* env, jobject obj, jboolean enable)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setJavaEnabled((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setMetaRefreshEnabled(JNIEnv* env, jobject obj, jboolean enable)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setMetaRefreshEnabled((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setOnlyLocalReferences(JNIEnv* env, jobject obj, jboolean enable)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setOnlyLocalReferences((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setPluginPageQuestionAsked(JNIEnv* env, jobject obj, jstring mimetype)
{
static QString* _qstring_mimetype = 0;
	((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_setPluginPageQuestionAsked((const QString&)*(QString*) QtSupport::toQString(env, mimetype, &_qstring_mimetype));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setPluginsEnabled(JNIEnv* env, jobject obj, jboolean enable)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setPluginsEnabled((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setSelection(JNIEnv* env, jobject obj, jobject arg1)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setSelection((const DOM::Range&)*(const DOM::Range*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setStandardFont(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	((KHTMLPart*) QtSupport::getQt(env, obj))->setStandardFont((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setStatusMessagesEnabled(JNIEnv* env, jobject obj, jboolean enable)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setStatusMessagesEnabled((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setSuppressedPopupIndicator(JNIEnv* env, jobject obj, jboolean enable, jobject originPart)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setSuppressedPopupIndicator((bool) enable, (KHTMLPart*) QtSupport::getQt(env, originPart));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setURLCursor(JNIEnv* env, jobject obj, jobject c)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setURLCursor((const QCursor&)*(const QCursor*) QtSupport::getQt(env, c));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setUserStyleSheet__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring styleSheet)
{
static QString* _qstring_styleSheet = 0;
	((KHTMLPart*) QtSupport::getQt(env, obj))->setUserStyleSheet((const QString&)*(QString*) QtSupport::toQString(env, styleSheet, &_qstring_styleSheet));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setUserStyleSheet__Lorg_kde_koala_KURL_2(JNIEnv* env, jobject obj, jobject url)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setUserStyleSheet((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_setZoomFactor(JNIEnv* env, jobject obj, jint percent)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->setZoomFactor((int) percent);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_settings(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPart*) QtSupport::getQt(env, obj))->settings(), "org.kde.koala.KHTMLSettings");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_showError(JNIEnv* env, jobject obj, jobject job)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->showError((KIO::Job*) QtSupport::getQt(env, job));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_show(JNIEnv* env, jobject obj)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->show();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLPart_statusMessagesEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->statusMessagesEnabled();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_stopAnimations(JNIEnv* env, jobject obj)
{
	((KHTMLPart*) QtSupport::getQt(env, obj))->stopAnimations();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_submitFormProxy__Ljava_lang_String_2Ljava_lang_String_2_3BLjava_lang_String_2(JNIEnv* env, jobject obj, jstring action, jstring url, jbyteArray formData, jstring target)
{
static QCString* _qstring_action = 0;
static QString* _qstring_url = 0;
static QByteArray* _qbyteArray_formData = 0;
static QString* _qstring_target = 0;
	((KHTMLPart*) QtSupport::getQt(env, obj))->submitFormProxy((const char*) QtSupport::toCharString(env, action, &_qstring_action), (const QString&)*(QString*) QtSupport::toQString(env, url, &_qstring_url), (const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, formData, &_qbyteArray_formData), (const QString&)*(QString*) QtSupport::toQString(env, target, &_qstring_target));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_submitFormProxy__Ljava_lang_String_2Ljava_lang_String_2_3BLjava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring action, jstring url, jbyteArray formData, jstring target, jstring contentType)
{
static QCString* _qstring_action = 0;
static QString* _qstring_url = 0;
static QByteArray* _qbyteArray_formData = 0;
static QString* _qstring_target = 0;
static QString* _qstring_contentType = 0;
	((KHTMLPart*) QtSupport::getQt(env, obj))->submitFormProxy((const char*) QtSupport::toCharString(env, action, &_qstring_action), (const QString&)*(QString*) QtSupport::toQString(env, url, &_qstring_url), (const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, formData, &_qbyteArray_formData), (const QString&)*(QString*) QtSupport::toQString(env, target, &_qstring_target), (const QString&)*(QString*) QtSupport::toQString(env, contentType, &_qstring_contentType));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_submitFormProxy__Ljava_lang_String_2Ljava_lang_String_2_3BLjava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring action, jstring url, jbyteArray formData, jstring target, jstring contentType, jstring boundary)
{
static QCString* _qstring_action = 0;
static QString* _qstring_url = 0;
static QByteArray* _qbyteArray_formData = 0;
static QString* _qstring_target = 0;
static QString* _qstring_contentType = 0;
static QString* _qstring_boundary = 0;
	((KHTMLPart*) QtSupport::getQt(env, obj))->submitFormProxy((const char*) QtSupport::toCharString(env, action, &_qstring_action), (const QString&)*(QString*) QtSupport::toQString(env, url, &_qstring_url), (const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, formData, &_qbyteArray_formData), (const QString&)*(QString*) QtSupport::toQString(env, target, &_qstring_target), (const QString&)*(QString*) QtSupport::toQString(env, contentType, &_qstring_contentType), (const QString&)*(QString*) QtSupport::toQString(env, boundary, &_qstring_boundary));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_toplevelURL(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(((KHTMLPart*) QtSupport::getQt(env, obj))->toplevelURL()), "org.kde.koala.KURL", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_urlCursor(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QCursor(((KHTMLPart*) QtSupport::getQt(env, obj))->urlCursor()), "org.kde.qt.QCursor", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_urlSelected__Ljava_lang_String_2IILjava_lang_String_2(JNIEnv* env, jobject obj, jstring url, jint button, jint state, jstring _target)
{
static QString* _qstring_url = 0;
static QString* _qstring__target = 0;
	((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_urlSelected((const QString&)*(QString*) QtSupport::toQString(env, url, &_qstring_url), (int) button, (int) state, (const QString&)*(QString*) QtSupport::toQString(env, _target, &_qstring__target));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_urlSelected__Ljava_lang_String_2IILjava_lang_String_2Lorg_kde_koala_URLArgs_2(JNIEnv* env, jobject obj, jstring url, jint button, jint state, jstring _target, jobject args)
{
static QString* _qstring_url = 0;
static QString* _qstring__target = 0;
	((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_urlSelected((const QString&)*(QString*) QtSupport::toQString(env, url, &_qstring_url), (int) button, (int) state, (const QString&)*(QString*) QtSupport::toQString(env, _target, &_qstring__target), (KParts::URLArgs)*(KParts::URLArgs*) QtSupport::getQt(env, args));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KHTMLPart_view(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPart*) QtSupport::getQt(env, obj))->view(), "org.kde.koala.KHTMLView");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_write__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring str)
{
static QCString* _qstring_str = 0;
	((KHTMLPart*) QtSupport::getQt(env, obj))->write((const char*) QtSupport::toCharString(env, str, &_qstring_str));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLPart_write__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring str, jint len)
{
static QCString* _qstring_str = 0;
	((KHTMLPart*) QtSupport::getQt(env, obj))->write((const char*) QtSupport::toCharString(env, str, &_qstring_str), (int) len);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KHTMLPart_zoomFactor(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KHTMLPart*) QtSupport::getQt(env, obj))->zoomFactor();
	return xret;
}

