/***************************************************************************
                            KEditToolbarWidget.cpp -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

#define _BOOL_H_
#include <kedittoolbar.h>
#include <qstring.h>
#include <qcstring.h>

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

class KEditToolbarWidgetJBridge : public KEditToolbarWidget
{
public:
	KEditToolbarWidgetJBridge(KActionCollection* collection, const QString& file, bool global, QWidget* parent) : KEditToolbarWidget(collection, file, global, parent) {}
	KEditToolbarWidgetJBridge(KXMLGUIFactory* factory, QWidget* parent) : KEditToolbarWidget(factory, parent) {}
	~KEditToolbarWidgetJBridge() {QtSupport::qtKeyDeleted(this);}
	void protected_setupLayout() {
		KEditToolbarWidget::setupLayout();
		return;
	}
	void protected_loadToolbarCombo() {
		KEditToolbarWidget::loadToolbarCombo();
		return;
	}
	void protected_loadActionList(QDomElement& elem) {
		KEditToolbarWidget::loadActionList(elem);
		return;
	}
	void protected_updateLocal(QDomElement& elem) {
		KEditToolbarWidget::updateLocal(elem);
		return;
	}
	void protected_slotToolbarSelected(const QString& text) {
		KEditToolbarWidget::slotToolbarSelected(text);
		return;
	}
	void protected_slotInactiveSelected(QListViewItem* item) {
		KEditToolbarWidget::slotInactiveSelected(item);
		return;
	}
	void protected_slotActiveSelected(QListViewItem* item) {
		KEditToolbarWidget::slotActiveSelected(item);
		return;
	}
	void protected_slotInsertButton() {
		KEditToolbarWidget::slotInsertButton();
		return;
	}
	void protected_slotRemoveButton() {
		KEditToolbarWidget::slotRemoveButton();
		return;
	}
	void protected_slotUpButton() {
		KEditToolbarWidget::slotUpButton();
		return;
	}
	void protected_slotDownButton() {
		KEditToolbarWidget::slotDownButton();
		return;
	}
	void protected_setInstance(KInstance* instance) {
		KEditToolbarWidget::setInstance(instance);
		return;
	}
	void protected_setXMLFile(const QString& file, bool merge, bool setXMLDoc) {
		KEditToolbarWidget::setXMLFile(file, merge, setXMLDoc);
		return;
	}
	void protected_setLocalXMLFile(const QString& file) {
		KEditToolbarWidget::setLocalXMLFile(file);
		return;
	}
	void protected_setXML(const QString& document, bool merge) {
		KEditToolbarWidget::setXML(document, merge);
		return;
	}
	void protected_setDOMDocument(const QDomDocument& document, bool merge) {
		KEditToolbarWidget::setDOMDocument(document, merge);
		return;
	}
	void protected_conserveMemory() {
		KEditToolbarWidget::conserveMemory();
		return;
	}
	void protected_stateChanged(const QString& newstate) {
		KEditToolbarWidget::stateChanged(newstate);
		return;
	}	
	void keyPressEvent(QKeyEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "keyPressEvent", arg1, "org.kde.qt.QKeyEvent")) {
			QWidget::keyPressEvent(arg1);
		}
		return;
	}
	void keyReleaseEvent(QKeyEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "keyReleaseEvent", arg1, "org.kde.qt.QKeyEvent")) {
			QWidget::keyReleaseEvent(arg1);
		}
		return;
	}
	void focusOutEvent(QFocusEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "focusOutEvent", arg1, "org.kde.qt.QFocusEvent")) {
			QWidget::focusOutEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "childEvent", arg1, "org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void dragMoveEvent(QDragMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragMoveEvent", arg1, "org.kde.qt.QDragMoveEvent")) {
			QWidget::dragMoveEvent(arg1);
		}
		return;
	}
	void leaveEvent(QEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "leaveEvent", arg1, "org.kde.qt.QEvent")) {
			QWidget::leaveEvent(arg1);
		}
		return;
	}
	void tabletEvent(QTabletEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "tabletEvent", arg1, "org.kde.qt.QTabletEvent")) {
			QWidget::tabletEvent(arg1);
		}
		return;
	}
	void showEvent(QShowEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "showEvent", arg1, "org.kde.qt.QShowEvent")) {
			QWidget::showEvent(arg1);
		}
		return;
	}
	void contextMenuEvent(QContextMenuEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contextMenuEvent", arg1, "org.kde.qt.QContextMenuEvent")) {
			QWidget::contextMenuEvent(arg1);
		}
		return;
	}
	void mousePressEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mousePressEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QWidget::mousePressEvent(arg1);
		}
		return;
	}
	void imComposeEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imComposeEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imComposeEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "customEvent", arg1, "org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void mouseReleaseEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseReleaseEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QWidget::mouseReleaseEvent(arg1);
		}
		return;
	}
	void mouseDoubleClickEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseDoubleClickEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QWidget::mouseDoubleClickEvent(arg1);
		}
		return;
	}
	void dragLeaveEvent(QDragLeaveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragLeaveEvent", arg1, "org.kde.qt.QDragLeaveEvent")) {
			QWidget::dragLeaveEvent(arg1);
		}
		return;
	}
	void enterEvent(QEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "enterEvent", arg1, "org.kde.qt.QEvent")) {
			QWidget::enterEvent(arg1);
		}
		return;
	}
	void focusInEvent(QFocusEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "focusInEvent", arg1, "org.kde.qt.QFocusEvent")) {
			QWidget::focusInEvent(arg1);
		}
		return;
	}
	void imEndEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imEndEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imEndEvent(arg1);
		}
		return;
	}
	void dropEvent(QDropEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dropEvent", arg1, "org.kde.qt.QDropEvent")) {
			QWidget::dropEvent(arg1);
		}
		return;
	}
	void dragEnterEvent(QDragEnterEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragEnterEvent", arg1, "org.kde.qt.QDragEnterEvent")) {
			QWidget::dragEnterEvent(arg1);
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseMoveEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QWidget::mouseMoveEvent(arg1);
		}
		return;
	}
	void moveEvent(QMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "moveEvent", arg1, "org.kde.qt.QMoveEvent")) {
			QWidget::moveEvent(arg1);
		}
		return;
	}
	void wheelEvent(QWheelEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "wheelEvent", arg1, "org.kde.qt.QWheelEvent")) {
			QWidget::wheelEvent(arg1);
		}
		return;
	}
	void hideEvent(QHideEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "hideEvent", arg1, "org.kde.qt.QHideEvent")) {
			QWidget::hideEvent(arg1);
		}
		return;
	}
	void imStartEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imStartEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imStartEvent(arg1);
		}
		return;
	}
	void closeEvent(QCloseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "closeEvent", arg1, "org.kde.qt.QCloseEvent")) {
			QWidget::closeEvent(arg1);
		}
		return;
	}
	void paintEvent(QPaintEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "paintEvent", arg1, "org.kde.qt.QPaintEvent")) {
			QWidget::paintEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "timerEvent", arg1, "org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void resizeEvent(QResizeEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "resizeEvent", arg1, "org.kde.qt.QResizeEvent")) {
			QWidget::resizeEvent(arg1);
		}
		return;
	}
};


JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_newKEditToolbarWidget__Lorg_kde_koala_KActionCollection_2Ljava_lang_String_2ZLorg_kde_qt_QWidget_2(JNIEnv *env, jobject obj, jobject collection, jstring file, jboolean global, jobject parent)
{
static QString * _qstring_file = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KEditToolbarWidgetJBridge((KActionCollection*) QtSupport::getQt(env, collection), (QString&) * (QString *) QtSupport::toQString(env, file, &_qstring_file), (bool) global, (QWidget*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_newKEditToolbarWidget__Lorg_kde_koala_KActionCollection_2(JNIEnv *env, jobject obj, jobject collection)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KEditToolbarWidgetJBridge((KActionCollection*) QtSupport::getQt(env, collection), QString::null, true, 0L));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_newKEditToolbarWidget__Lorg_kde_koala_KXMLGUIFactory_2Lorg_kde_qt_QWidget_2(JNIEnv *env, jobject obj, jobject factory, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KEditToolbarWidgetJBridge((KXMLGUIFactory*) QtSupport::getQt(env, factory), (QWidget*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_newKEditToolbarWidget__Lorg_kde_koala_KXMLGUIFactory_2(JNIEnv *env, jobject obj, jobject factory)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KEditToolbarWidgetJBridge((KXMLGUIFactory*) QtSupport::getQt(env, factory), 0L));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_finalize(JNIEnv *env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((KEditToolbarWidget*)QtSupport::getQt(env, obj))->parentWidget(TRUE) == (QWidget *) 0) {
		delete (KEditToolbarWidget*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_dispose(JNIEnv *env, jobject obj)
{
	Java_org_kde_koala_KEditToolbarWidget_finalize(env, obj);
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KEditToolbarWidget_save(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KEditToolbarWidget*) QtSupport::getQt(env, obj))->save();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_setupLayout(JNIEnv *env, jobject obj)
{
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->protected_setupLayout();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_loadToolbarCombo(JNIEnv *env, jobject obj)
{
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->protected_loadToolbarCombo();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_loadActionList(JNIEnv *env, jobject obj, jobject elem)
{
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->protected_loadActionList((QDomElement&) *(QDomElement *) QtSupport::getQt(env, elem));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_updateLocal(JNIEnv *env, jobject obj, jobject elem)
{
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->protected_updateLocal((QDomElement&) *(QDomElement *) QtSupport::getQt(env, elem));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_slotInactiveSelected(JNIEnv *env, jobject obj, jobject item)
{
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->protected_slotInactiveSelected((QListViewItem*) QtSupport::getQt(env, item));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_slotActiveSelected(JNIEnv *env, jobject obj, jobject item)
{
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->protected_slotActiveSelected((QListViewItem*) QtSupport::getQt(env, item));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_slotInsertButton(JNIEnv *env, jobject obj)
{
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->protected_slotInsertButton();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_slotRemoveButton(JNIEnv *env, jobject obj)
{
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->protected_slotRemoveButton();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_slotUpButton(JNIEnv *env, jobject obj)
{
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->protected_slotUpButton();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_slotDownButton(JNIEnv *env, jobject obj)
{
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->protected_slotDownButton();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KEditToolbarWidget_action__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring name)
{
static QCString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->action((char*) QtSupport::toCharString(env, name, &_qstring_name)), "org.kde.koala.KAction");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KEditToolbarWidget_action__Lorg_kde_qt_QDomElement_2(JNIEnv *env, jobject obj, jobject element)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->action((QDomElement&) *(QDomElement *) QtSupport::getQt(env, element)), "org.kde.koala.KAction");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KEditToolbarWidget_instance(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->instance(), "org.kde.koala.KInstanceInterface");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KEditToolbarWidget_domDocument(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QDomDocument (((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->domDocument()), "org.kde.qt.QDomDocument", TRUE);
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_setXMLGUIBuildDocument(JNIEnv *env, jobject obj, jobject doc)
{
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->setXMLGUIBuildDocument((QDomDocument&) *(QDomDocument *) QtSupport::getQt(env, doc));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KEditToolbarWidget_xmlguiBuildDocument(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QDomDocument (((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->xmlguiBuildDocument()), "org.kde.qt.QDomDocument", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_setFactory(JNIEnv *env, jobject obj, jobject factory)
{
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->setFactory((KXMLGUIFactory*) QtSupport::getQt(env, factory));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KEditToolbarWidget_factory(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->factory(), "org.kde.koala.KXMLGUIFactory");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KEditToolbarWidget_parentClient(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->parentClient(), "org.kde.koala.KEditToolbarWidgetInterface");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_insertChildClient(JNIEnv *env, jobject obj, jobject child)
{
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->insertChildClient((KEditToolbarWidget*) QtSupport::getQt(env, child));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_removeChildClient(JNIEnv *env, jobject obj, jobject child)
{
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->removeChildClient((KEditToolbarWidget*) QtSupport::getQt(env, child));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_setClientBuilder(JNIEnv *env, jobject obj, jobject builder)
{
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->setClientBuilder((KXMLGUIBuilder*) QtSupport::getQt(env, builder));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KEditToolbarWidget_clientBuilder(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->clientBuilder(), "org.kde.koala.KXMLGUIBuilderInterface");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_reloadXML(JNIEnv *env, jobject obj)
{
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->reloadXML();
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KEditToolbarWidget_findMostRecentXMLFile(JNIEnv *env, jclass obj, jobjectArray files, jstring doc)
{
	QString  _qstring;
static QString * _qstring_doc = 0;
static QStringList * _qlist_files = 0;
	_qstring = KEditToolbarWidgetJBridge::findMostRecentXMLFile((QStringList&) * (QStringList *) QtSupport::toQStringList(env, files, &_qlist_files), (QString&) * (QString *) QtSupport::toQString(env, doc, &_qstring_doc));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_setInstance(JNIEnv *env, jobject obj, jobject instance)
{
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->protected_setInstance((KInstance*) QtSupport::getQt(env, instance));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_setXMLFile__Ljava_lang_String_2ZZ(JNIEnv *env, jobject obj, jstring file, jboolean merge, jboolean setXMLDoc)
{
static QString * _qstring_file = 0;
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->protected_setXMLFile((QString&) * (QString *) QtSupport::toQString(env, file, &_qstring_file), (bool) merge, (bool) setXMLDoc);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_setXMLFile__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring file)
{
static QString * _qstring_file = 0;
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->protected_setXMLFile((QString&) * (QString *) QtSupport::toQString(env, file, &_qstring_file), false, true);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_setLocalXMLFile(JNIEnv *env, jobject obj, jstring file)
{
static QString * _qstring_file = 0;
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->protected_setLocalXMLFile((QString&) * (QString *) QtSupport::toQString(env, file, &_qstring_file));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_setXML__Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jstring document, jboolean merge)
{
static QString * _qstring_document = 0;
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->protected_setXML((QString&) * (QString *) QtSupport::toQString(env, document, &_qstring_document), (bool) merge);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_setXML__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring document)
{
static QString * _qstring_document = 0;
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->protected_setXML((QString&) * (QString *) QtSupport::toQString(env, document, &_qstring_document), false);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_setDOMDocument__Lorg_kde_qt_QDomDocument_2Z(JNIEnv *env, jobject obj, jobject document, jboolean merge)
{
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->protected_setDOMDocument((QDomDocument&) *(QDomDocument *) QtSupport::getQt(env, document), (bool) merge);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_setDOMDocument__Lorg_kde_qt_QDomDocument_2(JNIEnv *env, jobject obj, jobject document)
{
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->protected_setDOMDocument((QDomDocument&) *(QDomDocument *) QtSupport::getQt(env, document), false);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_conserveMemory(JNIEnv *env, jobject obj)
{
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->protected_conserveMemory();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_addStateActionEnabled(JNIEnv *env, jobject obj, jstring state, jstring action)
{
static QString * _qstring_action = 0;
static QString * _qstring_state = 0;
	((KXMLGUIClient *) (KEditToolbarWidget*) QtSupport::getQt(env, obj))->addStateActionEnabled((QString&) * (QString *) QtSupport::toQString(env, state, &_qstring_state), (QString&) * (QString *) QtSupport::toQString(env, action, &_qstring_action));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_addStateActionDisabled(JNIEnv *env, jobject obj, jstring state, jstring action)
{
static QString * _qstring_action = 0;
static QString * _qstring_state = 0;
	((KXMLGUIClient *) (KEditToolbarWidget*) QtSupport::getQt(env, obj))->addStateActionDisabled((QString&) * (QString *) QtSupport::toQString(env, state, &_qstring_state), (QString&) * (QString *) QtSupport::toQString(env, action, &_qstring_action));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KEditToolbarWidget_stateChanged(JNIEnv *env, jobject obj, jstring newstate)
{
static QString * _qstring_newstate = 0;
	((KEditToolbarWidgetJBridge*) QtSupport::getQt(env, obj))->protected_stateChanged((QString&) * (QString *) QtSupport::toQString(env, newstate, &_qstring_newstate));
	return;
}

