diff options
Diffstat (limited to 'qtjava/javalib/qtjava/TQDomDocument.cpp')
-rw-r--r-- | qtjava/javalib/qtjava/TQDomDocument.cpp | 561 |
1 files changed, 561 insertions, 0 deletions
diff --git a/qtjava/javalib/qtjava/TQDomDocument.cpp b/qtjava/javalib/qtjava/TQDomDocument.cpp new file mode 100644 index 00000000..76ff1d87 --- /dev/null +++ b/qtjava/javalib/qtjava/TQDomDocument.cpp @@ -0,0 +1,561 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include <tqstring.h> +#include <tqdom.h> +#include <tqcstring.h> + +#include <qtjava/QtSupport.h> +#include <qtjava/TQDomDocument.h> + +class TQDomDocumentJBridge : public TQDomDocument +{ +public: + TQDomDocumentJBridge() : TQDomDocument() {}; + TQDomDocumentJBridge(const TQString& arg1) : TQDomDocument(arg1) {}; + TQDomDocumentJBridge(const TQDomDocumentType& arg1) : TQDomDocument(arg1) {}; + TQDomDocumentJBridge(const TQDomDocument& arg1) : TQDomDocument(arg1) {}; + ~TQDomDocumentJBridge() {QtSupport::qtKeyDeleted(this);} +}; + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QDomDocument_createAttributeNS(JNIEnv* env, jobject obj, jstring nsURI, jstring qName) +{ +static TQString* _qstring_nsURI = 0; +static TQString* _qstring_qName = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomAttr(((TQDomDocument*) QtSupport::getQt(env, obj))->createAttributeNS((const TQString&)*(TQString*) QtSupport::toTQString(env, nsURI, &_qstring_nsURI), (const TQString&)*(TQString*) QtSupport::toTQString(env, qName, &_qstring_qName))), "org.kde.qt.TQDomAttr", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QDomDocument_createAttribute(JNIEnv* env, jobject obj, jstring name) +{ +static TQString* _qstring_name = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomAttr(((TQDomDocument*) QtSupport::getQt(env, obj))->createAttribute((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name))), "org.kde.qt.TQDomAttr", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QDomDocument_createCDATASection(JNIEnv* env, jobject obj, jstring data) +{ +static TQString* _qstring_data = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomCDATASection(((TQDomDocument*) QtSupport::getQt(env, obj))->createCDATASection((const TQString&)*(TQString*) QtSupport::toTQString(env, data, &_qstring_data))), "org.kde.qt.TQDomCDATASection", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QDomDocument_createComment(JNIEnv* env, jobject obj, jstring data) +{ +static TQString* _qstring_data = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomComment(((TQDomDocument*) QtSupport::getQt(env, obj))->createComment((const TQString&)*(TQString*) QtSupport::toTQString(env, data, &_qstring_data))), "org.kde.qt.TQDomComment", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QDomDocument_createDocumentFragment(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomDocumentFragment(((TQDomDocument*) QtSupport::getQt(env, obj))->createDocumentFragment()), "org.kde.qt.TQDomDocumentFragment", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QDomDocument_createElementNS(JNIEnv* env, jobject obj, jstring nsURI, jstring qName) +{ +static TQString* _qstring_nsURI = 0; +static TQString* _qstring_qName = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomElement(((TQDomDocument*) QtSupport::getQt(env, obj))->createElementNS((const TQString&)*(TQString*) QtSupport::toTQString(env, nsURI, &_qstring_nsURI), (const TQString&)*(TQString*) QtSupport::toTQString(env, qName, &_qstring_qName))), "org.kde.qt.TQDomElement", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QDomDocument_createElement(JNIEnv* env, jobject obj, jstring tagName) +{ +static TQString* _qstring_tagName = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomElement(((TQDomDocument*) QtSupport::getQt(env, obj))->createElement((const TQString&)*(TQString*) QtSupport::toTQString(env, tagName, &_qstring_tagName))), "org.kde.qt.TQDomElement", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QDomDocument_createEntityReference(JNIEnv* env, jobject obj, jstring name) +{ +static TQString* _qstring_name = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomEntityReference(((TQDomDocument*) QtSupport::getQt(env, obj))->createEntityReference((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name))), "org.kde.qt.TQDomEntityReference", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QDomDocument_createProcessingInstruction(JNIEnv* env, jobject obj, jstring target, jstring data) +{ +static TQString* _qstring_target = 0; +static TQString* _qstring_data = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomProcessingInstruction(((TQDomDocument*) QtSupport::getQt(env, obj))->createProcessingInstruction((const TQString&)*(TQString*) QtSupport::toTQString(env, target, &_qstring_target), (const TQString&)*(TQString*) QtSupport::toTQString(env, data, &_qstring_data))), "org.kde.qt.TQDomProcessingInstruction", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QDomDocument_createTextNode(JNIEnv* env, jobject obj, jstring data) +{ +static TQString* _qstring_data = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomText(((TQDomDocument*) QtSupport::getQt(env, obj))->createTextNode((const TQString&)*(TQString*) QtSupport::toTQString(env, data, &_qstring_data))), "org.kde.qt.TQDomText", TRUE); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QDomDocument_dispose(JNIEnv* env, jobject obj) +{ + Java_org_kde_qt_QDomDocument_finalize(env, obj); + return; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QDomDocument_doctype(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomDocumentType(((TQDomDocument*) QtSupport::getQt(env, obj))->doctype()), "org.kde.qt.TQDomDocumentType", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QDomDocument_documentElement(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomElement(((TQDomDocument*) QtSupport::getQt(env, obj))->documentElement()), "org.kde.qt.TQDomElement", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QDomDocument_elementById(JNIEnv* env, jobject obj, jstring elementId) +{ +static TQString* _qstring_elementId = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomElement(((TQDomDocument*) QtSupport::getQt(env, obj))->elementById((const TQString&)*(TQString*) QtSupport::toTQString(env, elementId, &_qstring_elementId))), "org.kde.qt.TQDomElement", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QDomDocument_elementsByTagNameNS(JNIEnv* env, jobject obj, jstring nsURI, jstring localName) +{ + TQDomNodeList _qlist; +static TQString* _qstring_nsURI = 0; +static TQString* _qstring_localName = 0; + _qlist = ((TQDomDocument*) QtSupport::getQt(env, obj))->elementsByTagNameNS((const TQString&)*(TQString*) QtSupport::toTQString(env, nsURI, &_qstring_nsURI), (const TQString&)*(TQString*) QtSupport::toTQString(env, localName, &_qstring_localName)); + return (jobject) QtSupport::arrayWithTQDomNodeList(env, (TQDomNodeList*) &_qlist); +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QDomDocument_elementsByTagName(JNIEnv* env, jobject obj, jstring tagname) +{ + TQDomNodeList _qlist; +static TQString* _qstring_tagname = 0; + _qlist = ((TQDomDocument*) QtSupport::getQt(env, obj))->elementsByTagName((const TQString&)*(TQString*) QtSupport::toTQString(env, tagname, &_qstring_tagname)); + return (jobject) QtSupport::arrayWithTQDomNodeList(env, (TQDomNodeList*) &_qlist); +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QDomDocument_finalize(JNIEnv* env, jobject obj) +{ + if (QtSupport::allocatedInJavaWorld(env, obj)) { + delete (TQDomDocument*)QtSupport::getQt(env, obj); + QtSupport::setQt(env, obj, 0); + } + return; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QDomDocument_implementation(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomImplementation(((TQDomDocument*) QtSupport::getQt(env, obj))->implementation()), "org.kde.qt.TQDomImplementation", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QDomDocument_importNode(JNIEnv* env, jobject obj, jobject importedNode, jboolean deep) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomDocument*) QtSupport::getQt(env, obj))->importNode((const TQDomNode&)*(const TQDomNode*) QtSupport::getQt(env, importedNode), (bool) deep)), "org.kde.qt.TQDomNode", TRUE); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_isDisposed(JNIEnv* env, jobject obj) +{ + return (QtSupport::getQt(env, obj) == 0); +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_isDocument(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->isDocument(); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QDomDocument_newTQDomDocument__(JNIEnv* env, jobject obj) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new TQDomDocumentJBridge()); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QDomDocument_newTQDomDocument__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name) +{ +static TQString* _qstring_name = 0; + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new TQDomDocumentJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QDomDocument_newTQDomDocument__Lorg_kde_qt_QDomDocumentType_2(JNIEnv* env, jobject obj, jobject doctype) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new TQDomDocumentJBridge((const TQDomDocumentType&)*(const TQDomDocumentType*) QtSupport::getQt(env, doctype))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QDomDocument_newTQDomDocument__Lorg_kde_qt_QDomDocument_2(JNIEnv* env, jobject obj, jobject x) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new TQDomDocumentJBridge((const TQDomDocument&)*(const TQDomDocument*) QtSupport::getQt(env, x))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QDomDocument_nodeType(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((TQDomDocument*) QtSupport::getQt(env, obj))->nodeType(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text) +{ +static TQCString* _qcstring_text = 0; + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, text, &_qcstring_text)); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent__Ljava_lang_String_2Ljava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jstring text, jobject errorMsg) +{ +static TQCString* _qcstring_text = 0; +static TQString* _qstring_errorMsg = 0; + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, text, &_qcstring_text), (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent__Ljava_lang_String_2Ljava_lang_StringBuffer_2_3I(JNIEnv* env, jobject obj, jstring text, jobject errorMsg, jintArray errorLine) +{ +static TQCString* _qcstring_text = 0; +static TQString* _qstring_errorMsg = 0; + int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, text, &_qcstring_text), (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent__Ljava_lang_String_2Ljava_lang_StringBuffer_2_3I_3I(JNIEnv* env, jobject obj, jstring text, jobject errorMsg, jintArray errorLine, jintArray errorColumn) +{ +static TQCString* _qcstring_text = 0; +static TQString* _qstring_errorMsg = 0; + int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); + int* _int_errorColumn = QtSupport::toIntPtr(env, errorColumn); + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, text, &_qcstring_text), (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); + env->SetIntArrayRegion(errorColumn, 0, 1, (jint *) _int_errorColumn); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring text, jboolean namespaceProcessing) +{ +static TQCString* _qcstring_text = 0; + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, text, &_qcstring_text), (bool) namespaceProcessing); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent__Ljava_lang_String_2ZLjava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jstring text, jboolean namespaceProcessing, jobject errorMsg) +{ +static TQCString* _qcstring_text = 0; +static TQString* _qstring_errorMsg = 0; + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, text, &_qcstring_text), (bool) namespaceProcessing, (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent__Ljava_lang_String_2ZLjava_lang_StringBuffer_2_3I(JNIEnv* env, jobject obj, jstring text, jboolean namespaceProcessing, jobject errorMsg, jintArray errorLine) +{ +static TQCString* _qcstring_text = 0; +static TQString* _qstring_errorMsg = 0; + int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, text, &_qcstring_text), (bool) namespaceProcessing, (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent__Ljava_lang_String_2ZLjava_lang_StringBuffer_2_3I_3I(JNIEnv* env, jobject obj, jstring text, jboolean namespaceProcessing, jobject errorMsg, jintArray errorLine, jintArray errorColumn) +{ +static TQCString* _qcstring_text = 0; +static TQString* _qstring_errorMsg = 0; + int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); + int* _int_errorColumn = QtSupport::toIntPtr(env, errorColumn); + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, text, &_qcstring_text), (bool) namespaceProcessing, (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); + env->SetIntArrayRegion(errorColumn, 0, 1, (jint *) _int_errorColumn); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QIODeviceInterface_2(JNIEnv* env, jobject obj, jobject dev) +{ + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQIODevice*) QtSupport::getQt(env, dev)); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QIODeviceInterface_2Ljava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jobject dev, jobject errorMsg) +{ +static TQString* _qstring_errorMsg = 0; + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQIODevice*) QtSupport::getQt(env, dev), (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QIODeviceInterface_2Ljava_lang_StringBuffer_2_3I(JNIEnv* env, jobject obj, jobject dev, jobject errorMsg, jintArray errorLine) +{ +static TQString* _qstring_errorMsg = 0; + int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQIODevice*) QtSupport::getQt(env, dev), (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QIODeviceInterface_2Ljava_lang_StringBuffer_2_3I_3I(JNIEnv* env, jobject obj, jobject dev, jobject errorMsg, jintArray errorLine, jintArray errorColumn) +{ +static TQString* _qstring_errorMsg = 0; + int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); + int* _int_errorColumn = QtSupport::toIntPtr(env, errorColumn); + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQIODevice*) QtSupport::getQt(env, dev), (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); + env->SetIntArrayRegion(errorColumn, 0, 1, (jint *) _int_errorColumn); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QIODeviceInterface_2Z(JNIEnv* env, jobject obj, jobject dev, jboolean namespaceProcessing) +{ + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQIODevice*) QtSupport::getQt(env, dev), (bool) namespaceProcessing); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QIODeviceInterface_2ZLjava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jobject dev, jboolean namespaceProcessing, jobject errorMsg) +{ +static TQString* _qstring_errorMsg = 0; + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQIODevice*) QtSupport::getQt(env, dev), (bool) namespaceProcessing, (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QIODeviceInterface_2ZLjava_lang_StringBuffer_2_3I(JNIEnv* env, jobject obj, jobject dev, jboolean namespaceProcessing, jobject errorMsg, jintArray errorLine) +{ +static TQString* _qstring_errorMsg = 0; + int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQIODevice*) QtSupport::getQt(env, dev), (bool) namespaceProcessing, (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QIODeviceInterface_2ZLjava_lang_StringBuffer_2_3I_3I(JNIEnv* env, jobject obj, jobject dev, jboolean namespaceProcessing, jobject errorMsg, jintArray errorLine, jintArray errorColumn) +{ +static TQString* _qstring_errorMsg = 0; + int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); + int* _int_errorColumn = QtSupport::toIntPtr(env, errorColumn); + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQIODevice*) QtSupport::getQt(env, dev), (bool) namespaceProcessing, (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); + env->SetIntArrayRegion(errorColumn, 0, 1, (jint *) _int_errorColumn); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QXmlInputSource_2Lorg_kde_qt_QXmlReader_2(JNIEnv* env, jobject obj, jobject source, jobject reader) +{ + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQXmlInputSource*) QtSupport::getQt(env, source), (TQXmlReader*) QtSupport::getQt(env, reader)); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QXmlInputSource_2Lorg_kde_qt_QXmlReader_2Ljava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jobject source, jobject reader, jobject errorMsg) +{ +static TQString* _qstring_errorMsg = 0; + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQXmlInputSource*) QtSupport::getQt(env, source), (TQXmlReader*) QtSupport::getQt(env, reader), (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QXmlInputSource_2Lorg_kde_qt_QXmlReader_2Ljava_lang_StringBuffer_2_3I(JNIEnv* env, jobject obj, jobject source, jobject reader, jobject errorMsg, jintArray errorLine) +{ +static TQString* _qstring_errorMsg = 0; + int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQXmlInputSource*) QtSupport::getQt(env, source), (TQXmlReader*) QtSupport::getQt(env, reader), (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QXmlInputSource_2Lorg_kde_qt_QXmlReader_2Ljava_lang_StringBuffer_2_3I_3I(JNIEnv* env, jobject obj, jobject source, jobject reader, jobject errorMsg, jintArray errorLine, jintArray errorColumn) +{ +static TQString* _qstring_errorMsg = 0; + int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); + int* _int_errorColumn = QtSupport::toIntPtr(env, errorColumn); + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQXmlInputSource*) QtSupport::getQt(env, source), (TQXmlReader*) QtSupport::getQt(env, reader), (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); + env->SetIntArrayRegion(errorColumn, 0, 1, (jint *) _int_errorColumn); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent___3B(JNIEnv* env, jobject obj, jbyteArray text) +{ +static TQByteArray* _qbyteArray_text = 0; + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, text, &_qbyteArray_text)); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent___3BLjava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jbyteArray text, jobject errorMsg) +{ +static TQByteArray* _qbyteArray_text = 0; +static TQString* _qstring_errorMsg = 0; + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, text, &_qbyteArray_text), (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent___3BLjava_lang_StringBuffer_2_3I(JNIEnv* env, jobject obj, jbyteArray text, jobject errorMsg, jintArray errorLine) +{ +static TQByteArray* _qbyteArray_text = 0; +static TQString* _qstring_errorMsg = 0; + int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, text, &_qbyteArray_text), (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent___3BLjava_lang_StringBuffer_2_3I_3I(JNIEnv* env, jobject obj, jbyteArray text, jobject errorMsg, jintArray errorLine, jintArray errorColumn) +{ +static TQByteArray* _qbyteArray_text = 0; +static TQString* _qstring_errorMsg = 0; + int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); + int* _int_errorColumn = QtSupport::toIntPtr(env, errorColumn); + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, text, &_qbyteArray_text), (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); + env->SetIntArrayRegion(errorColumn, 0, 1, (jint *) _int_errorColumn); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent___3BZ(JNIEnv* env, jobject obj, jbyteArray text, jboolean namespaceProcessing) +{ +static TQByteArray* _qbyteArray_text = 0; + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, text, &_qbyteArray_text), (bool) namespaceProcessing); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent___3BZLjava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jbyteArray text, jboolean namespaceProcessing, jobject errorMsg) +{ +static TQByteArray* _qbyteArray_text = 0; +static TQString* _qstring_errorMsg = 0; + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, text, &_qbyteArray_text), (bool) namespaceProcessing, (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent___3BZLjava_lang_StringBuffer_2_3I(JNIEnv* env, jobject obj, jbyteArray text, jboolean namespaceProcessing, jobject errorMsg, jintArray errorLine) +{ +static TQByteArray* _qbyteArray_text = 0; +static TQString* _qstring_errorMsg = 0; + int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, text, &_qbyteArray_text), (bool) namespaceProcessing, (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QDomDocument_setContent___3BZLjava_lang_StringBuffer_2_3I_3I(JNIEnv* env, jobject obj, jbyteArray text, jboolean namespaceProcessing, jobject errorMsg, jintArray errorLine, jintArray errorColumn) +{ +static TQByteArray* _qbyteArray_text = 0; +static TQString* _qstring_errorMsg = 0; + int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); + int* _int_errorColumn = QtSupport::toIntPtr(env, errorColumn); + jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, text, &_qbyteArray_text), (bool) namespaceProcessing, (TQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); + env->SetIntArrayRegion(errorColumn, 0, 1, (jint *) _int_errorColumn); + return xret; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QDomDocument_toCString__(JNIEnv* env, jobject obj) +{ + TQCString _qstring; + _qstring = ((TQDomDocument*) QtSupport::getQt(env, obj))->toCString(); + return QtSupport::fromTQCString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QDomDocument_toCString__I(JNIEnv* env, jobject obj, jint arg1) +{ + TQCString _qstring; + _qstring = ((TQDomDocument*) QtSupport::getQt(env, obj))->toCString((int) arg1); + return QtSupport::fromTQCString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QDomDocument_toString__(JNIEnv* env, jobject obj) +{ + TQString _qstring; + _qstring = ((TQDomDocument*) QtSupport::getQt(env, obj))->toString(); + return QtSupport::fromTQString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QDomDocument_toString__I(JNIEnv* env, jobject obj, jint arg1) +{ + TQString _qstring; + _qstring = ((TQDomDocument*) QtSupport::getQt(env, obj))->toString((int) arg1); + return QtSupport::fromTQString(env, &_qstring); +} + |