Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMCSSStyleDeclaration.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMCSSStyleDeclaration_h__
6 : #define __gen_nsIDOMCSSStyleDeclaration_h__
7 :
8 :
9 : #ifndef __gen_domstubs_h__
10 : #include "domstubs.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 :
18 : /* starting interface: nsIDOMCSSStyleDeclaration */
19 : #define NS_IDOMCSSSTYLEDECLARATION_IID_STR "a6cf90be-15b3-11d2-932e-00805f8add32"
20 :
21 : #define NS_IDOMCSSSTYLEDECLARATION_IID \
22 : {0xa6cf90be, 0x15b3, 0x11d2, \
23 : { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
24 :
25 9 : class NS_NO_VTABLE nsIDOMCSSStyleDeclaration : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCSSSTYLEDECLARATION_IID)
29 :
30 : /* attribute DOMString cssText; */
31 : NS_IMETHOD GetCssText(nsAString & aCssText) = 0;
32 : NS_IMETHOD SetCssText(const nsAString & aCssText) = 0;
33 :
34 : /* DOMString getPropertyValue (in DOMString propertyName); */
35 : NS_IMETHOD GetPropertyValue(const nsAString & propertyName, nsAString & _retval) = 0;
36 :
37 : /* nsIDOMCSSValue getPropertyCSSValue (in DOMString propertyName); */
38 : NS_IMETHOD GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue * *_retval) = 0;
39 :
40 : /* DOMString removeProperty (in DOMString propertyName) raises (DOMException); */
41 : NS_IMETHOD RemoveProperty(const nsAString & propertyName, nsAString & _retval) = 0;
42 :
43 : /* DOMString getPropertyPriority (in DOMString propertyName); */
44 : NS_IMETHOD GetPropertyPriority(const nsAString & propertyName, nsAString & _retval) = 0;
45 :
46 : /* void setProperty (in DOMString propertyName, in DOMString value, [optional] in DOMString priority) raises (DOMException); */
47 : NS_IMETHOD SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority) = 0;
48 :
49 : /* readonly attribute unsigned long length; */
50 : NS_IMETHOD GetLength(uint32_t *aLength) = 0;
51 :
52 : /* DOMString item (in unsigned long index); */
53 : NS_IMETHOD Item(uint32_t index, nsAString & _retval) = 0;
54 :
55 : /* readonly attribute nsIDOMCSSRule parentRule; */
56 : NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) = 0;
57 :
58 : };
59 :
60 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSStyleDeclaration, NS_IDOMCSSSTYLEDECLARATION_IID)
61 :
62 : /* Use this macro when declaring classes that implement this interface. */
63 : #define NS_DECL_NSIDOMCSSSTYLEDECLARATION \
64 : NS_IMETHOD GetCssText(nsAString & aCssText) override; \
65 : NS_IMETHOD SetCssText(const nsAString & aCssText) override; \
66 : NS_IMETHOD GetPropertyValue(const nsAString & propertyName, nsAString & _retval) override; \
67 : NS_IMETHOD GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue * *_retval) override; \
68 : NS_IMETHOD RemoveProperty(const nsAString & propertyName, nsAString & _retval) override; \
69 : NS_IMETHOD GetPropertyPriority(const nsAString & propertyName, nsAString & _retval) override; \
70 : NS_IMETHOD SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority) override; \
71 : NS_IMETHOD GetLength(uint32_t *aLength) override; \
72 : NS_IMETHOD Item(uint32_t index, nsAString & _retval) override; \
73 : NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) override;
74 :
75 : /* Use this macro when declaring the members of this interface when the
76 : class doesn't implement the interface. This is useful for forwarding. */
77 : #define NS_DECL_NON_VIRTUAL_NSIDOMCSSSTYLEDECLARATION \
78 : nsresult GetCssText(nsAString & aCssText); \
79 : nsresult SetCssText(const nsAString & aCssText); \
80 : nsresult GetPropertyValue(const nsAString & propertyName, nsAString & _retval); \
81 : nsresult GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue * *_retval); \
82 : nsresult RemoveProperty(const nsAString & propertyName, nsAString & _retval); \
83 : nsresult GetPropertyPriority(const nsAString & propertyName, nsAString & _retval); \
84 : nsresult SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority); \
85 : nsresult GetLength(uint32_t *aLength); \
86 : nsresult Item(uint32_t index, nsAString & _retval); \
87 : nsresult GetParentRule(nsIDOMCSSRule * *aParentRule);
88 :
89 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
90 : #define NS_FORWARD_NSIDOMCSSSTYLEDECLARATION(_to) \
91 : NS_IMETHOD GetCssText(nsAString & aCssText) override { return _to GetCssText(aCssText); } \
92 : NS_IMETHOD SetCssText(const nsAString & aCssText) override { return _to SetCssText(aCssText); } \
93 : NS_IMETHOD GetPropertyValue(const nsAString & propertyName, nsAString & _retval) override { return _to GetPropertyValue(propertyName, _retval); } \
94 : NS_IMETHOD GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue * *_retval) override { return _to GetPropertyCSSValue(propertyName, _retval); } \
95 : NS_IMETHOD RemoveProperty(const nsAString & propertyName, nsAString & _retval) override { return _to RemoveProperty(propertyName, _retval); } \
96 : NS_IMETHOD GetPropertyPriority(const nsAString & propertyName, nsAString & _retval) override { return _to GetPropertyPriority(propertyName, _retval); } \
97 : NS_IMETHOD SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority) override { return _to SetProperty(propertyName, value, priority); } \
98 : NS_IMETHOD GetLength(uint32_t *aLength) override { return _to GetLength(aLength); } \
99 : NS_IMETHOD Item(uint32_t index, nsAString & _retval) override { return _to Item(index, _retval); } \
100 : NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) override { return _to GetParentRule(aParentRule); }
101 :
102 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
103 : #define NS_FORWARD_SAFE_NSIDOMCSSSTYLEDECLARATION(_to) \
104 : NS_IMETHOD GetCssText(nsAString & aCssText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssText(aCssText); } \
105 : NS_IMETHOD SetCssText(const nsAString & aCssText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCssText(aCssText); } \
106 : NS_IMETHOD GetPropertyValue(const nsAString & propertyName, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyValue(propertyName, _retval); } \
107 : NS_IMETHOD GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyCSSValue(propertyName, _retval); } \
108 : NS_IMETHOD RemoveProperty(const nsAString & propertyName, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveProperty(propertyName, _retval); } \
109 : NS_IMETHOD GetPropertyPriority(const nsAString & propertyName, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyPriority(propertyName, _retval); } \
110 : NS_IMETHOD SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProperty(propertyName, value, priority); } \
111 : NS_IMETHOD GetLength(uint32_t *aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
112 : NS_IMETHOD Item(uint32_t index, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
113 : NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentRule(aParentRule); }
114 :
115 : #if 0
116 : /* Use the code below as a template for the implementation class for this interface. */
117 :
118 : /* Header file */
119 : class nsDOMCSSStyleDeclaration : public nsIDOMCSSStyleDeclaration
120 : {
121 : public:
122 : NS_DECL_ISUPPORTS
123 : NS_DECL_NSIDOMCSSSTYLEDECLARATION
124 :
125 : nsDOMCSSStyleDeclaration();
126 :
127 : private:
128 : ~nsDOMCSSStyleDeclaration();
129 :
130 : protected:
131 : /* additional members */
132 : };
133 :
134 : /* Implementation file */
135 : NS_IMPL_ISUPPORTS(nsDOMCSSStyleDeclaration, nsIDOMCSSStyleDeclaration)
136 :
137 : nsDOMCSSStyleDeclaration::nsDOMCSSStyleDeclaration()
138 : {
139 : /* member initializers and constructor code */
140 : }
141 :
142 : nsDOMCSSStyleDeclaration::~nsDOMCSSStyleDeclaration()
143 : {
144 : /* destructor code */
145 : }
146 :
147 : /* attribute DOMString cssText; */
148 : NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetCssText(nsAString & aCssText)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 : NS_IMETHODIMP nsDOMCSSStyleDeclaration::SetCssText(const nsAString & aCssText)
153 : {
154 : return NS_ERROR_NOT_IMPLEMENTED;
155 : }
156 :
157 : /* DOMString getPropertyValue (in DOMString propertyName); */
158 : NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetPropertyValue(const nsAString & propertyName, nsAString & _retval)
159 : {
160 : return NS_ERROR_NOT_IMPLEMENTED;
161 : }
162 :
163 : /* nsIDOMCSSValue getPropertyCSSValue (in DOMString propertyName); */
164 : NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue * *_retval)
165 : {
166 : return NS_ERROR_NOT_IMPLEMENTED;
167 : }
168 :
169 : /* DOMString removeProperty (in DOMString propertyName) raises (DOMException); */
170 : NS_IMETHODIMP nsDOMCSSStyleDeclaration::RemoveProperty(const nsAString & propertyName, nsAString & _retval)
171 : {
172 : return NS_ERROR_NOT_IMPLEMENTED;
173 : }
174 :
175 : /* DOMString getPropertyPriority (in DOMString propertyName); */
176 : NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetPropertyPriority(const nsAString & propertyName, nsAString & _retval)
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 :
181 : /* void setProperty (in DOMString propertyName, in DOMString value, [optional] in DOMString priority) raises (DOMException); */
182 : NS_IMETHODIMP nsDOMCSSStyleDeclaration::SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority)
183 : {
184 : return NS_ERROR_NOT_IMPLEMENTED;
185 : }
186 :
187 : /* readonly attribute unsigned long length; */
188 : NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetLength(uint32_t *aLength)
189 : {
190 : return NS_ERROR_NOT_IMPLEMENTED;
191 : }
192 :
193 : /* DOMString item (in unsigned long index); */
194 : NS_IMETHODIMP nsDOMCSSStyleDeclaration::Item(uint32_t index, nsAString & _retval)
195 : {
196 : return NS_ERROR_NOT_IMPLEMENTED;
197 : }
198 :
199 : /* readonly attribute nsIDOMCSSRule parentRule; */
200 : NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetParentRule(nsIDOMCSSRule * *aParentRule)
201 : {
202 : return NS_ERROR_NOT_IMPLEMENTED;
203 : }
204 :
205 : /* End of implementation class template. */
206 : #endif
207 :
208 :
209 : #endif /* __gen_nsIDOMCSSStyleDeclaration_h__ */
|