diff options
Diffstat (limited to 'kdejava/koala/kdejava/HTMLDocument.cpp')
-rw-r--r-- | kdejava/koala/kdejava/HTMLDocument.cpp | 235 |
1 files changed, 235 insertions, 0 deletions
diff --git a/kdejava/koala/kdejava/HTMLDocument.cpp b/kdejava/koala/kdejava/HTMLDocument.cpp new file mode 100644 index 00000000..7db37d27 --- /dev/null +++ b/kdejava/koala/kdejava/HTMLDocument.cpp @@ -0,0 +1,235 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include <dom/html_document.h> +#include <dom/html_element.h> +#include <dom/dom_string.h> +#include <dom/dom_node.h> +#include <dom/html_misc.h> + +#include <qtjava/QtSupport.h> +#include <kdejava/KDESupport.h> +#include <kdejava/HTMLDocument.h> + +class HTMLDocumentJBridge : public DOM::HTMLDocument +{ +public: + HTMLDocumentJBridge() : DOM::HTMLDocument() {}; + HTMLDocumentJBridge(KHTMLView* arg1) : DOM::HTMLDocument(arg1) {}; + HTMLDocumentJBridge(const DOM::HTMLDocument& arg1) : DOM::HTMLDocument(arg1) {}; + HTMLDocumentJBridge(const DOM::Node& arg1) : DOM::HTMLDocument(arg1) {}; +}; + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_HTMLDocument_URL(JNIEnv* env, jobject obj) +{ + DOM::DOMString _qstring; + _qstring = ((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->URL(); + return KDESupport::fromDOMString(env, &_qstring); +} + +JNIEXPORT jobject JNICALL +Java_org_kde_koala_HTMLDocument_all(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::HTMLCollection(((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->all()), "org.kde.koala.HTMLCollection", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_koala_HTMLDocument_anchors(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::HTMLCollection(((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->anchors()), "org.kde.koala.HTMLCollection", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_koala_HTMLDocument_applets(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::HTMLCollection(((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->applets()), "org.kde.koala.HTMLCollection", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_koala_HTMLDocument_body(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::HTMLElement(((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->body()), "org.kde.koala.HTMLElement", TRUE); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_HTMLDocument_close(JNIEnv* env, jobject obj) +{ + ((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->close(); + return; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_HTMLDocument_completeURL(JNIEnv* env, jobject obj, jstring url) +{ + DOM::DOMString _qstring; +static DOM::DOMString* _domstring_url = 0; + _qstring = ((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->completeURL((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, url, &_domstring_url)); + return KDESupport::fromDOMString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_HTMLDocument_cookie(JNIEnv* env, jobject obj) +{ + DOM::DOMString _qstring; + _qstring = ((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->cookie(); + return KDESupport::fromDOMString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_HTMLDocument_domain(JNIEnv* env, jobject obj) +{ + DOM::DOMString _qstring; + _qstring = ((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->domain(); + return KDESupport::fromDOMString(env, &_qstring); +} + +JNIEXPORT jobject JNICALL +Java_org_kde_koala_HTMLDocument_forms(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::HTMLCollection(((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->forms()), "org.kde.koala.HTMLCollection", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_koala_HTMLDocument_getElementsByName(JNIEnv* env, jobject obj, jstring elementName) +{ + DOM::NodeList _qlist; +static DOM::DOMString* _domstring_elementName = 0; + _qlist = ((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->getElementsByName((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, elementName, &_domstring_elementName)); + return (jobject) KDESupport::arrayWithNodeList(env, (DOM::NodeList *) &_qlist); +} + +JNIEXPORT jobject JNICALL +Java_org_kde_koala_HTMLDocument_images(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::HTMLCollection(((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->images()), "org.kde.koala.HTMLCollection", TRUE); + return xret; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_HTMLDocument_lastModified(JNIEnv* env, jobject obj) +{ + DOM::DOMString _qstring; + _qstring = ((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->lastModified(); + return KDESupport::fromDOMString(env, &_qstring); +} + +JNIEXPORT jobject JNICALL +Java_org_kde_koala_HTMLDocument_layers(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::HTMLCollection(((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->layers()), "org.kde.koala.HTMLCollection", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_koala_HTMLDocument_links(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::HTMLCollection(((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->links()), "org.kde.koala.HTMLCollection", TRUE); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_HTMLDocument_newHTMLDocument__(JNIEnv* env, jobject obj) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new HTMLDocumentJBridge()); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_HTMLDocument_newHTMLDocument__Lorg_kde_koala_HTMLDocument_2(JNIEnv* env, jobject obj, jobject other) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new HTMLDocumentJBridge((const DOM::HTMLDocument&)*(const DOM::HTMLDocument*) QtSupport::getQt(env, other))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_HTMLDocument_newHTMLDocument__Lorg_kde_koala_KHTMLView_2(JNIEnv* env, jobject obj, jobject parent) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new HTMLDocumentJBridge((KHTMLView*) QtSupport::getQt(env, parent))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_HTMLDocument_newHTMLDocument__Lorg_kde_koala_Node_2(JNIEnv* env, jobject obj, jobject other) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new HTMLDocumentJBridge((const DOM::Node&)*(const DOM::Node*) QtSupport::getQt(env, other))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_HTMLDocument_open(JNIEnv* env, jobject obj) +{ + ((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->open(); + return; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_HTMLDocument_referrer(JNIEnv* env, jobject obj) +{ + DOM::DOMString _qstring; + _qstring = ((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->referrer(); + return KDESupport::fromDOMString(env, &_qstring); +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_HTMLDocument_setBody(JNIEnv* env, jobject obj, jobject arg1) +{ + ((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->setBody((const DOM::HTMLElement&)*(const DOM::HTMLElement*) QtSupport::getQt(env, arg1)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_HTMLDocument_setCookie(JNIEnv* env, jobject obj, jstring arg1) +{ +static DOM::DOMString* _domstring_arg1 = 0; + ((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->setCookie((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, arg1, &_domstring_arg1)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_HTMLDocument_setTitle(JNIEnv* env, jobject obj, jstring arg1) +{ +static DOM::DOMString* _domstring_arg1 = 0; + ((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->setTitle((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, arg1, &_domstring_arg1)); + return; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_HTMLDocument_title(JNIEnv* env, jobject obj) +{ + DOM::DOMString _qstring; + _qstring = ((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->title(); + return KDESupport::fromDOMString(env, &_qstring); +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_HTMLDocument_write(JNIEnv* env, jobject obj, jstring text) +{ +static DOM::DOMString* _domstring_text = 0; + ((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->write((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, text, &_domstring_text)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_HTMLDocument_writeln(JNIEnv* env, jobject obj, jstring text) +{ +static DOM::DOMString* _domstring_text = 0; + ((DOM::HTMLDocument*) QtSupport::getQt(env, obj))->writeln((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, text, &_domstring_text)); + return; +} + |