Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIBoxObject.idl
3 : */
4 :
5 : #ifndef __gen_nsIBoxObject_h__
6 : #define __gen_nsIBoxObject_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.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 : class nsIDOMElement; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIBoxObject */
21 : #define NS_IBOXOBJECT_IID_STR "ce572460-b0f2-4650-a9e7-c53a99d3b6ad"
22 :
23 : #define NS_IBOXOBJECT_IID \
24 : {0xce572460, 0xb0f2, 0x4650, \
25 : { 0xa9, 0xe7, 0xc5, 0x3a, 0x99, 0xd3, 0xb6, 0xad }}
26 :
27 11 : class NS_NO_VTABLE nsIBoxObject : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBOXOBJECT_IID)
31 :
32 : /* readonly attribute nsIDOMElement element; */
33 : NS_IMETHOD GetElement(nsIDOMElement * *aElement) = 0;
34 :
35 : /* readonly attribute long x; */
36 : NS_IMETHOD GetX(int32_t *aX) = 0;
37 :
38 : /* readonly attribute long y; */
39 : NS_IMETHOD GetY(int32_t *aY) = 0;
40 :
41 : /* readonly attribute long screenX; */
42 : NS_IMETHOD GetScreenX(int32_t *aScreenX) = 0;
43 :
44 : /* readonly attribute long screenY; */
45 : NS_IMETHOD GetScreenY(int32_t *aScreenY) = 0;
46 :
47 : /* readonly attribute long width; */
48 : NS_IMETHOD GetWidth(int32_t *aWidth) = 0;
49 :
50 : /* readonly attribute long height; */
51 : NS_IMETHOD GetHeight(int32_t *aHeight) = 0;
52 :
53 : /* nsISupports getPropertyAsSupports (in wstring propertyName); */
54 : NS_IMETHOD GetPropertyAsSupports(const char16_t * propertyName, nsISupports * *_retval) = 0;
55 :
56 : /* void setPropertyAsSupports (in wstring propertyName, in nsISupports value); */
57 : NS_IMETHOD SetPropertyAsSupports(const char16_t * propertyName, nsISupports *value) = 0;
58 :
59 : /* wstring getProperty (in wstring propertyName); */
60 : NS_IMETHOD GetProperty(const char16_t * propertyName, char16_t * *_retval) = 0;
61 :
62 : /* void setProperty (in wstring propertyName, in wstring propertyValue); */
63 : NS_IMETHOD SetProperty(const char16_t * propertyName, const char16_t * propertyValue) = 0;
64 :
65 : /* void removeProperty (in wstring propertyName); */
66 : NS_IMETHOD RemoveProperty(const char16_t * propertyName) = 0;
67 :
68 : /* readonly attribute nsIDOMElement parentBox; */
69 : NS_IMETHOD GetParentBox(nsIDOMElement * *aParentBox) = 0;
70 :
71 : /* readonly attribute nsIDOMElement firstChild; */
72 : NS_IMETHOD GetFirstChild(nsIDOMElement * *aFirstChild) = 0;
73 :
74 : /* readonly attribute nsIDOMElement lastChild; */
75 : NS_IMETHOD GetLastChild(nsIDOMElement * *aLastChild) = 0;
76 :
77 : /* readonly attribute nsIDOMElement nextSibling; */
78 : NS_IMETHOD GetNextSibling(nsIDOMElement * *aNextSibling) = 0;
79 :
80 : /* readonly attribute nsIDOMElement previousSibling; */
81 : NS_IMETHOD GetPreviousSibling(nsIDOMElement * *aPreviousSibling) = 0;
82 :
83 : };
84 :
85 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIBoxObject, NS_IBOXOBJECT_IID)
86 :
87 : /* Use this macro when declaring classes that implement this interface. */
88 : #define NS_DECL_NSIBOXOBJECT \
89 : NS_IMETHOD GetElement(nsIDOMElement * *aElement) override; \
90 : NS_IMETHOD GetX(int32_t *aX) override; \
91 : NS_IMETHOD GetY(int32_t *aY) override; \
92 : NS_IMETHOD GetScreenX(int32_t *aScreenX) override; \
93 : NS_IMETHOD GetScreenY(int32_t *aScreenY) override; \
94 : NS_IMETHOD GetWidth(int32_t *aWidth) override; \
95 : NS_IMETHOD GetHeight(int32_t *aHeight) override; \
96 : NS_IMETHOD GetPropertyAsSupports(const char16_t * propertyName, nsISupports * *_retval) override; \
97 : NS_IMETHOD SetPropertyAsSupports(const char16_t * propertyName, nsISupports *value) override; \
98 : NS_IMETHOD GetProperty(const char16_t * propertyName, char16_t * *_retval) override; \
99 : NS_IMETHOD SetProperty(const char16_t * propertyName, const char16_t * propertyValue) override; \
100 : NS_IMETHOD RemoveProperty(const char16_t * propertyName) override; \
101 : NS_IMETHOD GetParentBox(nsIDOMElement * *aParentBox) override; \
102 : NS_IMETHOD GetFirstChild(nsIDOMElement * *aFirstChild) override; \
103 : NS_IMETHOD GetLastChild(nsIDOMElement * *aLastChild) override; \
104 : NS_IMETHOD GetNextSibling(nsIDOMElement * *aNextSibling) override; \
105 : NS_IMETHOD GetPreviousSibling(nsIDOMElement * *aPreviousSibling) override;
106 :
107 : /* Use this macro when declaring the members of this interface when the
108 : class doesn't implement the interface. This is useful for forwarding. */
109 : #define NS_DECL_NON_VIRTUAL_NSIBOXOBJECT \
110 : nsresult GetElement(nsIDOMElement * *aElement); \
111 : nsresult GetX(int32_t *aX); \
112 : nsresult GetY(int32_t *aY); \
113 : nsresult GetScreenX(int32_t *aScreenX); \
114 : nsresult GetScreenY(int32_t *aScreenY); \
115 : nsresult GetWidth(int32_t *aWidth); \
116 : nsresult GetHeight(int32_t *aHeight); \
117 : nsresult GetPropertyAsSupports(const char16_t * propertyName, nsISupports * *_retval); \
118 : nsresult SetPropertyAsSupports(const char16_t * propertyName, nsISupports *value); \
119 : nsresult GetProperty(const char16_t * propertyName, char16_t * *_retval); \
120 : nsresult SetProperty(const char16_t * propertyName, const char16_t * propertyValue); \
121 : nsresult RemoveProperty(const char16_t * propertyName); \
122 : nsresult GetParentBox(nsIDOMElement * *aParentBox); \
123 : nsresult GetFirstChild(nsIDOMElement * *aFirstChild); \
124 : nsresult GetLastChild(nsIDOMElement * *aLastChild); \
125 : nsresult GetNextSibling(nsIDOMElement * *aNextSibling); \
126 : nsresult GetPreviousSibling(nsIDOMElement * *aPreviousSibling);
127 :
128 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
129 : #define NS_FORWARD_NSIBOXOBJECT(_to) \
130 : NS_IMETHOD GetElement(nsIDOMElement * *aElement) override { return _to GetElement(aElement); } \
131 : NS_IMETHOD GetX(int32_t *aX) override { return _to GetX(aX); } \
132 : NS_IMETHOD GetY(int32_t *aY) override { return _to GetY(aY); } \
133 : NS_IMETHOD GetScreenX(int32_t *aScreenX) override { return _to GetScreenX(aScreenX); } \
134 : NS_IMETHOD GetScreenY(int32_t *aScreenY) override { return _to GetScreenY(aScreenY); } \
135 : NS_IMETHOD GetWidth(int32_t *aWidth) override { return _to GetWidth(aWidth); } \
136 : NS_IMETHOD GetHeight(int32_t *aHeight) override { return _to GetHeight(aHeight); } \
137 : NS_IMETHOD GetPropertyAsSupports(const char16_t * propertyName, nsISupports * *_retval) override { return _to GetPropertyAsSupports(propertyName, _retval); } \
138 : NS_IMETHOD SetPropertyAsSupports(const char16_t * propertyName, nsISupports *value) override { return _to SetPropertyAsSupports(propertyName, value); } \
139 : NS_IMETHOD GetProperty(const char16_t * propertyName, char16_t * *_retval) override { return _to GetProperty(propertyName, _retval); } \
140 : NS_IMETHOD SetProperty(const char16_t * propertyName, const char16_t * propertyValue) override { return _to SetProperty(propertyName, propertyValue); } \
141 : NS_IMETHOD RemoveProperty(const char16_t * propertyName) override { return _to RemoveProperty(propertyName); } \
142 : NS_IMETHOD GetParentBox(nsIDOMElement * *aParentBox) override { return _to GetParentBox(aParentBox); } \
143 : NS_IMETHOD GetFirstChild(nsIDOMElement * *aFirstChild) override { return _to GetFirstChild(aFirstChild); } \
144 : NS_IMETHOD GetLastChild(nsIDOMElement * *aLastChild) override { return _to GetLastChild(aLastChild); } \
145 : NS_IMETHOD GetNextSibling(nsIDOMElement * *aNextSibling) override { return _to GetNextSibling(aNextSibling); } \
146 : NS_IMETHOD GetPreviousSibling(nsIDOMElement * *aPreviousSibling) override { return _to GetPreviousSibling(aPreviousSibling); }
147 :
148 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
149 : #define NS_FORWARD_SAFE_NSIBOXOBJECT(_to) \
150 : NS_IMETHOD GetElement(nsIDOMElement * *aElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElement(aElement); } \
151 : NS_IMETHOD GetX(int32_t *aX) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetX(aX); } \
152 : NS_IMETHOD GetY(int32_t *aY) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetY(aY); } \
153 : NS_IMETHOD GetScreenX(int32_t *aScreenX) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenX(aScreenX); } \
154 : NS_IMETHOD GetScreenY(int32_t *aScreenY) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenY(aScreenY); } \
155 : NS_IMETHOD GetWidth(int32_t *aWidth) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidth(aWidth); } \
156 : NS_IMETHOD GetHeight(int32_t *aHeight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeight(aHeight); } \
157 : NS_IMETHOD GetPropertyAsSupports(const char16_t * propertyName, nsISupports * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsSupports(propertyName, _retval); } \
158 : NS_IMETHOD SetPropertyAsSupports(const char16_t * propertyName, nsISupports *value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsSupports(propertyName, value); } \
159 : NS_IMETHOD GetProperty(const char16_t * propertyName, char16_t * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProperty(propertyName, _retval); } \
160 : NS_IMETHOD SetProperty(const char16_t * propertyName, const char16_t * propertyValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProperty(propertyName, propertyValue); } \
161 : NS_IMETHOD RemoveProperty(const char16_t * propertyName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveProperty(propertyName); } \
162 : NS_IMETHOD GetParentBox(nsIDOMElement * *aParentBox) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentBox(aParentBox); } \
163 : NS_IMETHOD GetFirstChild(nsIDOMElement * *aFirstChild) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFirstChild(aFirstChild); } \
164 : NS_IMETHOD GetLastChild(nsIDOMElement * *aLastChild) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastChild(aLastChild); } \
165 : NS_IMETHOD GetNextSibling(nsIDOMElement * *aNextSibling) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextSibling(aNextSibling); } \
166 : NS_IMETHOD GetPreviousSibling(nsIDOMElement * *aPreviousSibling) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreviousSibling(aPreviousSibling); }
167 :
168 : #if 0
169 : /* Use the code below as a template for the implementation class for this interface. */
170 :
171 : /* Header file */
172 : class nsBoxObject : public nsIBoxObject
173 : {
174 : public:
175 : NS_DECL_ISUPPORTS
176 : NS_DECL_NSIBOXOBJECT
177 :
178 : nsBoxObject();
179 :
180 : private:
181 : ~nsBoxObject();
182 :
183 : protected:
184 : /* additional members */
185 : };
186 :
187 : /* Implementation file */
188 : NS_IMPL_ISUPPORTS(nsBoxObject, nsIBoxObject)
189 :
190 : nsBoxObject::nsBoxObject()
191 : {
192 : /* member initializers and constructor code */
193 : }
194 :
195 : nsBoxObject::~nsBoxObject()
196 : {
197 : /* destructor code */
198 : }
199 :
200 : /* readonly attribute nsIDOMElement element; */
201 : NS_IMETHODIMP nsBoxObject::GetElement(nsIDOMElement * *aElement)
202 : {
203 : return NS_ERROR_NOT_IMPLEMENTED;
204 : }
205 :
206 : /* readonly attribute long x; */
207 : NS_IMETHODIMP nsBoxObject::GetX(int32_t *aX)
208 : {
209 : return NS_ERROR_NOT_IMPLEMENTED;
210 : }
211 :
212 : /* readonly attribute long y; */
213 : NS_IMETHODIMP nsBoxObject::GetY(int32_t *aY)
214 : {
215 : return NS_ERROR_NOT_IMPLEMENTED;
216 : }
217 :
218 : /* readonly attribute long screenX; */
219 : NS_IMETHODIMP nsBoxObject::GetScreenX(int32_t *aScreenX)
220 : {
221 : return NS_ERROR_NOT_IMPLEMENTED;
222 : }
223 :
224 : /* readonly attribute long screenY; */
225 : NS_IMETHODIMP nsBoxObject::GetScreenY(int32_t *aScreenY)
226 : {
227 : return NS_ERROR_NOT_IMPLEMENTED;
228 : }
229 :
230 : /* readonly attribute long width; */
231 : NS_IMETHODIMP nsBoxObject::GetWidth(int32_t *aWidth)
232 : {
233 : return NS_ERROR_NOT_IMPLEMENTED;
234 : }
235 :
236 : /* readonly attribute long height; */
237 : NS_IMETHODIMP nsBoxObject::GetHeight(int32_t *aHeight)
238 : {
239 : return NS_ERROR_NOT_IMPLEMENTED;
240 : }
241 :
242 : /* nsISupports getPropertyAsSupports (in wstring propertyName); */
243 : NS_IMETHODIMP nsBoxObject::GetPropertyAsSupports(const char16_t * propertyName, nsISupports * *_retval)
244 : {
245 : return NS_ERROR_NOT_IMPLEMENTED;
246 : }
247 :
248 : /* void setPropertyAsSupports (in wstring propertyName, in nsISupports value); */
249 : NS_IMETHODIMP nsBoxObject::SetPropertyAsSupports(const char16_t * propertyName, nsISupports *value)
250 : {
251 : return NS_ERROR_NOT_IMPLEMENTED;
252 : }
253 :
254 : /* wstring getProperty (in wstring propertyName); */
255 : NS_IMETHODIMP nsBoxObject::GetProperty(const char16_t * propertyName, char16_t * *_retval)
256 : {
257 : return NS_ERROR_NOT_IMPLEMENTED;
258 : }
259 :
260 : /* void setProperty (in wstring propertyName, in wstring propertyValue); */
261 : NS_IMETHODIMP nsBoxObject::SetProperty(const char16_t * propertyName, const char16_t * propertyValue)
262 : {
263 : return NS_ERROR_NOT_IMPLEMENTED;
264 : }
265 :
266 : /* void removeProperty (in wstring propertyName); */
267 : NS_IMETHODIMP nsBoxObject::RemoveProperty(const char16_t * propertyName)
268 : {
269 : return NS_ERROR_NOT_IMPLEMENTED;
270 : }
271 :
272 : /* readonly attribute nsIDOMElement parentBox; */
273 : NS_IMETHODIMP nsBoxObject::GetParentBox(nsIDOMElement * *aParentBox)
274 : {
275 : return NS_ERROR_NOT_IMPLEMENTED;
276 : }
277 :
278 : /* readonly attribute nsIDOMElement firstChild; */
279 : NS_IMETHODIMP nsBoxObject::GetFirstChild(nsIDOMElement * *aFirstChild)
280 : {
281 : return NS_ERROR_NOT_IMPLEMENTED;
282 : }
283 :
284 : /* readonly attribute nsIDOMElement lastChild; */
285 : NS_IMETHODIMP nsBoxObject::GetLastChild(nsIDOMElement * *aLastChild)
286 : {
287 : return NS_ERROR_NOT_IMPLEMENTED;
288 : }
289 :
290 : /* readonly attribute nsIDOMElement nextSibling; */
291 : NS_IMETHODIMP nsBoxObject::GetNextSibling(nsIDOMElement * *aNextSibling)
292 : {
293 : return NS_ERROR_NOT_IMPLEMENTED;
294 : }
295 :
296 : /* readonly attribute nsIDOMElement previousSibling; */
297 : NS_IMETHODIMP nsBoxObject::GetPreviousSibling(nsIDOMElement * *aPreviousSibling)
298 : {
299 : return NS_ERROR_NOT_IMPLEMENTED;
300 : }
301 :
302 : /* End of implementation class template. */
303 : #endif
304 :
305 : nsresult
306 : NS_NewBoxObject(nsIBoxObject** aResult);
307 :
308 : #endif /* __gen_nsIBoxObject_h__ */
|