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

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

class DocumentStyleJBridge : public DOM::DocumentStyle
{
public:
	DocumentStyleJBridge() : DOM::DocumentStyle() {};
	DocumentStyleJBridge(const DOM::DocumentStyle& arg1) : DOM::DocumentStyle(arg1) {};
};

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

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_DocumentStyle_preferredStylesheetSet(JNIEnv* env, jobject obj)
{
	DOM::DOMString  _qstring;
	_qstring = ((DOM::DocumentStyle*) QtSupport::getQt(env, obj))->preferredStylesheetSet();
	return KDESupport::fromDOMString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_DocumentStyle_selectedStylesheetSet(JNIEnv* env, jobject obj)
{
	DOM::DOMString  _qstring;
	_qstring = ((DOM::DocumentStyle*) QtSupport::getQt(env, obj))->selectedStylesheetSet();
	return KDESupport::fromDOMString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_DocumentStyle_setSelectedStylesheetSet(JNIEnv* env, jobject obj, jstring aString)
{
static DOM::DOMString* _domstring_aString = 0;
	((DOM::DocumentStyle*) QtSupport::getQt(env, obj))->setSelectedStylesheetSet((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, aString, &_domstring_aString));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_DocumentStyle_styleSheets(JNIEnv* env, jobject obj)
{
	DOM::StyleSheetList  _qlist;
	_qlist = ((DOM::DocumentStyle*) QtSupport::getQt(env, obj))->styleSheets();
	return (jobject) KDESupport::arrayWithStyleSheetList(env, (DOM::StyleSheetList *) &_qlist);
}

