/***************************************************************************
                            kde_KHTMLView.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 2002, using kalyptus 0.9.
 ***************************************************************************/

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

extern "C" {
#include "kde_KHTMLView.h"
}

#include <khtmlview.h>

class KHTMLViewBridge : public KHTMLView
{
public:
	KHTMLViewBridge(KHTMLPart* part, QWidget* parent, const char* name) : KHTMLView(part, parent, name) {}
	~KHTMLViewBridge() {}
	void protected_clear() {
		KHTMLView::clear();
		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_doAutoScroll() {
		KHTMLView::doAutoScroll();
		return;
	}
	void protected_slotPaletteChanged() {
		KHTMLView::slotPaletteChanged();
		return;
	}
	void protected_slotScrollBarMoved() {
		KHTMLView::slotScrollBarMoved();
		return;
	}
	void keyPressEvent(QKeyEvent* _ke) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyPressEvent", _ke, "QKeyEvent")) {
			KHTMLView::keyPressEvent(_ke);
		}
		return;
	}
	void keyReleaseEvent(QKeyEvent* _ke) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyReleaseEvent", _ke, "QKeyEvent")) {
			KHTMLView::keyReleaseEvent(_ke);
		}
		return;
	}
	void focusOutEvent(QFocusEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "focusOutEvent", arg1, "QFocusEvent")) {
			KHTMLView::focusOutEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void viewportDragMoveEvent(QDragMoveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportDragMoveEvent", arg1, "QDragMoveEvent")) {
			QScrollView::viewportDragMoveEvent(arg1);
		}
		return;
	}
	void dragMoveEvent(QDragMoveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragMoveEvent", arg1, "QDragMoveEvent")) {
			QWidget::dragMoveEvent(arg1);
		}
		return;
	}
	void contentsWheelEvent(QWheelEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsWheelEvent", arg1, "QWheelEvent")) {
			QScrollView::contentsWheelEvent(arg1);
		}
		return;
	}
	void leaveEvent(QEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "leaveEvent", arg1, "QEvent")) {
			QWidget::leaveEvent(arg1);
		}
		return;
	}
	void tabletEvent(QTabletEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "tabletEvent", arg1, "QTabletEvent")) {
			QWidget::tabletEvent(arg1);
		}
		return;
	}
	void showEvent(QShowEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "showEvent", arg1, "QShowEvent")) {
			KHTMLView::showEvent(arg1);
		}
		return;
	}
	void contentsContextMenuEvent(QContextMenuEvent* _ce) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsContextMenuEvent", _ce, "QContextMenuEvent")) {
			KHTMLView::contentsContextMenuEvent(_ce);
		}
		return;
	}
	void viewportContextMenuEvent(QContextMenuEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportContextMenuEvent", arg1, "QContextMenuEvent")) {
			QScrollView::viewportContextMenuEvent(arg1);
		}
		return;
	}
	void contextMenuEvent(QContextMenuEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contextMenuEvent", arg1, "QContextMenuEvent")) {
			QScrollView::contextMenuEvent(arg1);
		}
		return;
	}
	void viewportMousePressEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportMousePressEvent", arg1, "QMouseEvent")) {
			KHTMLView::viewportMousePressEvent(arg1);
		}
		return;
	}
	void mousePressEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mousePressEvent", arg1, "QMouseEvent")) {
			QScrollView::mousePressEvent(arg1);
		}
		return;
	}
	void imComposeEvent(QIMEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "imComposeEvent", arg1, "QIMEvent")) {
			QWidget::imComposeEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "customEvent", arg1, "QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void viewportMouseReleaseEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportMouseReleaseEvent", arg1, "QMouseEvent")) {
			KHTMLView::viewportMouseReleaseEvent(arg1);
		}
		return;
	}
	void mouseReleaseEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseReleaseEvent", arg1, "QMouseEvent")) {
			QScrollView::mouseReleaseEvent(arg1);
		}
		return;
	}
	void viewportMouseDoubleClickEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportMouseDoubleClickEvent", arg1, "QMouseEvent")) {
			KHTMLView::viewportMouseDoubleClickEvent(arg1);
		}
		return;
	}
	void mouseDoubleClickEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseDoubleClickEvent", arg1, "QMouseEvent")) {
			QScrollView::mouseDoubleClickEvent(arg1);
		}
		return;
	}
	void viewportDragLeaveEvent(QDragLeaveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportDragLeaveEvent", arg1, "QDragLeaveEvent")) {
			QScrollView::viewportDragLeaveEvent(arg1);
		}
		return;
	}
	void dragLeaveEvent(QDragLeaveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragLeaveEvent", arg1, "QDragLeaveEvent")) {
			QWidget::dragLeaveEvent(arg1);
		}
		return;
	}
	void enterEvent(QEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "enterEvent", arg1, "QEvent")) {
			QWidget::enterEvent(arg1);
		}
		return;
	}
	void contentsDropEvent(QDropEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsDropEvent", arg1, "QDropEvent")) {
			QScrollView::contentsDropEvent(arg1);
		}
		return;
	}
	void focusInEvent(QFocusEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "focusInEvent", arg1, "QFocusEvent")) {
			QWidget::focusInEvent(arg1);
		}
		return;
	}
	void imEndEvent(QIMEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "imEndEvent", arg1, "QIMEvent")) {
			QWidget::imEndEvent(arg1);
		}
		return;
	}
	void contentsDragLeaveEvent(QDragLeaveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsDragLeaveEvent", arg1, "QDragLeaveEvent")) {
			QScrollView::contentsDragLeaveEvent(arg1);
		}
		return;
	}
	void viewportDropEvent(QDropEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportDropEvent", arg1, "QDropEvent")) {
			QScrollView::viewportDropEvent(arg1);
		}
		return;
	}
	void dropEvent(QDropEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dropEvent", arg1, "QDropEvent")) {
			QWidget::dropEvent(arg1);
		}
		return;
	}
	void contentsMouseDoubleClickEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsMouseDoubleClickEvent", arg1, "QMouseEvent")) {
			QScrollView::contentsMouseDoubleClickEvent(arg1);
		}
		return;
	}
	void viewportDragEnterEvent(QDragEnterEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportDragEnterEvent", arg1, "QDragEnterEvent")) {
			QScrollView::viewportDragEnterEvent(arg1);
		}
		return;
	}
	void dragEnterEvent(QDragEnterEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragEnterEvent", arg1, "QDragEnterEvent")) {
			QWidget::dragEnterEvent(arg1);
		}
		return;
	}
	void viewportMouseMoveEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportMouseMoveEvent", arg1, "QMouseEvent")) {
			KHTMLView::viewportMouseMoveEvent(arg1);
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseMoveEvent", arg1, "QMouseEvent")) {
			QScrollView::mouseMoveEvent(arg1);
		}
		return;
	}
	void contentsDragMoveEvent(QDragMoveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsDragMoveEvent", arg1, "QDragMoveEvent")) {
			QScrollView::contentsDragMoveEvent(arg1);
		}
		return;
	}
	void moveEvent(QMoveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "moveEvent", arg1, "QMoveEvent")) {
			QWidget::moveEvent(arg1);
		}
		return;
	}
	void contentsMouseReleaseEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsMouseReleaseEvent", arg1, "QMouseEvent")) {
			QScrollView::contentsMouseReleaseEvent(arg1);
		}
		return;
	}
	void viewportWheelEvent(QWheelEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportWheelEvent", arg1, "QWheelEvent")) {
			KHTMLView::viewportWheelEvent(arg1);
		}
		return;
	}
	void wheelEvent(QWheelEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "wheelEvent", arg1, "QWheelEvent")) {
			QScrollView::wheelEvent(arg1);
		}
		return;
	}
	void hideEvent(QHideEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "hideEvent", arg1, "QHideEvent")) {
			KHTMLView::hideEvent(arg1);
		}
		return;
	}
	void contentsDragEnterEvent(QDragEnterEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsDragEnterEvent", arg1, "QDragEnterEvent")) {
			QScrollView::contentsDragEnterEvent(arg1);
		}
		return;
	}
	void contentsMouseMoveEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsMouseMoveEvent", arg1, "QMouseEvent")) {
			QScrollView::contentsMouseMoveEvent(arg1);
		}
		return;
	}
	void contentsMousePressEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsMousePressEvent", arg1, "QMouseEvent")) {
			QScrollView::contentsMousePressEvent(arg1);
		}
		return;
	}
	void imStartEvent(QIMEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "imStartEvent", arg1, "QIMEvent")) {
			QWidget::imStartEvent(arg1);
		}
		return;
	}
	void closeEvent(QCloseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "closeEvent", arg1, "QCloseEvent")) {
			QWidget::closeEvent(arg1);
		}
		return;
	}
	void viewportPaintEvent(QPaintEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportPaintEvent", arg1, "QPaintEvent")) {
			QScrollView::viewportPaintEvent(arg1);
		}
		return;
	}
	void paintEvent(QPaintEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "paintEvent", arg1, "QPaintEvent")) {
			QFrame::paintEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			KHTMLView::timerEvent(arg1);
		}
		return;
	}
	void viewportResizeEvent(QResizeEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportResizeEvent", arg1, "QResizeEvent")) {
			QScrollView::viewportResizeEvent(arg1);
		}
		return;
	}
	void resizeEvent(QResizeEvent* event) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "resizeEvent", event, "QResizeEvent")) {
			KHTMLView::resizeEvent(event);
		}
		return;
	}
};

kde_KHTMLView * kde_new_KHTMLView(kde_KHTMLPart* part, qt_QWidget * parent, char* name){
	return (kde_KHTMLView *) new KHTMLViewBridge((KHTMLPart*)part, (QWidget*)parent, (char*)name);
}
void kde_del_KHTMLView( kde_KHTMLView* p ){
	delete (KHTMLViewBridge*) p;
}
kde_KHTMLPart* kde_KHTMLView_part( kde_KHTMLView* instPointer){
	return (kde_KHTMLPart*) ((KHTMLViewBridge*)instPointer)->part();
}
int kde_KHTMLView_frameWidth( kde_KHTMLView* instPointer){
	return (int) ((KHTMLViewBridge*)instPointer)->frameWidth();
}
void kde_KHTMLView_setMarginWidth( kde_KHTMLView* instPointer,int x){
	((KHTMLViewBridge*)instPointer)->setMarginWidth((int)x);
	return;
}
int kde_KHTMLView_marginWidth( kde_KHTMLView* instPointer){
	return (int) ((KHTMLViewBridge*)instPointer)->marginWidth();
}
void kde_KHTMLView_setMarginHeight( kde_KHTMLView* instPointer,int y){
	((KHTMLViewBridge*)instPointer)->setMarginHeight((int)y);
	return;
}
int kde_KHTMLView_marginHeight( kde_KHTMLView* instPointer){
	return (int) ((KHTMLViewBridge*)instPointer)->marginHeight();
}
void kde_KHTMLView_setVScrollBarMode( kde_KHTMLView* instPointer,int mode){
	((KHTMLViewBridge*)instPointer)->setVScrollBarMode((KHTMLView::ScrollBarMode)mode);
	return;
}
void kde_KHTMLView_setHScrollBarMode( kde_KHTMLView* instPointer,int mode){
	((KHTMLViewBridge*)instPointer)->setHScrollBarMode((KHTMLView::ScrollBarMode)mode);
	return;
}
//void kde_KHTMLView_forceHScrollBarMode( kde_KHTMLView* instPointer,int mode){
//	((KHTMLViewBridge*)instPointer)->forceHScrollBarMode((KHTMLView::ScrollBarMode)mode);
//	return;
//}
//void kde_KHTMLView_forceVScrollBarMode( kde_KHTMLView* instPointer,int mode){
//	((KHTMLViewBridge*)instPointer)->forceVScrollBarMode((KHTMLView::ScrollBarMode)mode);
//	return;
//}
void kde_KHTMLView_print( kde_KHTMLView* instPointer){
	((KHTMLViewBridge*)instPointer)->print();
	return;
}
void kde_KHTMLView_layout( kde_KHTMLView* instPointer){
	((KHTMLViewBridge*)instPointer)->layout();
	return;
}
void kde_KHTMLView_clear( kde_KHTMLView* instPointer){
	((KHTMLViewBridge*)instPointer)->protected_clear();
	return;
}
int kde_KHTMLView_focusNextPrevChild( kde_KHTMLView* instPointer,int next){
	return (int) ((KHTMLViewBridge*)instPointer)->protected_focusNextPrevChild((bool)next);
}
void kde_KHTMLView_drawContents( kde_KHTMLView* instPointer,qt_QPainter * p, int clipx, int clipy, int clipw, int cliph){
	((KHTMLViewBridge*)instPointer)->protected_drawContents((QPainter*)p, (int)clipx, (int)clipy, (int)clipw, (int)cliph);
	return;
}
void kde_KHTMLView_drawContents1( kde_KHTMLView* instPointer,qt_QPainter * arg1){
	((KHTMLViewBridge*)instPointer)->protected_drawContents((QPainter*)arg1);
	return;
}
void kde_KHTMLView_doAutoScroll( kde_KHTMLView* instPointer){
	((KHTMLViewBridge*)instPointer)->protected_doAutoScroll();
	return;
}
void kde_KHTMLView_slotPaletteChanged( kde_KHTMLView* instPointer){
	((KHTMLViewBridge*)instPointer)->protected_slotPaletteChanged();
	return;
}
void kde_KHTMLView_slotScrollBarMoved( kde_KHTMLView* instPointer){
	((KHTMLViewBridge*)instPointer)->protected_slotScrollBarMoved();
	return;
}
