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

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

class CSSStyleDeclarationJBridge : public DOM::CSSStyleDeclaration
{
public:
	CSSStyleDeclarationJBridge() : DOM::CSSStyleDeclaration() {};
	CSSStyleDeclarationJBridge(const DOM::CSSStyleDeclaration& arg1) : DOM::CSSStyleDeclaration(arg1) {};
};

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_CSSStyleDeclaration_getPropertyCSSValue(JNIEnv* env, jobject obj, jstring propertyName)
{
static DOM::DOMString* _domstring_propertyName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::CSSValue(((DOM::CSSStyleDeclaration*) QtSupport::getQt(env, obj))->getPropertyCSSValue((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, propertyName, &_domstring_propertyName))), "org.trinitydesktop.koala.CSSValue", TRUE);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_CSSStyleDeclaration_getPropertyPriority(JNIEnv* env, jobject obj, jstring propertyName)
{
	DOM::DOMString  _qstring;
static DOM::DOMString* _domstring_propertyName = 0;
	_qstring = ((DOM::CSSStyleDeclaration*) QtSupport::getQt(env, obj))->getPropertyPriority((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, propertyName, &_domstring_propertyName));
	return KDESupport::fromDOMString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_CSSStyleDeclaration_getPropertyValue(JNIEnv* env, jobject obj, jstring propertyName)
{
	DOM::DOMString  _qstring;
static DOM::DOMString* _domstring_propertyName = 0;
	_qstring = ((DOM::CSSStyleDeclaration*) QtSupport::getQt(env, obj))->getPropertyValue((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, propertyName, &_domstring_propertyName));
	return KDESupport::fromDOMString(env, &_qstring);
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_CSSStyleDeclaration_item(JNIEnv* env, jobject obj, jlong index)
{
	DOM::DOMString  _qstring;
	_qstring = ((DOM::CSSStyleDeclaration*) QtSupport::getQt(env, obj))->item((unsigned long) index);
	return KDESupport::fromDOMString(env, &_qstring);
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_koala_CSSStyleDeclaration_length(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((DOM::CSSStyleDeclaration*) QtSupport::getQt(env, obj))->length();
	return xret;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_CSSStyleDeclaration_parentRule(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::CSSRule(((DOM::CSSStyleDeclaration*) QtSupport::getQt(env, obj))->parentRule()), "org.trinitydesktop.koala.CSSRule", TRUE);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_CSSStyleDeclaration_removeProperty(JNIEnv* env, jobject obj, jstring propertyName)
{
	DOM::DOMString  _qstring;
static DOM::DOMString* _domstring_propertyName = 0;
	_qstring = ((DOM::CSSStyleDeclaration*) QtSupport::getQt(env, obj))->removeProperty((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, propertyName, &_domstring_propertyName));
	return KDESupport::fromDOMString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_CSSStyleDeclaration_setCssText(JNIEnv* env, jobject obj, jstring arg1)
{
static DOM::DOMString* _domstring_arg1 = 0;
	((DOM::CSSStyleDeclaration*) QtSupport::getQt(env, obj))->setCssText((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, arg1, &_domstring_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_CSSStyleDeclaration_setProperty(JNIEnv* env, jobject obj, jstring propertyName, jstring value, jstring priority)
{
static DOM::DOMString* _domstring_propertyName = 0;
static DOM::DOMString* _domstring_value = 0;
static DOM::DOMString* _domstring_priority = 0;
	((DOM::CSSStyleDeclaration*) QtSupport::getQt(env, obj))->setProperty((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, propertyName, &_domstring_propertyName), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, value, &_domstring_value), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, priority, &_domstring_priority));
	return;
}

