/***************************************************************************
                            KHTMLView.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 <khtmlview.h>
#include <qstring.h>
#include <qcstring.h>

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

class KHTMLViewJBridge : public KHTMLView
{
public:
	KHTMLViewJBridge(KHTMLPart* part, QWidget* parent, const char* name) : KHTMLView(part, parent, name) {}
	~KHTMLViewJBridge() {QtSupport::qtKeyDeleted(this);}
	void protected_clear() {
		KHTMLView::clear();
		return;
	}
	void protected_resizeEvent(QResizeEvent* event) {
		KHTMLView::resizeEvent(event);
		return;
	}
	void protected_showEvent(QShowEvent* arg1) {
		KHTMLView::showEvent(arg1);
		return;
	}
	void protected_hideEvent(QHideEvent* arg1) {
		KHTMLView::hideEvent(arg1);
		return;
	}
	bool  protected_focusNextPrevChild(bool next) {
		return ( bool ) KHTMLView::focusNextPrevChild(next);
	}
	void protected_drawContents(QPainter* p, int clipx, int clipy, int clipw, int cliph) {
		KHTMLView::drawContents(p, clipx, clipy, clipw, cliph);
		return;
	}
	void protected_drawContents(QPainter* arg1) {
		KHTMLView::drawContents(arg1);
		return;
	}
	void protected_viewportMousePressEvent(QMouseEvent* arg1) {
		KHTMLView::viewportMousePressEvent(arg1);
		return;
	}
	void protected_focusOutEvent(QFocusEvent* arg1) {
		KHTMLView::focusOutEvent(arg1);
		return;
	}
	void protected_viewportMouseDoubleClickEvent(QMouseEvent* arg1) {
		KHTMLView::viewportMouseDoubleClickEvent(arg1);
		return;
	}
	void protected_viewportMouseMoveEvent(QMouseEvent* arg1) {
		KHTMLView::viewportMouseMoveEvent(arg1);
		return;
	}
	void protected_viewportMouseReleaseEvent(QMouseEvent* arg1) {
		KHTMLView::viewportMouseReleaseEvent(arg1);
		return;
	}
	void protected_viewportWheelEvent(QWheelEvent* arg1) {
		KHTMLView::viewportWheelEvent(arg1);
		return;
	}
	void protected_keyPressEvent(QKeyEvent* _ke) {
		KHTMLView::keyPressEvent(_ke);
		return;
	}
	void protected_keyReleaseEvent(QKeyEvent* _ke) {
		KHTMLView::keyReleaseEvent(_ke);
		return;
	}
	void protected_contentsContextMenuEvent(QContextMenuEvent* _ce) {
		KHTMLView::contentsContextMenuEvent(_ce);
		return;
	}
	void protected_doAutoScroll() {
		KHTMLView::doAutoScroll();
		return;
	}
	void protected_timerEvent(QTimerEvent* arg1) {
		KHTMLView::timerEvent(arg1);
		return;
	}
	void protected_slotPaletteChanged() {
		KHTMLView::slotPaletteChanged();
		return;
	}
	void protected_slotScrollBarMoved() {
		KHTMLView::slotScrollBarMoved();
		return;
	}
	void keyPressEvent(QKeyEvent* _ke) {
		if (! QtSupport::eventDelegate(this, "keyPressEvent", _ke, "org.kde.qt.QKeyEvent")) {
			KHTMLView::keyPressEvent(_ke);
		}
		return;
	}
	void keyReleaseEvent(QKeyEvent* _ke) {
		if (! QtSupport::eventDelegate(this, "keyReleaseEvent", _ke, "org.kde.qt.QKeyEvent")) {
			KHTMLView::keyReleaseEvent(_ke);
		}
		return;
	}
	void focusOutEvent(QFocusEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "focusOutEvent", arg1, "org.kde.qt.QFocusEvent")) {
			KHTMLView::focusOutEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "childEvent", arg1, "org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void viewportDragMoveEvent(QDragMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportDragMoveEvent", arg1, "org.kde.qt.QDragMoveEvent")) {
			QScrollView::viewportDragMoveEvent(arg1);
		}
		return;
	}
	void dragMoveEvent(QDragMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragMoveEvent", arg1, "org.kde.qt.QDragMoveEvent")) {
			QWidget::dragMoveEvent(arg1);
		}
		return;
	}
	void contentsWheelEvent(QWheelEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsWheelEvent", arg1, "org.kde.qt.QWheelEvent")) {
			QScrollView::contentsWheelEvent(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")) {
			KHTMLView::showEvent(arg1);
		}
		return;
	}
	void contentsContextMenuEvent(QContextMenuEvent* _ce) {
		if (! QtSupport::eventDelegate(this, "contentsContextMenuEvent", _ce, "org.kde.qt.QContextMenuEvent")) {
			KHTMLView::contentsContextMenuEvent(_ce);
		}
		return;
	}
	void viewportContextMenuEvent(QContextMenuEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportContextMenuEvent", arg1, "org.kde.qt.QContextMenuEvent")) {
			QScrollView::viewportContextMenuEvent(arg1);
		}
		return;
	}
	void contextMenuEvent(QContextMenuEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contextMenuEvent", arg1, "org.kde.qt.QContextMenuEvent")) {
			QScrollView::contextMenuEvent(arg1);
		}
		return;
	}
	void viewportMousePressEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportMousePressEvent", arg1, "org.kde.qt.QMouseEvent")) {
			KHTMLView::viewportMousePressEvent(arg1);
		}
		return;
	}
	void mousePressEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mousePressEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::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 viewportMouseReleaseEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportMouseReleaseEvent", arg1, "org.kde.qt.QMouseEvent")) {
			KHTMLView::viewportMouseReleaseEvent(arg1);
		}
		return;
	}
	void mouseReleaseEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseReleaseEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::mouseReleaseEvent(arg1);
		}
		return;
	}
	void viewportMouseDoubleClickEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportMouseDoubleClickEvent", arg1, "org.kde.qt.QMouseEvent")) {
			KHTMLView::viewportMouseDoubleClickEvent(arg1);
		}
		return;
	}
	void mouseDoubleClickEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseDoubleClickEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::mouseDoubleClickEvent(arg1);
		}
		return;
	}
	void viewportDragLeaveEvent(QDragLeaveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportDragLeaveEvent", arg1, "org.kde.qt.QDragLeaveEvent")) {
			QScrollView::viewportDragLeaveEvent(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 contentsDropEvent(QDropEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsDropEvent", arg1, "org.kde.qt.QDropEvent")) {
			QScrollView::contentsDropEvent(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 contentsDragLeaveEvent(QDragLeaveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsDragLeaveEvent", arg1, "org.kde.qt.QDragLeaveEvent")) {
			QScrollView::contentsDragLeaveEvent(arg1);
		}
		return;
	}
	void viewportDropEvent(QDropEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportDropEvent", arg1, "org.kde.qt.QDropEvent")) {
			QScrollView::viewportDropEvent(arg1);
		}
		return;
	}
	void dropEvent(QDropEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dropEvent", arg1, "org.kde.qt.QDropEvent")) {
			QWidget::dropEvent(arg1);
		}
		return;
	}
	void contentsMouseDoubleClickEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsMouseDoubleClickEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::contentsMouseDoubleClickEvent(arg1);
		}
		return;
	}
	void viewportDragEnterEvent(QDragEnterEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportDragEnterEvent", arg1, "org.kde.qt.QDragEnterEvent")) {
			QScrollView::viewportDragEnterEvent(arg1);
		}
		return;
	}
	void dragEnterEvent(QDragEnterEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragEnterEvent", arg1, "org.kde.qt.QDragEnterEvent")) {
			QWidget::dragEnterEvent(arg1);
		}
		return;
	}
	void viewportMouseMoveEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportMouseMoveEvent", arg1, "org.kde.qt.QMouseEvent")) {
			KHTMLView::viewportMouseMoveEvent(arg1);
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseMoveEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::mouseMoveEvent(arg1);
		}
		return;
	}
	void contentsDragMoveEvent(QDragMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsDragMoveEvent", arg1, "org.kde.qt.QDragMoveEvent")) {
			QScrollView::contentsDragMoveEvent(arg1);
		}
		return;
	}
	void moveEvent(QMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "moveEvent", arg1, "org.kde.qt.QMoveEvent")) {
			QWidget::moveEvent(arg1);
		}
		return;
	}
	void contentsMouseReleaseEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsMouseReleaseEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::contentsMouseReleaseEvent(arg1);
		}
		return;
	}
	void viewportWheelEvent(QWheelEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportWheelEvent", arg1, "org.kde.qt.QWheelEvent")) {
			KHTMLView::viewportWheelEvent(arg1);
		}
		return;
	}
	void wheelEvent(QWheelEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "wheelEvent", arg1, "org.kde.qt.QWheelEvent")) {
			QScrollView::wheelEvent(arg1);
		}
		return;
	}
	void hideEvent(QHideEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "hideEvent", arg1, "org.kde.qt.QHideEvent")) {
			KHTMLView::hideEvent(arg1);
		}
		return;
	}
	void contentsDragEnterEvent(QDragEnterEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsDragEnterEvent", arg1, "org.kde.qt.QDragEnterEvent")) {
			QScrollView::contentsDragEnterEvent(arg1);
		}
		return;
	}
	void contentsMouseMoveEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsMouseMoveEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::contentsMouseMoveEvent(arg1);
		}
		return;
	}
	void contentsMousePressEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsMousePressEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::contentsMousePressEvent(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 viewportPaintEvent(QPaintEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportPaintEvent", arg1, "org.kde.qt.QPaintEvent")) {
			QScrollView::viewportPaintEvent(arg1);
		}
		return;
	}
	void paintEvent(QPaintEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "paintEvent", arg1, "org.kde.qt.QPaintEvent")) {
			QFrame::paintEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "timerEvent", arg1, "org.kde.qt.QTimerEvent")) {
			KHTMLView::timerEvent(arg1);
		}
		return;
	}
	void viewportResizeEvent(QResizeEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportResizeEvent", arg1, "org.kde.qt.QResizeEvent")) {
			QScrollView::viewportResizeEvent(arg1);
		}
		return;
	}
 	void protected_paintElement(khtml::RenderObject* o, int x, int y) {
// 		KHTMLView::paintElement(o, x, y);
 		return;
 	}
	void resizeEvent(QResizeEvent* event) {
		if (! QtSupport::eventDelegate(this, "resizeEvent", event, "org.kde.qt.QResizeEvent")) {
			KHTMLView::resizeEvent(event);
		}
		return;
	}
};


JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_newKHTMLView__Lorg_kde_koala_KHTMLPart_2Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject part, jobject parent, jstring name)
{
static QCString * _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KHTMLViewJBridge((KHTMLPart*) QtSupport::getQt(env, part), (QWidget*) QtSupport::getQt(env, parent), (char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_newKHTMLView__Lorg_kde_koala_KHTMLPart_2Lorg_kde_qt_QWidget_2(JNIEnv *env, jobject obj, jobject part, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KHTMLViewJBridge((KHTMLPart*) QtSupport::getQt(env, part), (QWidget*) QtSupport::getQt(env, parent), 0));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_dispose(JNIEnv *env, jobject obj)
{
	Java_org_kde_koala_KHTMLView_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jint JNICALL
Java_org_kde_koala_KHTMLView_frameWidth(JNIEnv *env, jobject obj)
{
	return (jint) ((KHTMLView*) QtSupport::getQt(env, obj))->frameWidth();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_setMarginWidth(JNIEnv *env, jobject obj, jint x)
{
	((KHTMLView*) QtSupport::getQt(env, obj))->setMarginWidth((int) x);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KHTMLView_marginWidth(JNIEnv *env, jobject obj)
{
	return (jint) ((KHTMLView*) QtSupport::getQt(env, obj))->marginWidth();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_setMarginHeight(JNIEnv *env, jobject obj, jint y)
{
	((KHTMLView*) QtSupport::getQt(env, obj))->setMarginHeight((int) y);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KHTMLView_marginHeight(JNIEnv *env, jobject obj)
{
	return (jint) ((KHTMLView*) QtSupport::getQt(env, obj))->marginHeight();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_setVScrollBarMode(JNIEnv *env, jobject obj, jint mode)
{
	((KHTMLView*) QtSupport::getQt(env, obj))->setVScrollBarMode((KHTMLView::ScrollBarMode) mode);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_setHScrollBarMode(JNIEnv *env, jobject obj, jint mode)
{
	((KHTMLView*) QtSupport::getQt(env, obj))->setHScrollBarMode((KHTMLView::ScrollBarMode) mode);
	return;
}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KHTMLView_forceHScrollBarMode(JNIEnv *env, jobject obj, jint mode)
//{
//	((KHTMLView*) QtSupport::getQt(env, obj))->forceHScrollBarMode((KHTMLView::ScrollBarMode) mode);
//	return;
//}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KHTMLView_forceVScrollBarMode(JNIEnv *env, jobject obj, jint mode)
//{
//	((KHTMLView*) QtSupport::getQt(env, obj))->forceVScrollBarMode((KHTMLView::ScrollBarMode) mode);
//	return;
//}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_print(JNIEnv *env, jobject obj)
{
	((KHTMLView*) QtSupport::getQt(env, obj))->print();
	return;
}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KHTMLView_layout(JNIEnv *env, jobject obj)
//{
//	((KHTMLView*) QtSupport::getQt(env, obj))->layout();
//	return;
//}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_clear(JNIEnv *env, jobject obj)
{
	((KHTMLViewJBridge*) QtSupport::getQt(env, obj))->protected_clear();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_resizeEvent(JNIEnv *env, jobject obj, jobject event)
{
	((KHTMLViewJBridge*) QtSupport::getQt(env, obj))->protected_resizeEvent((QResizeEvent*) QtSupport::getQt(env, event));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_showEvent(JNIEnv *env, jobject obj, jobject arg1)
{
	((KHTMLViewJBridge*) QtSupport::getQt(env, obj))->protected_showEvent((QShowEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_hideEvent(JNIEnv *env, jobject obj, jobject arg1)
{
	((KHTMLViewJBridge*) QtSupport::getQt(env, obj))->protected_hideEvent((QHideEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KHTMLView_focusNextPrevChild(JNIEnv *env, jobject obj, jboolean next)
{
	return (jboolean) ((KHTMLViewJBridge*) QtSupport::getQt(env, obj))->protected_focusNextPrevChild((bool) next);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_drawContents__Lorg_kde_qt_QPainter_2IIII(JNIEnv *env, jobject obj, jobject p, jint clipx, jint clipy, jint clipw, jint cliph)
{
	((KHTMLViewJBridge*) QtSupport::getQt(env, obj))->protected_drawContents((QPainter*) QtSupport::getQt(env, p), (int) clipx, (int) clipy, (int) clipw, (int) cliph);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_drawContents__Lorg_kde_qt_QPainter_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((KHTMLViewJBridge*) QtSupport::getQt(env, obj))->protected_drawContents((QPainter*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_viewportMousePressEvent(JNIEnv *env, jobject obj, jobject arg1)
{
	((KHTMLViewJBridge*) QtSupport::getQt(env, obj))->protected_viewportMousePressEvent((QMouseEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_focusOutEvent(JNIEnv *env, jobject obj, jobject arg1)
{
	((KHTMLViewJBridge*) QtSupport::getQt(env, obj))->protected_focusOutEvent((QFocusEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_viewportMouseDoubleClickEvent(JNIEnv *env, jobject obj, jobject arg1)
{
	((KHTMLViewJBridge*) QtSupport::getQt(env, obj))->protected_viewportMouseDoubleClickEvent((QMouseEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_viewportMouseMoveEvent(JNIEnv *env, jobject obj, jobject arg1)
{
	((KHTMLViewJBridge*) QtSupport::getQt(env, obj))->protected_viewportMouseMoveEvent((QMouseEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_viewportMouseReleaseEvent(JNIEnv *env, jobject obj, jobject arg1)
{
	((KHTMLViewJBridge*) QtSupport::getQt(env, obj))->protected_viewportMouseReleaseEvent((QMouseEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_viewportWheelEvent(JNIEnv *env, jobject obj, jobject arg1)
{
	((KHTMLViewJBridge*) QtSupport::getQt(env, obj))->protected_viewportWheelEvent((QWheelEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_keyPressEvent(JNIEnv *env, jobject obj, jobject _ke)
{
	((KHTMLViewJBridge*) QtSupport::getQt(env, obj))->protected_keyPressEvent((QKeyEvent*) QtSupport::getQt(env, _ke));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_keyReleaseEvent(JNIEnv *env, jobject obj, jobject _ke)
{
	((KHTMLViewJBridge*) QtSupport::getQt(env, obj))->protected_keyReleaseEvent((QKeyEvent*) QtSupport::getQt(env, _ke));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_contentsContextMenuEvent(JNIEnv *env, jobject obj, jobject _ce)
{
	((KHTMLViewJBridge*) QtSupport::getQt(env, obj))->protected_contentsContextMenuEvent((QContextMenuEvent*) QtSupport::getQt(env, _ce));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_doAutoScroll(JNIEnv *env, jobject obj)
{
	((KHTMLViewJBridge*) QtSupport::getQt(env, obj))->protected_doAutoScroll();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_timerEvent(JNIEnv *env, jobject obj, jobject arg1)
{
	((KHTMLViewJBridge*) QtSupport::getQt(env, obj))->protected_timerEvent((QTimerEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_slotPaletteChanged(JNIEnv *env, jobject obj)
{
	((KHTMLViewJBridge*) QtSupport::getQt(env, obj))->protected_slotPaletteChanged();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KHTMLView_slotScrollBarMoved(JNIEnv *env, jobject obj)
{
	((KHTMLViewJBridge*) QtSupport::getQt(env, obj))->protected_slotScrollBarMoved();
	return;
}

