//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/CSSPageRule.h>

class CSSPageRuleJBridge : public DOM::CSSPageRule
{
public:
	CSSPageRuleJBridge() : DOM::CSSPageRule() {};
	CSSPageRuleJBridge(const DOM::CSSPageRule& arg1) : DOM::CSSPageRule(arg1) {};
	CSSPageRuleJBridge(const DOM::CSSRule& arg1) : DOM::CSSPageRule(arg1) {};
};

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

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

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

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

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

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

