Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsITreeSelection.idl
3 : */
4 :
5 : #ifndef __gen_nsITreeSelection_h__
6 : #define __gen_nsITreeSelection_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 nsITreeBoxObject; /* forward declaration */
18 :
19 : class nsITreeColumn; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsITreeSelection */
23 : #define NS_ITREESELECTION_IID_STR "ab6fe746-300b-4ab4-abb9-1c0e3977874c"
24 :
25 : #define NS_ITREESELECTION_IID \
26 : {0xab6fe746, 0x300b, 0x4ab4, \
27 : { 0xab, 0xb9, 0x1c, 0x0e, 0x39, 0x77, 0x87, 0x4c }}
28 :
29 0 : class NS_NO_VTABLE nsITreeSelection : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITREESELECTION_IID)
33 :
34 : /* attribute nsITreeBoxObject tree; */
35 : NS_IMETHOD GetTree(nsITreeBoxObject * *aTree) = 0;
36 : NS_IMETHOD SetTree(nsITreeBoxObject *aTree) = 0;
37 :
38 : /* readonly attribute boolean single; */
39 : NS_IMETHOD GetSingle(bool *aSingle) = 0;
40 :
41 : /* readonly attribute long count; */
42 : NS_IMETHOD GetCount(int32_t *aCount) = 0;
43 :
44 : /* boolean isSelected (in long index); */
45 : NS_IMETHOD IsSelected(int32_t index, bool *_retval) = 0;
46 :
47 : /* void select (in long index); */
48 : NS_IMETHOD Select(int32_t index) = 0;
49 :
50 : /* void timedSelect (in long index, in long delay); */
51 : NS_IMETHOD TimedSelect(int32_t index, int32_t delay) = 0;
52 :
53 : /* void toggleSelect (in long index); */
54 : NS_IMETHOD ToggleSelect(int32_t index) = 0;
55 :
56 : /* void rangedSelect (in long startIndex, in long endIndex, in boolean augment); */
57 : NS_IMETHOD RangedSelect(int32_t startIndex, int32_t endIndex, bool augment) = 0;
58 :
59 : /* void clearRange (in long startIndex, in long endIndex); */
60 : NS_IMETHOD ClearRange(int32_t startIndex, int32_t endIndex) = 0;
61 :
62 : /* void clearSelection (); */
63 : NS_IMETHOD ClearSelection(void) = 0;
64 :
65 : /* void invertSelection (); */
66 : NS_IMETHOD InvertSelection(void) = 0;
67 :
68 : /* void selectAll (); */
69 : NS_IMETHOD SelectAll(void) = 0;
70 :
71 : /* long getRangeCount (); */
72 : NS_IMETHOD GetRangeCount(int32_t *_retval) = 0;
73 :
74 : /* void getRangeAt (in long i, out long min, out long max); */
75 : NS_IMETHOD GetRangeAt(int32_t i, int32_t *min, int32_t *max) = 0;
76 :
77 : /* void invalidateSelection (); */
78 : NS_IMETHOD InvalidateSelection(void) = 0;
79 :
80 : /* void adjustSelection (in long index, in long count); */
81 : NS_IMETHOD AdjustSelection(int32_t index, int32_t count) = 0;
82 :
83 : /* attribute boolean selectEventsSuppressed; */
84 : NS_IMETHOD GetSelectEventsSuppressed(bool *aSelectEventsSuppressed) = 0;
85 : NS_IMETHOD SetSelectEventsSuppressed(bool aSelectEventsSuppressed) = 0;
86 :
87 : /* attribute long currentIndex; */
88 : NS_IMETHOD GetCurrentIndex(int32_t *aCurrentIndex) = 0;
89 : NS_IMETHOD SetCurrentIndex(int32_t aCurrentIndex) = 0;
90 :
91 : /* attribute nsITreeColumn currentColumn; */
92 : NS_IMETHOD GetCurrentColumn(nsITreeColumn * *aCurrentColumn) = 0;
93 : NS_IMETHOD SetCurrentColumn(nsITreeColumn *aCurrentColumn) = 0;
94 :
95 : /* readonly attribute long shiftSelectPivot; */
96 : NS_IMETHOD GetShiftSelectPivot(int32_t *aShiftSelectPivot) = 0;
97 :
98 : };
99 :
100 : NS_DEFINE_STATIC_IID_ACCESSOR(nsITreeSelection, NS_ITREESELECTION_IID)
101 :
102 : /* Use this macro when declaring classes that implement this interface. */
103 : #define NS_DECL_NSITREESELECTION \
104 : NS_IMETHOD GetTree(nsITreeBoxObject * *aTree) override; \
105 : NS_IMETHOD SetTree(nsITreeBoxObject *aTree) override; \
106 : NS_IMETHOD GetSingle(bool *aSingle) override; \
107 : NS_IMETHOD GetCount(int32_t *aCount) override; \
108 : NS_IMETHOD IsSelected(int32_t index, bool *_retval) override; \
109 : NS_IMETHOD Select(int32_t index) override; \
110 : NS_IMETHOD TimedSelect(int32_t index, int32_t delay) override; \
111 : NS_IMETHOD ToggleSelect(int32_t index) override; \
112 : NS_IMETHOD RangedSelect(int32_t startIndex, int32_t endIndex, bool augment) override; \
113 : NS_IMETHOD ClearRange(int32_t startIndex, int32_t endIndex) override; \
114 : NS_IMETHOD ClearSelection(void) override; \
115 : NS_IMETHOD InvertSelection(void) override; \
116 : NS_IMETHOD SelectAll(void) override; \
117 : NS_IMETHOD GetRangeCount(int32_t *_retval) override; \
118 : NS_IMETHOD GetRangeAt(int32_t i, int32_t *min, int32_t *max) override; \
119 : NS_IMETHOD InvalidateSelection(void) override; \
120 : NS_IMETHOD AdjustSelection(int32_t index, int32_t count) override; \
121 : NS_IMETHOD GetSelectEventsSuppressed(bool *aSelectEventsSuppressed) override; \
122 : NS_IMETHOD SetSelectEventsSuppressed(bool aSelectEventsSuppressed) override; \
123 : NS_IMETHOD GetCurrentIndex(int32_t *aCurrentIndex) override; \
124 : NS_IMETHOD SetCurrentIndex(int32_t aCurrentIndex) override; \
125 : NS_IMETHOD GetCurrentColumn(nsITreeColumn * *aCurrentColumn) override; \
126 : NS_IMETHOD SetCurrentColumn(nsITreeColumn *aCurrentColumn) override; \
127 : NS_IMETHOD GetShiftSelectPivot(int32_t *aShiftSelectPivot) override;
128 :
129 : /* Use this macro when declaring the members of this interface when the
130 : class doesn't implement the interface. This is useful for forwarding. */
131 : #define NS_DECL_NON_VIRTUAL_NSITREESELECTION \
132 : nsresult GetTree(nsITreeBoxObject * *aTree); \
133 : nsresult SetTree(nsITreeBoxObject *aTree); \
134 : nsresult GetSingle(bool *aSingle); \
135 : nsresult GetCount(int32_t *aCount); \
136 : nsresult IsSelected(int32_t index, bool *_retval); \
137 : nsresult Select(int32_t index); \
138 : nsresult TimedSelect(int32_t index, int32_t delay); \
139 : nsresult ToggleSelect(int32_t index); \
140 : nsresult RangedSelect(int32_t startIndex, int32_t endIndex, bool augment); \
141 : nsresult ClearRange(int32_t startIndex, int32_t endIndex); \
142 : nsresult ClearSelection(void); \
143 : nsresult InvertSelection(void); \
144 : nsresult SelectAll(void); \
145 : nsresult GetRangeCount(int32_t *_retval); \
146 : nsresult GetRangeAt(int32_t i, int32_t *min, int32_t *max); \
147 : nsresult InvalidateSelection(void); \
148 : nsresult AdjustSelection(int32_t index, int32_t count); \
149 : nsresult GetSelectEventsSuppressed(bool *aSelectEventsSuppressed); \
150 : nsresult SetSelectEventsSuppressed(bool aSelectEventsSuppressed); \
151 : nsresult GetCurrentIndex(int32_t *aCurrentIndex); \
152 : nsresult SetCurrentIndex(int32_t aCurrentIndex); \
153 : nsresult GetCurrentColumn(nsITreeColumn * *aCurrentColumn); \
154 : nsresult SetCurrentColumn(nsITreeColumn *aCurrentColumn); \
155 : nsresult GetShiftSelectPivot(int32_t *aShiftSelectPivot);
156 :
157 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
158 : #define NS_FORWARD_NSITREESELECTION(_to) \
159 : NS_IMETHOD GetTree(nsITreeBoxObject * *aTree) override { return _to GetTree(aTree); } \
160 : NS_IMETHOD SetTree(nsITreeBoxObject *aTree) override { return _to SetTree(aTree); } \
161 : NS_IMETHOD GetSingle(bool *aSingle) override { return _to GetSingle(aSingle); } \
162 : NS_IMETHOD GetCount(int32_t *aCount) override { return _to GetCount(aCount); } \
163 : NS_IMETHOD IsSelected(int32_t index, bool *_retval) override { return _to IsSelected(index, _retval); } \
164 : NS_IMETHOD Select(int32_t index) override { return _to Select(index); } \
165 : NS_IMETHOD TimedSelect(int32_t index, int32_t delay) override { return _to TimedSelect(index, delay); } \
166 : NS_IMETHOD ToggleSelect(int32_t index) override { return _to ToggleSelect(index); } \
167 : NS_IMETHOD RangedSelect(int32_t startIndex, int32_t endIndex, bool augment) override { return _to RangedSelect(startIndex, endIndex, augment); } \
168 : NS_IMETHOD ClearRange(int32_t startIndex, int32_t endIndex) override { return _to ClearRange(startIndex, endIndex); } \
169 : NS_IMETHOD ClearSelection(void) override { return _to ClearSelection(); } \
170 : NS_IMETHOD InvertSelection(void) override { return _to InvertSelection(); } \
171 : NS_IMETHOD SelectAll(void) override { return _to SelectAll(); } \
172 : NS_IMETHOD GetRangeCount(int32_t *_retval) override { return _to GetRangeCount(_retval); } \
173 : NS_IMETHOD GetRangeAt(int32_t i, int32_t *min, int32_t *max) override { return _to GetRangeAt(i, min, max); } \
174 : NS_IMETHOD InvalidateSelection(void) override { return _to InvalidateSelection(); } \
175 : NS_IMETHOD AdjustSelection(int32_t index, int32_t count) override { return _to AdjustSelection(index, count); } \
176 : NS_IMETHOD GetSelectEventsSuppressed(bool *aSelectEventsSuppressed) override { return _to GetSelectEventsSuppressed(aSelectEventsSuppressed); } \
177 : NS_IMETHOD SetSelectEventsSuppressed(bool aSelectEventsSuppressed) override { return _to SetSelectEventsSuppressed(aSelectEventsSuppressed); } \
178 : NS_IMETHOD GetCurrentIndex(int32_t *aCurrentIndex) override { return _to GetCurrentIndex(aCurrentIndex); } \
179 : NS_IMETHOD SetCurrentIndex(int32_t aCurrentIndex) override { return _to SetCurrentIndex(aCurrentIndex); } \
180 : NS_IMETHOD GetCurrentColumn(nsITreeColumn * *aCurrentColumn) override { return _to GetCurrentColumn(aCurrentColumn); } \
181 : NS_IMETHOD SetCurrentColumn(nsITreeColumn *aCurrentColumn) override { return _to SetCurrentColumn(aCurrentColumn); } \
182 : NS_IMETHOD GetShiftSelectPivot(int32_t *aShiftSelectPivot) override { return _to GetShiftSelectPivot(aShiftSelectPivot); }
183 :
184 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
185 : #define NS_FORWARD_SAFE_NSITREESELECTION(_to) \
186 : NS_IMETHOD GetTree(nsITreeBoxObject * *aTree) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTree(aTree); } \
187 : NS_IMETHOD SetTree(nsITreeBoxObject *aTree) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTree(aTree); } \
188 : NS_IMETHOD GetSingle(bool *aSingle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSingle(aSingle); } \
189 : NS_IMETHOD GetCount(int32_t *aCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCount(aCount); } \
190 : NS_IMETHOD IsSelected(int32_t index, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSelected(index, _retval); } \
191 : NS_IMETHOD Select(int32_t index) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Select(index); } \
192 : NS_IMETHOD TimedSelect(int32_t index, int32_t delay) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TimedSelect(index, delay); } \
193 : NS_IMETHOD ToggleSelect(int32_t index) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ToggleSelect(index); } \
194 : NS_IMETHOD RangedSelect(int32_t startIndex, int32_t endIndex, bool augment) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RangedSelect(startIndex, endIndex, augment); } \
195 : NS_IMETHOD ClearRange(int32_t startIndex, int32_t endIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearRange(startIndex, endIndex); } \
196 : NS_IMETHOD ClearSelection(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearSelection(); } \
197 : NS_IMETHOD InvertSelection(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InvertSelection(); } \
198 : NS_IMETHOD SelectAll(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectAll(); } \
199 : NS_IMETHOD GetRangeCount(int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRangeCount(_retval); } \
200 : NS_IMETHOD GetRangeAt(int32_t i, int32_t *min, int32_t *max) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRangeAt(i, min, max); } \
201 : NS_IMETHOD InvalidateSelection(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateSelection(); } \
202 : NS_IMETHOD AdjustSelection(int32_t index, int32_t count) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AdjustSelection(index, count); } \
203 : NS_IMETHOD GetSelectEventsSuppressed(bool *aSelectEventsSuppressed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectEventsSuppressed(aSelectEventsSuppressed); } \
204 : NS_IMETHOD SetSelectEventsSuppressed(bool aSelectEventsSuppressed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectEventsSuppressed(aSelectEventsSuppressed); } \
205 : NS_IMETHOD GetCurrentIndex(int32_t *aCurrentIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentIndex(aCurrentIndex); } \
206 : NS_IMETHOD SetCurrentIndex(int32_t aCurrentIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentIndex(aCurrentIndex); } \
207 : NS_IMETHOD GetCurrentColumn(nsITreeColumn * *aCurrentColumn) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentColumn(aCurrentColumn); } \
208 : NS_IMETHOD SetCurrentColumn(nsITreeColumn *aCurrentColumn) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentColumn(aCurrentColumn); } \
209 : NS_IMETHOD GetShiftSelectPivot(int32_t *aShiftSelectPivot) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShiftSelectPivot(aShiftSelectPivot); }
210 :
211 : #if 0
212 : /* Use the code below as a template for the implementation class for this interface. */
213 :
214 : /* Header file */
215 : class nsTreeSelection : public nsITreeSelection
216 : {
217 : public:
218 : NS_DECL_ISUPPORTS
219 : NS_DECL_NSITREESELECTION
220 :
221 : nsTreeSelection();
222 :
223 : private:
224 : ~nsTreeSelection();
225 :
226 : protected:
227 : /* additional members */
228 : };
229 :
230 : /* Implementation file */
231 : NS_IMPL_ISUPPORTS(nsTreeSelection, nsITreeSelection)
232 :
233 : nsTreeSelection::nsTreeSelection()
234 : {
235 : /* member initializers and constructor code */
236 : }
237 :
238 : nsTreeSelection::~nsTreeSelection()
239 : {
240 : /* destructor code */
241 : }
242 :
243 : /* attribute nsITreeBoxObject tree; */
244 : NS_IMETHODIMP nsTreeSelection::GetTree(nsITreeBoxObject * *aTree)
245 : {
246 : return NS_ERROR_NOT_IMPLEMENTED;
247 : }
248 : NS_IMETHODIMP nsTreeSelection::SetTree(nsITreeBoxObject *aTree)
249 : {
250 : return NS_ERROR_NOT_IMPLEMENTED;
251 : }
252 :
253 : /* readonly attribute boolean single; */
254 : NS_IMETHODIMP nsTreeSelection::GetSingle(bool *aSingle)
255 : {
256 : return NS_ERROR_NOT_IMPLEMENTED;
257 : }
258 :
259 : /* readonly attribute long count; */
260 : NS_IMETHODIMP nsTreeSelection::GetCount(int32_t *aCount)
261 : {
262 : return NS_ERROR_NOT_IMPLEMENTED;
263 : }
264 :
265 : /* boolean isSelected (in long index); */
266 : NS_IMETHODIMP nsTreeSelection::IsSelected(int32_t index, bool *_retval)
267 : {
268 : return NS_ERROR_NOT_IMPLEMENTED;
269 : }
270 :
271 : /* void select (in long index); */
272 : NS_IMETHODIMP nsTreeSelection::Select(int32_t index)
273 : {
274 : return NS_ERROR_NOT_IMPLEMENTED;
275 : }
276 :
277 : /* void timedSelect (in long index, in long delay); */
278 : NS_IMETHODIMP nsTreeSelection::TimedSelect(int32_t index, int32_t delay)
279 : {
280 : return NS_ERROR_NOT_IMPLEMENTED;
281 : }
282 :
283 : /* void toggleSelect (in long index); */
284 : NS_IMETHODIMP nsTreeSelection::ToggleSelect(int32_t index)
285 : {
286 : return NS_ERROR_NOT_IMPLEMENTED;
287 : }
288 :
289 : /* void rangedSelect (in long startIndex, in long endIndex, in boolean augment); */
290 : NS_IMETHODIMP nsTreeSelection::RangedSelect(int32_t startIndex, int32_t endIndex, bool augment)
291 : {
292 : return NS_ERROR_NOT_IMPLEMENTED;
293 : }
294 :
295 : /* void clearRange (in long startIndex, in long endIndex); */
296 : NS_IMETHODIMP nsTreeSelection::ClearRange(int32_t startIndex, int32_t endIndex)
297 : {
298 : return NS_ERROR_NOT_IMPLEMENTED;
299 : }
300 :
301 : /* void clearSelection (); */
302 : NS_IMETHODIMP nsTreeSelection::ClearSelection()
303 : {
304 : return NS_ERROR_NOT_IMPLEMENTED;
305 : }
306 :
307 : /* void invertSelection (); */
308 : NS_IMETHODIMP nsTreeSelection::InvertSelection()
309 : {
310 : return NS_ERROR_NOT_IMPLEMENTED;
311 : }
312 :
313 : /* void selectAll (); */
314 : NS_IMETHODIMP nsTreeSelection::SelectAll()
315 : {
316 : return NS_ERROR_NOT_IMPLEMENTED;
317 : }
318 :
319 : /* long getRangeCount (); */
320 : NS_IMETHODIMP nsTreeSelection::GetRangeCount(int32_t *_retval)
321 : {
322 : return NS_ERROR_NOT_IMPLEMENTED;
323 : }
324 :
325 : /* void getRangeAt (in long i, out long min, out long max); */
326 : NS_IMETHODIMP nsTreeSelection::GetRangeAt(int32_t i, int32_t *min, int32_t *max)
327 : {
328 : return NS_ERROR_NOT_IMPLEMENTED;
329 : }
330 :
331 : /* void invalidateSelection (); */
332 : NS_IMETHODIMP nsTreeSelection::InvalidateSelection()
333 : {
334 : return NS_ERROR_NOT_IMPLEMENTED;
335 : }
336 :
337 : /* void adjustSelection (in long index, in long count); */
338 : NS_IMETHODIMP nsTreeSelection::AdjustSelection(int32_t index, int32_t count)
339 : {
340 : return NS_ERROR_NOT_IMPLEMENTED;
341 : }
342 :
343 : /* attribute boolean selectEventsSuppressed; */
344 : NS_IMETHODIMP nsTreeSelection::GetSelectEventsSuppressed(bool *aSelectEventsSuppressed)
345 : {
346 : return NS_ERROR_NOT_IMPLEMENTED;
347 : }
348 : NS_IMETHODIMP nsTreeSelection::SetSelectEventsSuppressed(bool aSelectEventsSuppressed)
349 : {
350 : return NS_ERROR_NOT_IMPLEMENTED;
351 : }
352 :
353 : /* attribute long currentIndex; */
354 : NS_IMETHODIMP nsTreeSelection::GetCurrentIndex(int32_t *aCurrentIndex)
355 : {
356 : return NS_ERROR_NOT_IMPLEMENTED;
357 : }
358 : NS_IMETHODIMP nsTreeSelection::SetCurrentIndex(int32_t aCurrentIndex)
359 : {
360 : return NS_ERROR_NOT_IMPLEMENTED;
361 : }
362 :
363 : /* attribute nsITreeColumn currentColumn; */
364 : NS_IMETHODIMP nsTreeSelection::GetCurrentColumn(nsITreeColumn * *aCurrentColumn)
365 : {
366 : return NS_ERROR_NOT_IMPLEMENTED;
367 : }
368 : NS_IMETHODIMP nsTreeSelection::SetCurrentColumn(nsITreeColumn *aCurrentColumn)
369 : {
370 : return NS_ERROR_NOT_IMPLEMENTED;
371 : }
372 :
373 : /* readonly attribute long shiftSelectPivot; */
374 : NS_IMETHODIMP nsTreeSelection::GetShiftSelectPivot(int32_t *aShiftSelectPivot)
375 : {
376 : return NS_ERROR_NOT_IMPLEMENTED;
377 : }
378 :
379 : /* End of implementation class template. */
380 : #endif
381 :
382 :
383 : /* starting interface: nsINativeTreeSelection */
384 : #define NS_INATIVETREESELECTION_IID_STR "1bd59678-5cb3-4316-b246-31a91b19aabe"
385 :
386 : #define NS_INATIVETREESELECTION_IID \
387 : {0x1bd59678, 0x5cb3, 0x4316, \
388 : { 0xb2, 0x46, 0x31, 0xa9, 0x1b, 0x19, 0xaa, 0xbe }}
389 :
390 0 : class NS_NO_VTABLE nsINativeTreeSelection : public nsITreeSelection {
391 : public:
392 :
393 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INATIVETREESELECTION_IID)
394 :
395 : /* [noscript] void ensureNative (); */
396 : NS_IMETHOD EnsureNative(void) = 0;
397 :
398 : };
399 :
400 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINativeTreeSelection, NS_INATIVETREESELECTION_IID)
401 :
402 : /* Use this macro when declaring classes that implement this interface. */
403 : #define NS_DECL_NSINATIVETREESELECTION \
404 : NS_IMETHOD EnsureNative(void) override;
405 :
406 : /* Use this macro when declaring the members of this interface when the
407 : class doesn't implement the interface. This is useful for forwarding. */
408 : #define NS_DECL_NON_VIRTUAL_NSINATIVETREESELECTION \
409 : nsresult EnsureNative(void);
410 :
411 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
412 : #define NS_FORWARD_NSINATIVETREESELECTION(_to) \
413 : NS_IMETHOD EnsureNative(void) override { return _to EnsureNative(); }
414 :
415 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
416 : #define NS_FORWARD_SAFE_NSINATIVETREESELECTION(_to) \
417 : NS_IMETHOD EnsureNative(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnsureNative(); }
418 :
419 : #if 0
420 : /* Use the code below as a template for the implementation class for this interface. */
421 :
422 : /* Header file */
423 : class nsNativeTreeSelection : public nsINativeTreeSelection
424 : {
425 : public:
426 : NS_DECL_ISUPPORTS
427 : NS_DECL_NSINATIVETREESELECTION
428 :
429 : nsNativeTreeSelection();
430 :
431 : private:
432 : ~nsNativeTreeSelection();
433 :
434 : protected:
435 : /* additional members */
436 : };
437 :
438 : /* Implementation file */
439 : NS_IMPL_ISUPPORTS(nsNativeTreeSelection, nsINativeTreeSelection)
440 :
441 : nsNativeTreeSelection::nsNativeTreeSelection()
442 : {
443 : /* member initializers and constructor code */
444 : }
445 :
446 : nsNativeTreeSelection::~nsNativeTreeSelection()
447 : {
448 : /* destructor code */
449 : }
450 :
451 : /* [noscript] void ensureNative (); */
452 : NS_IMETHODIMP nsNativeTreeSelection::EnsureNative()
453 : {
454 : return NS_ERROR_NOT_IMPLEMENTED;
455 : }
456 :
457 : /* End of implementation class template. */
458 : #endif
459 :
460 :
461 : #endif /* __gen_nsITreeSelection_h__ */
|