summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/QSimpleRichText.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/qtjava/QSimpleRichText.cpp')
-rw-r--r--qtjava/javalib/qtjava/QSimpleRichText.cpp232
1 files changed, 232 insertions, 0 deletions
diff --git a/qtjava/javalib/qtjava/QSimpleRichText.cpp b/qtjava/javalib/qtjava/QSimpleRichText.cpp
new file mode 100644
index 00000000..12ac73ba
--- /dev/null
+++ b/qtjava/javalib/qtjava/QSimpleRichText.cpp
@@ -0,0 +1,232 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+#include <qrect.h>
+#include <qstring.h>
+#include <qpoint.h>
+#include <qpalette.h>
+#include <qregion.h>
+#include <qsimplerichtext.h>
+#include <qfont.h>
+#include <qcolor.h>
+
+#include <qtjava/QtSupport.h>
+#include <qtjava/QSimpleRichText.h>
+
+class QSimpleRichTextJBridge : public QSimpleRichText
+{
+public:
+ QSimpleRichTextJBridge(const QString& arg1,const QFont& arg2,const QString& arg3,const QStyleSheet* arg4) : QSimpleRichText(arg1,arg2,arg3,arg4) {};
+ QSimpleRichTextJBridge(const QString& arg1,const QFont& arg2,const QString& arg3) : QSimpleRichText(arg1,arg2,arg3) {};
+ QSimpleRichTextJBridge(const QString& arg1,const QFont& arg2) : QSimpleRichText(arg1,arg2) {};
+ QSimpleRichTextJBridge(const QString& arg1,const QFont& arg2,const QString& arg3,const QStyleSheet* arg4,const QMimeSourceFactory* arg5,int arg6,const QColor& arg7,bool arg8) : QSimpleRichText(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) {};
+ QSimpleRichTextJBridge(const QString& arg1,const QFont& arg2,const QString& arg3,const QStyleSheet* arg4,const QMimeSourceFactory* arg5,int arg6,const QColor& arg7) : QSimpleRichText(arg1,arg2,arg3,arg4,arg5,arg6,arg7) {};
+ QSimpleRichTextJBridge(const QString& arg1,const QFont& arg2,const QString& arg3,const QStyleSheet* arg4,const QMimeSourceFactory* arg5,int arg6) : QSimpleRichText(arg1,arg2,arg3,arg4,arg5,arg6) {};
+ QSimpleRichTextJBridge(const QString& arg1,const QFont& arg2,const QString& arg3,const QStyleSheet* arg4,const QMimeSourceFactory* arg5) : QSimpleRichText(arg1,arg2,arg3,arg4,arg5) {};
+ ~QSimpleRichTextJBridge() {QtSupport::qtKeyDeleted(this);}
+};
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QSimpleRichText_adjustSize(JNIEnv* env, jobject obj)
+{
+ ((QSimpleRichText*) QtSupport::getQt(env, obj))->adjustSize();
+ return;
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_kde_qt_QSimpleRichText_anchorAt(JNIEnv* env, jobject obj, jobject pos)
+{
+ QString _qstring;
+ _qstring = ((QSimpleRichText*) QtSupport::getQt(env, obj))->anchorAt((const QPoint&)*(const QPoint*) QtSupport::getQt(env, pos));
+ return QtSupport::fromQString(env, &_qstring);
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_kde_qt_QSimpleRichText_context(JNIEnv* env, jobject obj)
+{
+ QString _qstring;
+ _qstring = ((QSimpleRichText*) QtSupport::getQt(env, obj))->context();
+ return QtSupport::fromQString(env, &_qstring);
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QSimpleRichText_dispose(JNIEnv* env, jobject obj)
+{
+ Java_org_kde_qt_QSimpleRichText_finalize(env, obj);
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QSimpleRichText_draw__Lorg_kde_qt_QPainter_2IILorg_kde_qt_QRect_2Lorg_kde_qt_QColorGroup_2(JNIEnv* env, jobject obj, jobject p, jint x, jint y, jobject clipRect, jobject cg)
+{
+ ((QSimpleRichText*) QtSupport::getQt(env, obj))->draw((QPainter*) QtSupport::getQt(env, p), (int) x, (int) y, (const QRect&)*(const QRect*) QtSupport::getQt(env, clipRect), (const QColorGroup&)*(const QColorGroup*) QtSupport::getQt(env, cg));
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QSimpleRichText_draw__Lorg_kde_qt_QPainter_2IILorg_kde_qt_QRect_2Lorg_kde_qt_QColorGroup_2Lorg_kde_qt_QBrush_2(JNIEnv* env, jobject obj, jobject p, jint x, jint y, jobject clipRect, jobject cg, jobject paper)
+{
+ ((QSimpleRichText*) QtSupport::getQt(env, obj))->draw((QPainter*) QtSupport::getQt(env, p), (int) x, (int) y, (const QRect&)*(const QRect*) QtSupport::getQt(env, clipRect), (const QColorGroup&)*(const QColorGroup*) QtSupport::getQt(env, cg), (const QBrush*) QtSupport::getQt(env, paper));
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QSimpleRichText_draw__Lorg_kde_qt_QPainter_2IILorg_kde_qt_QRegion_2Lorg_kde_qt_QColorGroup_2(JNIEnv* env, jobject obj, jobject p, jint x, jint y, jobject clipRegion, jobject cg)
+{
+ ((QSimpleRichText*) QtSupport::getQt(env, obj))->draw((QPainter*) QtSupport::getQt(env, p), (int) x, (int) y, (const QRegion&)*(const QRegion*) QtSupport::getQt(env, clipRegion), (const QColorGroup&)*(const QColorGroup*) QtSupport::getQt(env, cg));
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QSimpleRichText_draw__Lorg_kde_qt_QPainter_2IILorg_kde_qt_QRegion_2Lorg_kde_qt_QColorGroup_2Lorg_kde_qt_QBrush_2(JNIEnv* env, jobject obj, jobject p, jint x, jint y, jobject clipRegion, jobject cg, jobject paper)
+{
+ ((QSimpleRichText*) QtSupport::getQt(env, obj))->draw((QPainter*) QtSupport::getQt(env, p), (int) x, (int) y, (const QRegion&)*(const QRegion*) QtSupport::getQt(env, clipRegion), (const QColorGroup&)*(const QColorGroup*) QtSupport::getQt(env, cg), (const QBrush*) QtSupport::getQt(env, paper));
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QSimpleRichText_finalize(JNIEnv* env, jobject obj)
+{
+ if (QtSupport::allocatedInJavaWorld(env, obj)) {
+ delete (QSimpleRichText*)QtSupport::getQt(env, obj);
+ QtSupport::setQt(env, obj, 0);
+ }
+ return;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QSimpleRichText_height(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((QSimpleRichText*) QtSupport::getQt(env, obj))->height();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QSimpleRichText_inText(JNIEnv* env, jobject obj, jobject pos)
+{
+ jboolean xret = (jboolean) ((QSimpleRichText*) QtSupport::getQt(env, obj))->inText((const QPoint&)*(const QPoint*) QtSupport::getQt(env, pos));
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QSimpleRichText_isDisposed(JNIEnv* env, jobject obj)
+{
+ return (QtSupport::getQt(env, obj) == 0);
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QSimpleRichText_newQSimpleRichText__Ljava_lang_String_2Lorg_kde_qt_QFont_2(JNIEnv* env, jobject obj, jstring text, jobject fnt)
+{
+static QString* _qstring_text = 0;
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new QSimpleRichTextJBridge((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QFont&)*(const QFont*) QtSupport::getQt(env, fnt)));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QSimpleRichText_newQSimpleRichText__Ljava_lang_String_2Lorg_kde_qt_QFont_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text, jobject fnt, jstring context)
+{
+static QString* _qstring_text = 0;
+static QString* _qstring_context = 0;
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new QSimpleRichTextJBridge((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QFont&)*(const QFont*) QtSupport::getQt(env, fnt), (const QString&)*(QString*) QtSupport::toQString(env, context, &_qstring_context)));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QSimpleRichText_newQSimpleRichText__Ljava_lang_String_2Lorg_kde_qt_QFont_2Ljava_lang_String_2Lorg_kde_qt_QStyleSheet_2(JNIEnv* env, jobject obj, jstring text, jobject fnt, jstring context, jobject sheet)
+{
+static QString* _qstring_text = 0;
+static QString* _qstring_context = 0;
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new QSimpleRichTextJBridge((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QFont&)*(const QFont*) QtSupport::getQt(env, fnt), (const QString&)*(QString*) QtSupport::toQString(env, context, &_qstring_context), (const QStyleSheet*) QtSupport::getQt(env, sheet)));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QSimpleRichText_newQSimpleRichText__Ljava_lang_String_2Lorg_kde_qt_QFont_2Ljava_lang_String_2Lorg_kde_qt_QStyleSheet_2Lorg_kde_qt_QMimeSourceFactory_2(JNIEnv* env, jobject obj, jstring text, jobject fnt, jstring context, jobject sheet, jobject factory)
+{
+static QString* _qstring_text = 0;
+static QString* _qstring_context = 0;
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new QSimpleRichTextJBridge((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QFont&)*(const QFont*) QtSupport::getQt(env, fnt), (const QString&)*(QString*) QtSupport::toQString(env, context, &_qstring_context), (const QStyleSheet*) QtSupport::getQt(env, sheet), (const QMimeSourceFactory*) QtSupport::getQt(env, factory)));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QSimpleRichText_newQSimpleRichText__Ljava_lang_String_2Lorg_kde_qt_QFont_2Ljava_lang_String_2Lorg_kde_qt_QStyleSheet_2Lorg_kde_qt_QMimeSourceFactory_2I(JNIEnv* env, jobject obj, jstring text, jobject fnt, jstring context, jobject sheet, jobject factory, jint pageBreak)
+{
+static QString* _qstring_text = 0;
+static QString* _qstring_context = 0;
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new QSimpleRichTextJBridge((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QFont&)*(const QFont*) QtSupport::getQt(env, fnt), (const QString&)*(QString*) QtSupport::toQString(env, context, &_qstring_context), (const QStyleSheet*) QtSupport::getQt(env, sheet), (const QMimeSourceFactory*) QtSupport::getQt(env, factory), (int) pageBreak));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QSimpleRichText_newQSimpleRichText__Ljava_lang_String_2Lorg_kde_qt_QFont_2Ljava_lang_String_2Lorg_kde_qt_QStyleSheet_2Lorg_kde_qt_QMimeSourceFactory_2ILorg_kde_qt_QColor_2(JNIEnv* env, jobject obj, jstring text, jobject fnt, jstring context, jobject sheet, jobject factory, jint pageBreak, jobject linkColor)
+{
+static QString* _qstring_text = 0;
+static QString* _qstring_context = 0;
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new QSimpleRichTextJBridge((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QFont&)*(const QFont*) QtSupport::getQt(env, fnt), (const QString&)*(QString*) QtSupport::toQString(env, context, &_qstring_context), (const QStyleSheet*) QtSupport::getQt(env, sheet), (const QMimeSourceFactory*) QtSupport::getQt(env, factory), (int) pageBreak, (const QColor&)*(const QColor*) QtSupport::getQt(env, linkColor)));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QSimpleRichText_newQSimpleRichText__Ljava_lang_String_2Lorg_kde_qt_QFont_2Ljava_lang_String_2Lorg_kde_qt_QStyleSheet_2Lorg_kde_qt_QMimeSourceFactory_2ILorg_kde_qt_QColor_2Z(JNIEnv* env, jobject obj, jstring text, jobject fnt, jstring context, jobject sheet, jobject factory, jint pageBreak, jobject linkColor, jboolean linkUnderline)
+{
+static QString* _qstring_text = 0;
+static QString* _qstring_context = 0;
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new QSimpleRichTextJBridge((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QFont&)*(const QFont*) QtSupport::getQt(env, fnt), (const QString&)*(QString*) QtSupport::toQString(env, context, &_qstring_context), (const QStyleSheet*) QtSupport::getQt(env, sheet), (const QMimeSourceFactory*) QtSupport::getQt(env, factory), (int) pageBreak, (const QColor&)*(const QColor*) QtSupport::getQt(env, linkColor), (bool) linkUnderline));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QSimpleRichText_setDefaultFont(JNIEnv* env, jobject obj, jobject f)
+{
+ ((QSimpleRichText*) QtSupport::getQt(env, obj))->setDefaultFont((const QFont&)*(const QFont*) QtSupport::getQt(env, f));
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QSimpleRichText_setWidth__I(JNIEnv* env, jobject obj, jint arg1)
+{
+ ((QSimpleRichText*) QtSupport::getQt(env, obj))->setWidth((int) arg1);
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QSimpleRichText_setWidth__Lorg_kde_qt_QPainter_2I(JNIEnv* env, jobject obj, jobject arg1, jint arg2)
+{
+ ((QSimpleRichText*) QtSupport::getQt(env, obj))->setWidth((QPainter*) QtSupport::getQt(env, arg1), (int) arg2);
+ return;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QSimpleRichText_widthUsed(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((QSimpleRichText*) QtSupport::getQt(env, obj))->widthUsed();
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QSimpleRichText_width(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((QSimpleRichText*) QtSupport::getQt(env, obj))->width();
+ return xret;
+}
+