//Auto-generated by kalyptus. DO NOT EDIT.
#include <dom/dom_doc.h>
#include <dom/dom_element.h>
#include <dom/css_value.h>
#include <dom/dom_string.h>
#include <dom/dom2_views.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/AbstractView.h>

class AbstractViewJBridge : public DOM::AbstractView
{
public:
	AbstractViewJBridge() : DOM::AbstractView() {};
	AbstractViewJBridge(const DOM::AbstractView& arg1) : DOM::AbstractView(arg1) {};
};

JNIEXPORT jobject JNICALL
Java_org_kde_koala_AbstractView_document(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Document(((DOM::AbstractView*) QtSupport::getQt(env, obj))->document()), "org.kde.koala.Document", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_AbstractView_getComputedStyle(JNIEnv* env, jobject obj, jobject elt, jstring pseudoElt)
{
static DOM::DOMString* _domstring_pseudoElt = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::CSSStyleDeclaration(((DOM::AbstractView*) QtSupport::getQt(env, obj))->getComputedStyle((const DOM::Element&)*(const DOM::Element*) QtSupport::getQt(env, elt), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, pseudoElt, &_domstring_pseudoElt))), "org.kde.koala.CSSStyleDeclaration", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_AbstractView_isNull(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DOM::AbstractView*) QtSupport::getQt(env, obj))->isNull();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_AbstractView_newAbstractView__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new AbstractViewJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_AbstractView_newAbstractView__Lorg_kde_koala_AbstractView_2(JNIEnv* env, jobject obj, jobject other)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new AbstractViewJBridge((const DOM::AbstractView&)*(const DOM::AbstractView*) QtSupport::getQt(env, other)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

