summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/tdejava/CSSStyleRule.cpp
blob: a74076f53c03c7ea1d43c97ebbea1d82e8b07551 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//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/CSSStyleRule.h>

class CSSStyleRuleJBridge : public DOM::CSSStyleRule
{
public:
	CSSStyleRuleJBridge() : DOM::CSSStyleRule() {};
	CSSStyleRuleJBridge(const DOM::CSSStyleRule& arg1) : DOM::CSSStyleRule(arg1) {};
	CSSStyleRuleJBridge(const DOM::CSSRule& arg1) : DOM::CSSStyleRule(arg1) {};
};

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

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

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

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

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

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