//Auto-generated by kalyptus. DO NOT EDIT.
#include <dom/css_stylesheet.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/LinkStyle.h>

class LinkStyleJBridge : public DOM::LinkStyle
{
public:
	LinkStyleJBridge() : DOM::LinkStyle() {};
	LinkStyleJBridge(const DOM::LinkStyle& arg1) : DOM::LinkStyle(arg1) {};
};

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_LinkStyle_sheet(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::StyleSheet(((DOM::LinkStyle*) QtSupport::getQt(env, obj))->sheet()), "org.trinitydesktop.koala.StyleSheet", true);
	return xret;
}

