diff options
Diffstat (limited to 'tdejava/koala/tdejava/ProcessingInstruction.cpp')
-rw-r--r-- | tdejava/koala/tdejava/ProcessingInstruction.cpp | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/tdejava/koala/tdejava/ProcessingInstruction.cpp b/tdejava/koala/tdejava/ProcessingInstruction.cpp new file mode 100644 index 00000000..3e48e543 --- /dev/null +++ b/tdejava/koala/tdejava/ProcessingInstruction.cpp @@ -0,0 +1,79 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include <dom/dom_xml.h> +#include <dom/dom_string.h> +#include <dom/dom_node.h> +#include <dom/css_stylesheet.h> + +#include <qtjava/QtSupport.h> +#include <tdejava/TDESupport.h> +#include <tdejava/ProcessingInstruction.h> + +class ProcessingInstructionJBridge : public DOM::ProcessingInstruction +{ +public: + ProcessingInstructionJBridge() : DOM::ProcessingInstruction() {}; + ProcessingInstructionJBridge(const DOM::ProcessingInstruction& arg1) : DOM::ProcessingInstruction(arg1) {}; + ProcessingInstructionJBridge(const DOM::Node& arg1) : DOM::ProcessingInstruction(arg1) {}; +}; + +JNIEXPORT jstring JNICALL +Java_org_trinitydesktop_koala_ProcessingInstruction_data(JNIEnv* env, jobject obj) +{ + DOM::DOMString _qstring; + _qstring = ((DOM::ProcessingInstruction*) QtSupport::getQt(env, obj))->data(); + return KDESupport::fromDOMString(env, &_qstring); +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_ProcessingInstruction_newProcessingInstruction__(JNIEnv* env, jobject obj) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new ProcessingInstructionJBridge()); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_ProcessingInstruction_newProcessingInstruction__Lorg_trinitydesktop_koala_Node_2(JNIEnv* env, jobject obj, jobject other) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new ProcessingInstructionJBridge((const DOM::Node&)*(const DOM::Node*) QtSupport::getQt(env, other))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_ProcessingInstruction_newProcessingInstruction__Lorg_trinitydesktop_koala_ProcessingInstruction_2(JNIEnv* env, jobject obj, jobject other) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new ProcessingInstructionJBridge((const DOM::ProcessingInstruction&)*(const DOM::ProcessingInstruction*) QtSupport::getQt(env, other))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_ProcessingInstruction_setData(JNIEnv* env, jobject obj, jstring arg1) +{ +static DOM::DOMString* _domstring_arg1 = 0; + ((DOM::ProcessingInstruction*) QtSupport::getQt(env, obj))->setData((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, arg1, &_domstring_arg1)); + return; +} + +JNIEXPORT jobject JNICALL +Java_org_trinitydesktop_koala_ProcessingInstruction_sheet(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::StyleSheet(((DOM::ProcessingInstruction*) QtSupport::getQt(env, obj))->sheet()), "org.trinitydesktop.koala.StyleSheet", TRUE); + return xret; +} + +JNIEXPORT jstring JNICALL +Java_org_trinitydesktop_koala_ProcessingInstruction_target(JNIEnv* env, jobject obj) +{ + DOM::DOMString _qstring; + _qstring = ((DOM::ProcessingInstruction*) QtSupport::getQt(env, obj))->target(); + return KDESupport::fromDOMString(env, &_qstring); +} + |