/***************************************************************************
                            QTextEdit.cpp -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, 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 <qtextedit.h>
#include <qstring.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <qtjava/QTextEdit.h>

class QTextEditJBridge : public QTextEdit
{
public:
	QTextEditJBridge(const QString& text, const QString& context, QWidget* parent, const char* name) : QTextEdit(text, context, parent, name) {}
	QTextEditJBridge(QWidget* parent, const char* name) : QTextEdit(parent, name) {}
	~QTextEditJBridge() {QtSupport::qtKeyDeleted(this);}
	void protected_repaintChanged() {
		QTextEdit::repaintChanged();
		return;
	}
	void protected_updateStyles() {
		QTextEdit::updateStyles();
		return;
	}
	void protected_drawContents(QPainter* p, int cx, int cy, int cw, int ch) {
		QTextEdit::drawContents(p, cx, cy, cw, ch);
		return;
	}
	bool  protected_event(QEvent* e) {
		return (bool ) QTextEdit::event(e);
	}
	bool  protected_focusNextPrevChild(bool next) {
		return (bool ) QTextEdit::focusNextPrevChild(next);
	}
	QTextDocument * protected_document() {
		return (QTextDocument *) QTextEdit::document();
	}
	QTextCursor * protected_textCursor() {
		return (QTextCursor *) QTextEdit::textCursor();
	}
	void protected_setDocument(QTextDocument* doc) {
		QTextEdit::setDocument(doc);
		return;
	}
	 QPopupMenu * protected_createPopupMenu(const QPoint& pos) {
		return ( QPopupMenu *) QTextEdit::createPopupMenu(pos);
	}
	 QPopupMenu * protected_createPopupMenu() {
		return ( QPopupMenu *) QTextEdit::createPopupMenu();
	}
	void protected_drawCursor(bool visible) {
		QTextEdit::drawCursor(visible);
		return;
	}
	void protected_windowActivationChange(bool arg1) {
		QTextEdit::windowActivationChange(arg1);
		return;
	}
	void protected_doChangeInterval() {
		QTextEdit::doChangeInterval();
		return;
	}
	void keyPressEvent(QKeyEvent* e) {
		if (! QtSupport::eventDelegate(this, "keyPressEvent", e, "org.kde.qt.QKeyEvent")) {
			QTextEdit::keyPressEvent(e);
		}
		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 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* e) {
		if (! QtSupport::eventDelegate(this, "contentsWheelEvent", e, "org.kde.qt.QWheelEvent")) {
			QTextEdit::contentsWheelEvent(e);
		}
		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 contentsContextMenuEvent(QContextMenuEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsContextMenuEvent", e, "org.kde.qt.QContextMenuEvent")) {
			QTextEdit::contentsContextMenuEvent(e);
		}
		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")) {
			QScrollView::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")) {
			QTextEdit::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")) {
			QScrollView::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")) {
			QScrollView::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* e) {
		if (! QtSupport::eventDelegate(this, "contentsDropEvent", e, "org.kde.qt.QDropEvent")) {
			QTextEdit::contentsDropEvent(e);
		}
		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")) {
			QTextEdit::imEndEvent(arg1);
		}
		return;
	}
	void contentsDragLeaveEvent(QDragLeaveEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsDragLeaveEvent", e, "org.kde.qt.QDragLeaveEvent")) {
			QTextEdit::contentsDragLeaveEvent(e);
		}
		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* e) {
		if (! QtSupport::eventDelegate(this, "contentsMouseDoubleClickEvent", e, "org.kde.qt.QMouseEvent")) {
			QTextEdit::contentsMouseDoubleClickEvent(e);
		}
		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")) {
			QScrollView::viewportMouseMoveEvent(arg1);
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseMoveEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::mouseMoveEvent(arg1);
		}
		return;
	}
	void contentsDragMoveEvent(QDragMoveEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsDragMoveEvent", e, "org.kde.qt.QDragMoveEvent")) {
			QTextEdit::contentsDragMoveEvent(e);
		}
		return;
	}
	void moveEvent(QMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "moveEvent", arg1, "org.kde.qt.QMoveEvent")) {
			QWidget::moveEvent(arg1);
		}
		return;
	}
	void contentsMouseReleaseEvent(QMouseEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsMouseReleaseEvent", e, "org.kde.qt.QMouseEvent")) {
			QTextEdit::contentsMouseReleaseEvent(e);
		}
		return;
	}
	void viewportWheelEvent(QWheelEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportWheelEvent", arg1, "org.kde.qt.QWheelEvent")) {
			QScrollView::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")) {
			QWidget::hideEvent(arg1);
		}
		return;
	}
	void contentsDragEnterEvent(QDragEnterEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsDragEnterEvent", e, "org.kde.qt.QDragEnterEvent")) {
			QTextEdit::contentsDragEnterEvent(e);
		}
		return;
	}
	void contentsMouseMoveEvent(QMouseEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsMouseMoveEvent", e, "org.kde.qt.QMouseEvent")) {
			QTextEdit::contentsMouseMoveEvent(e);
		}
		return;
	}
	void contentsMousePressEvent(QMouseEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsMousePressEvent", e, "org.kde.qt.QMouseEvent")) {
			QTextEdit::contentsMousePressEvent(e);
		}
		return;
	}
	void imStartEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imStartEvent", arg1, "org.kde.qt.QIMEvent")) {
			QTextEdit::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")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void viewportResizeEvent(QResizeEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportResizeEvent", arg1, "org.kde.qt.QResizeEvent")) {
			QTextEdit::viewportResizeEvent(arg1);
		}
		return;
	}
	void resizeEvent(QResizeEvent* e) {
		if (! QtSupport::eventDelegate(this, "resizeEvent", e, "org.kde.qt.QResizeEvent")) {
			QTextEdit::resizeEvent(e);
		}
		return;
	}
};


JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_newQTextEdit__Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text, jstring context, jobject parent, jstring name)
{
static QCString * _qstring_name = 0;
static QString * _qstring_context = 0;
static QString * _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QTextEditJBridge((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (QString&) * (QString *) QtSupport::toQString(env, context, &_qstring_context), (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_qt_QTextEdit_newQTextEdit__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text)
{
static QString * _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QTextEditJBridge((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), QString::null, 0, 0));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_newQTextEdit__Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject parent, jstring name)
{
static QCString * _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QTextEditJBridge((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_qt_QTextEdit_newQTextEdit__(JNIEnv *env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QTextEditJBridge(0, 0));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setPalette(JNIEnv *env, jobject obj, jobject arg1)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setPalette((QPalette&) *(QPalette *) QtSupport::getQt(env, arg1));
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QTextEdit_text__I(JNIEnv *env, jobject obj, jint para)
{
	QString  _qstring;
	_qstring = ((QTextEditJBridge*) QtSupport::getQt(env, obj))->text((int) para);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextEdit_textFormat(JNIEnv *env, jobject obj)
{
	return (jint) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->textFormat();
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_getSelection___3I_3I_3I_3II(JNIEnv *env, jobject obj, jintArray paraFrom, jintArray indexFrom, jintArray paraTo, jintArray indexTo, jint selNum)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->getSelection( (int*) QtSupport::toIntPtr(env, paraFrom),  (int*) QtSupport::toIntPtr(env, indexFrom),  (int*) QtSupport::toIntPtr(env, paraTo),  (int*) QtSupport::toIntPtr(env, indexTo), (int) selNum);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_getSelection___3I_3I_3I_3I(JNIEnv *env, jobject obj, jintArray paraFrom, jintArray indexFrom, jintArray paraTo, jintArray indexTo)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->getSelection( (int*) QtSupport::toIntPtr(env, paraFrom),  (int*) QtSupport::toIntPtr(env, indexFrom),  (int*) QtSupport::toIntPtr(env, paraTo),  (int*) QtSupport::toIntPtr(env, indexTo), 0);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTextEdit_find__Ljava_lang_String_2ZZZ_3I_3I(JNIEnv *env, jobject obj, jstring expr, jboolean cs, jboolean wo, jboolean forward, jintArray para, jintArray index)
{
static QString * _qstring_expr = 0;
	return (jboolean) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->find((QString&) * (QString *) QtSupport::toQString(env, expr, &_qstring_expr), (bool) cs, (bool) wo, (bool) forward,  (int*) QtSupport::toIntPtr(env, para),  (int*) QtSupport::toIntPtr(env, index));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTextEdit_find__Ljava_lang_String_2ZZ(JNIEnv *env, jobject obj, jstring expr, jboolean cs, jboolean wo)
{
static QString * _qstring_expr = 0;
	return (jboolean) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->find((QString&) * (QString *) QtSupport::toQString(env, expr, &_qstring_expr), (bool) cs, (bool) wo, TRUE, 0, 0);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextEdit_paragraphs(JNIEnv *env, jobject obj)
{
	return (jint) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->paragraphs();
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextEdit_lines(JNIEnv *env, jobject obj)
{
	return (jint) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->lines();
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextEdit_linesOfParagraph(JNIEnv *env, jobject obj, jint para)
{
	return (jint) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->linesOfParagraph((int) para);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextEdit_lineOfChar(JNIEnv *env, jobject obj, jint para, jint chr)
{
	return (jint) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->lineOfChar((int) para, (int) chr);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextEdit_length(JNIEnv *env, jobject obj)
{
	return (jint) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->length();
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextEdit_paragraphRect(JNIEnv *env, jobject obj, jint para)
{
	QRect _r= ((QTextEditJBridge*) QtSupport::getQt(env, obj))->paragraphRect((int) para);
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QRect(_r.left(),_r.top(),_r.width(),_r.height()), "org.kde.qt.QRect", TRUE);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextEdit_paragraphAt(JNIEnv *env, jobject obj, jobject pos)
{
	return (jint) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->paragraphAt((QPoint&) *(QPoint *) QtSupport::getQt(env, pos));
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextEdit_charAt(JNIEnv *env, jobject obj, jobject pos, jintArray para)
{
	return (jint) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->charAt((QPoint&) *(QPoint *) QtSupport::getQt(env, pos),  (int*) QtSupport::toIntPtr(env, para));
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextEdit_paragraphLength(JNIEnv *env, jobject obj, jint para)
{
	return (jint) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->paragraphLength((int) para);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextEdit_styleSheet(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QTextEditJBridge*) QtSupport::getQt(env, obj))->styleSheet(), "org.kde.qt.QStyleSheet");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextEdit_mimeSourceFactory(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QTextEditJBridge*) QtSupport::getQt(env, obj))->mimeSourceFactory(), "org.kde.qt.QMimeSourceFactory");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextEdit_paper(JNIEnv *env, jobject obj)
{
	QBrush _b= ((QTextEditJBridge*) QtSupport::getQt(env, obj))->paper();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QBrush(_b.color(),_b.style()), "org.kde.qt.QBrush", TRUE);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTextEdit_linkUnderline(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->linkUnderline();
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextEdit_heightForWidth(JNIEnv *env, jobject obj, jint w)
{
	return (jint) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->heightForWidth((int) w);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTextEdit_hasSelectedText(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->hasSelectedText();
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTextEdit_isUndoAvailable(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->isUndoAvailable();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTextEdit_isRedoAvailable(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->isRedoAvailable();
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextEdit_wordWrap(JNIEnv *env, jobject obj)
{
	return (jint) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->wordWrap();
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextEdit_wrapColumnOrWidth(JNIEnv *env, jobject obj)
{
	return (jint) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->wrapColumnOrWidth();
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextEdit_wrapPolicy(JNIEnv *env, jobject obj)
{
	return (jint) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->wrapPolicy();
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextEdit_tabStopWidth(JNIEnv *env, jobject obj)
{
	return (jint) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->tabStopWidth();
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QTextEdit_anchorAt(JNIEnv *env, jobject obj, jobject pos)
{
	QString  _qstring;
	_qstring = ((QTextEditJBridge*) QtSupport::getQt(env, obj))->anchorAt((QPoint&) *(QPoint *) QtSupport::getQt(env, pos));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextEdit_sizeHint(JNIEnv *env, jobject obj)
{
	QSize _s= ((QTextEditJBridge*) QtSupport::getQt(env, obj))->sizeHint();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QSize(_s.width(),_s.height()), "org.kde.qt.QSize", TRUE);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTextEdit_isReadOnly(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->isReadOnly();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_getCursorPosition(JNIEnv *env, jobject obj, jintArray parag, jintArray index)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->getCursorPosition( (int*) QtSupport::toIntPtr(env, parag),  (int*) QtSupport::toIntPtr(env, index));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTextEdit_isModified(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->isModified();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTextEdit_italic(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->italic();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTextEdit_bold(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->bold();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTextEdit_underline(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->underline();
}

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextEdit_pointSize(JNIEnv *env, jobject obj)
{
	return (jint) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->pointSize();
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextEdit_color(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QColor (((QTextEditJBridge*) QtSupport::getQt(env, obj))->color()), "org.kde.qt.QColor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextEdit_font(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QFont (((QTextEditJBridge*) QtSupport::getQt(env, obj))->font()), "org.kde.qt.QFont", TRUE);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextEdit_alignment(JNIEnv *env, jobject obj)
{
	return (jint) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->alignment();
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextEdit_undoDepth(JNIEnv *env, jobject obj)
{
	return (jint) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->undoDepth();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTextEdit_getFormat(JNIEnv *env, jobject obj, jint para, jint index, jobject font, jobject color, jintArray verticalAlignment)
{
	return (jboolean) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->getFormat((int) para, (int) index, (QFont*) QtSupport::getQt(env, font), (QColor*) QtSupport::getQt(env, color),  (QTextEdit::VerticalAlignment*) QtSupport::toIntPtr(env, verticalAlignment));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTextEdit_getParagraphFormat(JNIEnv *env, jobject obj, jint para, jobject font, jobject color, jintArray verticalAlignment, jintArray alignment, jint displayMode, jint listStyle, jintArray listDepth)
{
	return (jboolean) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->getParagraphFormat((int) para, (QFont*) QtSupport::getQt(env, font), (QColor*) QtSupport::getQt(env, color),  (QTextEdit::VerticalAlignment*) QtSupport::toIntPtr(env, verticalAlignment),  (int*) QtSupport::toIntPtr(env, alignment), (QStyleSheetItem::DisplayMode*) displayMode, (QStyleSheetItem::ListStyle*) listStyle,  (int*) QtSupport::toIntPtr(env, listDepth));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTextEdit_isOverwriteMode(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->isOverwriteMode();
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextEdit_paragraphBackgroundColor(JNIEnv *env, jobject obj, jint para)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QColor (((QTextEditJBridge*) QtSupport::getQt(env, obj))->paragraphBackgroundColor((int) para)), "org.kde.qt.QColor", TRUE);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTextEdit_isUndoRedoEnabled(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->isUndoRedoEnabled();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTextEdit_eventFilter(JNIEnv *env, jobject obj, jobject o, jobject e)
{
	return (jboolean) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->eventFilter((QObject*) QtSupport::getQt(env, o), (QEvent*) QtSupport::getQt(env, e));
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setEnabled(JNIEnv *env, jobject obj, jboolean arg1)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setEnabled((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setMimeSourceFactory(JNIEnv *env, jobject obj, jobject factory)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setMimeSourceFactory((QMimeSourceFactory*) QtSupport::getQt(env, factory));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setStyleSheet(JNIEnv *env, jobject obj, jobject styleSheet)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setStyleSheet((QStyleSheet*) QtSupport::getQt(env, styleSheet));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setPaper(JNIEnv *env, jobject obj, jobject pap)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setPaper((QBrush&) *(QBrush *) QtSupport::getQt(env, pap));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setLinkUnderline(JNIEnv *env, jobject obj, jboolean arg1)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setLinkUnderline((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setWordWrap(JNIEnv *env, jobject obj, jint mode)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setWordWrap((QTextEdit::WordWrap) mode);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setWrapColumnOrWidth(JNIEnv *env, jobject obj, jint arg1)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setWrapColumnOrWidth((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setWrapPolicy(JNIEnv *env, jobject obj, jint policy)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setWrapPolicy((QTextEdit::WrapPolicy) policy);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_copy(JNIEnv *env, jobject obj)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->copy();
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setText__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring txt)
{
static QString * _qstring_txt = 0;
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setText((QString&) * (QString *) QtSupport::toQString(env, txt, &_qstring_txt));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setText__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring txt, jstring context)
{
static QString * _qstring_context = 0;
static QString * _qstring_txt = 0;
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setText((QString&) * (QString *) QtSupport::toQString(env, txt, &_qstring_txt), (QString&) * (QString *) QtSupport::toQString(env, context, &_qstring_context));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setTextFormat(JNIEnv *env, jobject obj, jint f)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setTextFormat((Qt::TextFormat) f);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_selectAll__Z(JNIEnv *env, jobject obj, jboolean select)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->selectAll((bool) select);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setTabStopWidth(JNIEnv *env, jobject obj, jint ts)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setTabStopWidth((int) ts);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_zoomIn__I(JNIEnv *env, jobject obj, jint range)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->zoomIn((int) range);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_zoomIn__(JNIEnv *env, jobject obj)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->zoomIn();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_zoomOut__I(JNIEnv *env, jobject obj, jint range)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->zoomOut((int) range);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_zoomOut__(JNIEnv *env, jobject obj)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->zoomOut();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_zoomTo(JNIEnv *env, jobject obj, jint size)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->zoomTo((int) size);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_sync(JNIEnv *env, jobject obj)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->sync();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setReadOnly(JNIEnv *env, jobject obj, jboolean b)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setReadOnly((bool) b);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_undo(JNIEnv *env, jobject obj)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->undo();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_redo(JNIEnv *env, jobject obj)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->redo();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_cut(JNIEnv *env, jobject obj)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->cut();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_paste(JNIEnv *env, jobject obj)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->paste();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_pasteSubType(JNIEnv *env, jobject obj, jstring subtype)
{
static QCString * _qcstring_subtype = 0;
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->pasteSubType((QCString&) * (QCString *) QtSupport::toQCString(env, subtype, &_qcstring_subtype));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_clear(JNIEnv *env, jobject obj)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->clear();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_del(JNIEnv *env, jobject obj)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->del();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_indent(JNIEnv *env, jobject obj)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->indent();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setItalic(JNIEnv *env, jobject obj, jboolean b)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setItalic((bool) b);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setBold(JNIEnv *env, jobject obj, jboolean b)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setBold((bool) b);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setUnderline(JNIEnv *env, jobject obj, jboolean b)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setUnderline((bool) b);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setFamily(JNIEnv *env, jobject obj, jstring f)
{
static QString * _qstring_f = 0;
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setFamily((QString&) * (QString *) QtSupport::toQString(env, f, &_qstring_f));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setPointSize(JNIEnv *env, jobject obj, jint s)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setPointSize((int) s);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setColor(JNIEnv *env, jobject obj, jobject c)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setColor((QColor&) *(QColor *) QtSupport::getQt(env, c));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setFont(JNIEnv *env, jobject obj, jobject f)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setFont((QFont&) *(QFont *) QtSupport::getQt(env, f));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setVerticalAlignment(JNIEnv *env, jobject obj, jint a)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setVerticalAlignment((QTextEdit::VerticalAlignment) a);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setAlignment(JNIEnv *env, jobject obj, jint a)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setAlignment((int) a);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setParagType(JNIEnv *env, jobject obj, jint dm, jint listStyle)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setParagType((QStyleSheetItem::DisplayMode) dm, (QStyleSheetItem::ListStyle) listStyle);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setCursorPosition(JNIEnv *env, jobject obj, jint parag, jint index)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setCursorPosition((int) parag, (int) index);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setSelection__IIIII(JNIEnv *env, jobject obj, jint parag_from, jint index_from, jint parag_to, jint index_to, jint selNum)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setSelection((int) parag_from, (int) index_from, (int) parag_to, (int) index_to, (int) selNum);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setSelection__IIII(JNIEnv *env, jobject obj, jint parag_from, jint index_from, jint parag_to, jint index_to)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setSelection((int) parag_from, (int) index_from, (int) parag_to, (int) index_to, 0);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setSelectionAttributes(JNIEnv *env, jobject obj, jint selNum, jobject back, jboolean invertText)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setSelectionAttributes((int) selNum, (QColor&) *(QColor *) QtSupport::getQt(env, back), (bool) invertText);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setModified(JNIEnv *env, jobject obj, jboolean m)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setModified((bool) m);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_resetFormat(JNIEnv *env, jobject obj)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->resetFormat();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setUndoDepth(JNIEnv *env, jobject obj, jint d)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setUndoDepth((int) d);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setFormat(JNIEnv *env, jobject obj, jobject f, jint flags)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setFormat((QTextFormat*) QtSupport::getQt(env, f), (int) flags);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_ensureCursorVisible(JNIEnv *env, jobject obj)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->ensureCursorVisible();
	return;
}

//JNIEXPORT void JNICALL
//Java_org_kde_qt_QTextEdit_placeCursor__Lorg_kde_qt_QPoint_2Lorg_kde_qt_QTextCursor_2(JNIEnv *env, jobject obj, jobject pos, jobject c)
//{
//	((QTextEditJBridge*) QtSupport::getQt(env, obj))->placeCursor((QPoint&) *(QPoint *) QtSupport::getQt(env, pos), (QTextCursor*) QtSupport::getQt(env, c));
//	return;
//}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_placeCursor(JNIEnv *env, jobject obj, jobject pos)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->placeCursor((QPoint&) *(QPoint *) QtSupport::getQt(env, pos), 0);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_moveCursor(JNIEnv *env, jobject obj, jint action, jboolean select)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->moveCursor((QTextEdit::CursorAction) action, (bool) select);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_doKeyboardAction(JNIEnv *env, jobject obj, jint action)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->doKeyboardAction((QTextEdit::KeyboardAction) action);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_removeSelectedText__I(JNIEnv *env, jobject obj, jint selNum)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->removeSelectedText((int) selNum);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_removeSelectedText__(JNIEnv *env, jobject obj)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->removeSelectedText(0);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_removeSelection__I(JNIEnv *env, jobject obj, jint selNum)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->removeSelection((int) selNum);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_removeSelection__(JNIEnv *env, jobject obj)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->removeSelection(0);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setCurrentFont(JNIEnv *env, jobject obj, jobject f)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setCurrentFont((QFont&) *(QFont *) QtSupport::getQt(env, f));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setOverwriteMode(JNIEnv *env, jobject obj, jboolean b)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setOverwriteMode((bool) b);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_scrollToBottom(JNIEnv *env, jobject obj)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->scrollToBottom();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_insert__Ljava_lang_String_2ZZZ(JNIEnv *env, jobject obj, jstring text, jboolean indent, jboolean checkNewLine, jboolean removeSelected)
{
static QString * _qstring_text = 0;
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->insert((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (bool) indent, (bool) checkNewLine, (bool) removeSelected);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_insert__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text)
{
static QString * _qstring_text = 0;
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->insert((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), FALSE, TRUE, TRUE);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_insertAt(JNIEnv *env, jobject obj, jstring text, jint para, jint index)
{
static QString * _qstring_text = 0;
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->insertAt((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (int) para, (int) index);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_removeParagraph(JNIEnv *env, jobject obj, jint para)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->removeParagraph((int) para);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_insertParagraph(JNIEnv *env, jobject obj, jstring text, jint para)
{
static QString * _qstring_text = 0;
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->insertParagraph((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (int) para);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setParagraphBackgroundColor(JNIEnv *env, jobject obj, jint para, jobject bg)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setParagraphBackgroundColor((int) para, (QColor&) *(QColor *) QtSupport::getQt(env, bg));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_clearParagraphBackground(JNIEnv *env, jobject obj, jint para)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->clearParagraphBackground((int) para);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setUndoRedoEnabled(JNIEnv *env, jobject obj, jboolean b)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->setUndoRedoEnabled((bool) b);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_repaintChanged(JNIEnv *env, jobject obj)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->protected_repaintChanged();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_updateStyles(JNIEnv *env, jobject obj)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->protected_updateStyles();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_drawContents(JNIEnv *env, jobject obj, jobject p, jint cx, jint cy, jint cw, jint ch)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->protected_drawContents((QPainter*) QtSupport::getQt(env, p), (int) cx, (int) cy, (int) cw, (int) ch);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTextEdit_event(JNIEnv *env, jobject obj, jobject e)
{
	return (jboolean) ((QTextEditJBridge*) QtSupport::getQt(env, obj))->protected_event((QEvent*) QtSupport::getQt(env, e));
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextEdit_document(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QTextEditJBridge*) QtSupport::getQt(env, obj))->protected_document(), "org.kde.qt.QTextDocument");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextEdit_textCursor(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QTextEditJBridge*) QtSupport::getQt(env, obj))->protected_textCursor(), "org.kde.qt.QTextCursor");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_setDocument(JNIEnv *env, jobject obj, jobject doc)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->protected_setDocument((QTextDocument*) QtSupport::getQt(env, doc));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextEdit_createPopupMenu__Lorg_kde_qt_QPoint_2(JNIEnv *env, jobject obj, jobject pos)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QTextEditJBridge*) QtSupport::getQt(env, obj))->protected_createPopupMenu((QPoint&) *(QPoint *) QtSupport::getQt(env, pos)), "org.kde.qt.QPopupMenu");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextEdit_createPopupMenu__(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QTextEditJBridge*) QtSupport::getQt(env, obj))->protected_createPopupMenu(), "org.kde.qt.QPopupMenu");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_drawCursor(JNIEnv *env, jobject obj, jboolean visible)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->protected_drawCursor((bool) visible);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_windowActivationChange(JNIEnv *env, jobject obj, jboolean arg1)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->protected_windowActivationChange((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextEdit_doChangeInterval(JNIEnv *env, jobject obj)
{
	((QTextEditJBridge*) QtSupport::getQt(env, obj))->protected_doChangeInterval();
	return;
}

