summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/QSimpleRichText.cpp
blob: 3bb336b6f3164dc055813c653884dcff2ef1658e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqrect.h>
#include <tqstring.h>
#include <tqpoint.h>
#include <tqpalette.h>
#include <tqregion.h>
#include <tqsimplerichtext.h>
#include <tqfont.h>
#include <tqcolor.h>

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

class TQSimpleRichTextJBridge : public TQSimpleRichText
{
public:
	TQSimpleRichTextJBridge(const TTQString& arg1,const TTQFont& arg2,const TTQString& arg3,const TTQStyleSheet* arg4) : TTQSimpleRichText(arg1,arg2,arg3,arg4) {};
	TQSimpleRichTextJBridge(const TTQString& arg1,const TTQFont& arg2,const TTQString& arg3) : TTQSimpleRichText(arg1,arg2,arg3) {};
	TQSimpleRichTextJBridge(const TTQString& arg1,const TTQFont& arg2) : TTQSimpleRichText(arg1,arg2) {};
	TQSimpleRichTextJBridge(const TTQString& arg1,const TTQFont& arg2,const TTQString& arg3,const TTQStyleSheet* arg4,const TTQMimeSourceFactory* arg5,int arg6,const TTQColor& arg7,bool arg8) : TTQSimpleRichText(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) {};
	TQSimpleRichTextJBridge(const TTQString& arg1,const TTQFont& arg2,const TTQString& arg3,const TTQStyleSheet* arg4,const TTQMimeSourceFactory* arg5,int arg6,const TTQColor& arg7) : TTQSimpleRichText(arg1,arg2,arg3,arg4,arg5,arg6,arg7) {};
	TQSimpleRichTextJBridge(const TTQString& arg1,const TTQFont& arg2,const TTQString& arg3,const TTQStyleSheet* arg4,const TTQMimeSourceFactory* arg5,int arg6) : TTQSimpleRichText(arg1,arg2,arg3,arg4,arg5,arg6) {};
	TQSimpleRichTextJBridge(const TTQString& arg1,const TTQFont& arg2,const TTQString& arg3,const TTQStyleSheet* arg4,const TTQMimeSourceFactory* arg5) : TTQSimpleRichText(arg1,arg2,arg3,arg4,arg5) {};
	~TQSimpleRichTextJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QSimpleRichText_adjustSize(JNIEnv* env, jobject obj)
{
	((TTQSimpleRichText*) QtSupport::getQt(env, obj))->adjustSize();
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSimpleRichText_anchorAt(JNIEnv* env, jobject obj, jobject pos)
{
	TTQString  _qstring;
	_qstring = ((TTQSimpleRichText*) QtSupport::getQt(env, obj))->anchorAt((const TTQPoint&)*(const TTQPoint*) QtSupport::getQt(env, pos));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSimpleRichText_context(JNIEnv* env, jobject obj)
{
	TTQString  _qstring;
	_qstring = ((TTQSimpleRichText*) QtSupport::getQt(env, obj))->context();
	return QtSupport::fromTQString(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)
{
	((TTQSimpleRichText*) QtSupport::getQt(env, obj))->draw((TTQPainter*) QtSupport::getQt(env, p), (int) x, (int) y, (const TTQRect&)*(const TTQRect*) QtSupport::getQt(env, clipRect), (const TTQColorGroup&)*(const TTQColorGroup*) 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)
{
	((TTQSimpleRichText*) QtSupport::getQt(env, obj))->draw((TTQPainter*) QtSupport::getQt(env, p), (int) x, (int) y, (const TTQRect&)*(const TTQRect*) QtSupport::getQt(env, clipRect), (const TTQColorGroup&)*(const TTQColorGroup*) QtSupport::getQt(env, cg), (const TTQBrush*) 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)
{
	((TTQSimpleRichText*) QtSupport::getQt(env, obj))->draw((TTQPainter*) QtSupport::getQt(env, p), (int) x, (int) y, (const TTQRegion&)*(const TTQRegion*) QtSupport::getQt(env, clipRegion), (const TTQColorGroup&)*(const TTQColorGroup*) 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)
{
	((TTQSimpleRichText*) QtSupport::getQt(env, obj))->draw((TTQPainter*) QtSupport::getQt(env, p), (int) x, (int) y, (const TTQRegion&)*(const TTQRegion*) QtSupport::getQt(env, clipRegion), (const TTQColorGroup&)*(const TTQColorGroup*) QtSupport::getQt(env, cg), (const TTQBrush*) QtSupport::getQt(env, paper));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSimpleRichText_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (TTQSimpleRichText*)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) ((TTQSimpleRichText*) 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) ((TTQSimpleRichText*) QtSupport::getQt(env, obj))->inText((const TTQPoint&)*(const TTQPoint*) 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_newTQSimpleRichText__Ljava_lang_String_2Lorg_kde_qt_QFont_2(JNIEnv* env, jobject obj, jstring text, jobject fnt)
{
static TTQString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSimpleRichTextJBridge((const TTQString&)*(TTQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TTQFont&)*(const TTQFont*) QtSupport::getQt(env, fnt)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSimpleRichText_newTQSimpleRichText__Ljava_lang_String_2Lorg_kde_qt_QFont_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text, jobject fnt, jstring context)
{
static TTQString* _qstring_text = 0;
static TTQString* _qstring_context = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSimpleRichTextJBridge((const TTQString&)*(TTQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TTQFont&)*(const TTQFont*) QtSupport::getQt(env, fnt), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, context, &_qstring_context)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSimpleRichText_newTQSimpleRichText__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 TTQString* _qstring_text = 0;
static TTQString* _qstring_context = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSimpleRichTextJBridge((const TTQString&)*(TTQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TTQFont&)*(const TTQFont*) QtSupport::getQt(env, fnt), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, context, &_qstring_context), (const TTQStyleSheet*) QtSupport::getQt(env, sheet)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSimpleRichText_newTQSimpleRichText__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 TTQString* _qstring_text = 0;
static TTQString* _qstring_context = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSimpleRichTextJBridge((const TTQString&)*(TTQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TTQFont&)*(const TTQFont*) QtSupport::getQt(env, fnt), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, context, &_qstring_context), (const TTQStyleSheet*) QtSupport::getQt(env, sheet), (const TTQMimeSourceFactory*) QtSupport::getQt(env, factory)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSimpleRichText_newTQSimpleRichText__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 TTQString* _qstring_text = 0;
static TTQString* _qstring_context = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSimpleRichTextJBridge((const TTQString&)*(TTQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TTQFont&)*(const TTQFont*) QtSupport::getQt(env, fnt), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, context, &_qstring_context), (const TTQStyleSheet*) QtSupport::getQt(env, sheet), (const TTQMimeSourceFactory*) QtSupport::getQt(env, factory), (int) pageBreak));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSimpleRichText_newTQSimpleRichText__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 TTQString* _qstring_text = 0;
static TTQString* _qstring_context = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSimpleRichTextJBridge((const TTQString&)*(TTQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TTQFont&)*(const TTQFont*) QtSupport::getQt(env, fnt), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, context, &_qstring_context), (const TTQStyleSheet*) QtSupport::getQt(env, sheet), (const TTQMimeSourceFactory*) QtSupport::getQt(env, factory), (int) pageBreak, (const TTQColor&)*(const TTQColor*) QtSupport::getQt(env, linkColor)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSimpleRichText_newTQSimpleRichText__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 TTQString* _qstring_text = 0;
static TTQString* _qstring_context = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSimpleRichTextJBridge((const TTQString&)*(TTQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TTQFont&)*(const TTQFont*) QtSupport::getQt(env, fnt), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, context, &_qstring_context), (const TTQStyleSheet*) QtSupport::getQt(env, sheet), (const TTQMimeSourceFactory*) QtSupport::getQt(env, factory), (int) pageBreak, (const TTQColor&)*(const TTQColor*) 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)
{
	((TTQSimpleRichText*) QtSupport::getQt(env, obj))->setDefaultFont((const TTQFont&)*(const TTQFont*) QtSupport::getQt(env, f));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSimpleRichText_setWidth__I(JNIEnv* env, jobject obj, jint arg1)
{
	((TTQSimpleRichText*) 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)
{
	((TTQSimpleRichText*) QtSupport::getQt(env, obj))->setWidth((TTQPainter*) QtSupport::getQt(env, arg1), (int) arg2);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSimpleRichText_widthUsed(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TTQSimpleRichText*) QtSupport::getQt(env, obj))->widthUsed();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSimpleRichText_width(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TTQSimpleRichText*) QtSupport::getQt(env, obj))->width();
	return xret;
}