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

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

class CSSFontFaceRuleJBridge : public DOM::CSSFontFaceRule
{
public:
	CSSFontFaceRuleJBridge() : DOM::CSSFontFaceRule() {};
	CSSFontFaceRuleJBridge(const DOM::CSSFontFaceRule& arg1) : DOM::CSSFontFaceRule(arg1) {};
	CSSFontFaceRuleJBridge(const DOM::CSSRule& arg1) : DOM::CSSFontFaceRule(arg1) {};
};

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

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

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

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

