1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/accessible/public/nsIAccessibleSelectable.idl
3 : */
4 :
5 : #ifndef __gen_nsIAccessibleSelectable_h__
6 : #define __gen_nsIAccessibleSelectable_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIAccessible_h__
14 : #include "nsIAccessible.h"
15 : #endif
16 :
17 : #ifndef __gen_nsIArray_h__
18 : #include "nsIArray.h"
19 : #endif
20 :
21 : /* For IDL files that don't want to include root IDL files. */
22 : #ifndef NS_NO_VTABLE
23 : #define NS_NO_VTABLE
24 : #endif
25 :
26 : /* starting interface: nsIAccessibleSelectable */
27 : #define NS_IACCESSIBLESELECTABLE_IID_STR "34d268d6-1dd2-11b2-9d63-83a5e0ada290"
28 :
29 : #define NS_IACCESSIBLESELECTABLE_IID \
30 : {0x34d268d6, 0x1dd2, 0x11b2, \
31 : { 0x9d, 0x63, 0x83, 0xa5, 0xe0, 0xad, 0xa2, 0x90 }}
32 :
33 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIAccessibleSelectable : public nsISupports {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACCESSIBLESELECTABLE_IID)
37 :
38 : enum {
39 : eSelection_Add = 0U,
40 : eSelection_Remove = 1U,
41 : eSelection_GetState = 2U
42 : };
43 :
44 : /* nsIArray GetSelectedChildren (); */
45 : NS_SCRIPTABLE NS_IMETHOD GetSelectedChildren(nsIArray * *_retval NS_OUTPARAM) = 0;
46 :
47 : /* readonly attribute long selectionCount; */
48 : NS_SCRIPTABLE NS_IMETHOD GetSelectionCount(PRInt32 *aSelectionCount) = 0;
49 :
50 : /* void addChildToSelection (in long index); */
51 : NS_SCRIPTABLE NS_IMETHOD AddChildToSelection(PRInt32 index) = 0;
52 :
53 : /* void removeChildFromSelection (in long index); */
54 : NS_SCRIPTABLE NS_IMETHOD RemoveChildFromSelection(PRInt32 index) = 0;
55 :
56 : /* void clearSelection (); */
57 : NS_SCRIPTABLE NS_IMETHOD ClearSelection(void) = 0;
58 :
59 : /* nsIAccessible refSelection (in long index); */
60 : NS_SCRIPTABLE NS_IMETHOD RefSelection(PRInt32 index, nsIAccessible * *_retval NS_OUTPARAM) = 0;
61 :
62 : /* boolean isChildSelected (in long index); */
63 : NS_SCRIPTABLE NS_IMETHOD IsChildSelected(PRInt32 index, bool *_retval NS_OUTPARAM) = 0;
64 :
65 : /* boolean selectAllSelection (); */
66 : NS_SCRIPTABLE NS_IMETHOD SelectAllSelection(bool *_retval NS_OUTPARAM) = 0;
67 :
68 : };
69 :
70 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAccessibleSelectable, NS_IACCESSIBLESELECTABLE_IID)
71 :
72 : /* Use this macro when declaring classes that implement this interface. */
73 : #define NS_DECL_NSIACCESSIBLESELECTABLE \
74 : NS_SCRIPTABLE NS_IMETHOD GetSelectedChildren(nsIArray * *_retval NS_OUTPARAM); \
75 : NS_SCRIPTABLE NS_IMETHOD GetSelectionCount(PRInt32 *aSelectionCount); \
76 : NS_SCRIPTABLE NS_IMETHOD AddChildToSelection(PRInt32 index); \
77 : NS_SCRIPTABLE NS_IMETHOD RemoveChildFromSelection(PRInt32 index); \
78 : NS_SCRIPTABLE NS_IMETHOD ClearSelection(void); \
79 : NS_SCRIPTABLE NS_IMETHOD RefSelection(PRInt32 index, nsIAccessible * *_retval NS_OUTPARAM); \
80 : NS_SCRIPTABLE NS_IMETHOD IsChildSelected(PRInt32 index, bool *_retval NS_OUTPARAM); \
81 : NS_SCRIPTABLE NS_IMETHOD SelectAllSelection(bool *_retval NS_OUTPARAM);
82 :
83 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
84 : #define NS_FORWARD_NSIACCESSIBLESELECTABLE(_to) \
85 : NS_SCRIPTABLE NS_IMETHOD GetSelectedChildren(nsIArray * *_retval NS_OUTPARAM) { return _to GetSelectedChildren(_retval); } \
86 : NS_SCRIPTABLE NS_IMETHOD GetSelectionCount(PRInt32 *aSelectionCount) { return _to GetSelectionCount(aSelectionCount); } \
87 : NS_SCRIPTABLE NS_IMETHOD AddChildToSelection(PRInt32 index) { return _to AddChildToSelection(index); } \
88 : NS_SCRIPTABLE NS_IMETHOD RemoveChildFromSelection(PRInt32 index) { return _to RemoveChildFromSelection(index); } \
89 : NS_SCRIPTABLE NS_IMETHOD ClearSelection(void) { return _to ClearSelection(); } \
90 : NS_SCRIPTABLE NS_IMETHOD RefSelection(PRInt32 index, nsIAccessible * *_retval NS_OUTPARAM) { return _to RefSelection(index, _retval); } \
91 : NS_SCRIPTABLE NS_IMETHOD IsChildSelected(PRInt32 index, bool *_retval NS_OUTPARAM) { return _to IsChildSelected(index, _retval); } \
92 : NS_SCRIPTABLE NS_IMETHOD SelectAllSelection(bool *_retval NS_OUTPARAM) { return _to SelectAllSelection(_retval); }
93 :
94 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
95 : #define NS_FORWARD_SAFE_NSIACCESSIBLESELECTABLE(_to) \
96 : NS_SCRIPTABLE NS_IMETHOD GetSelectedChildren(nsIArray * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedChildren(_retval); } \
97 : NS_SCRIPTABLE NS_IMETHOD GetSelectionCount(PRInt32 *aSelectionCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionCount(aSelectionCount); } \
98 : NS_SCRIPTABLE NS_IMETHOD AddChildToSelection(PRInt32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddChildToSelection(index); } \
99 : NS_SCRIPTABLE NS_IMETHOD RemoveChildFromSelection(PRInt32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveChildFromSelection(index); } \
100 : NS_SCRIPTABLE NS_IMETHOD ClearSelection(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearSelection(); } \
101 : NS_SCRIPTABLE NS_IMETHOD RefSelection(PRInt32 index, nsIAccessible * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->RefSelection(index, _retval); } \
102 : NS_SCRIPTABLE NS_IMETHOD IsChildSelected(PRInt32 index, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsChildSelected(index, _retval); } \
103 : NS_SCRIPTABLE NS_IMETHOD SelectAllSelection(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectAllSelection(_retval); }
104 :
105 : #if 0
106 : /* Use the code below as a template for the implementation class for this interface. */
107 :
108 : /* Header file */
109 : class nsAccessibleSelectable : public nsIAccessibleSelectable
110 : {
111 : public:
112 : NS_DECL_ISUPPORTS
113 : NS_DECL_NSIACCESSIBLESELECTABLE
114 :
115 : nsAccessibleSelectable();
116 :
117 : private:
118 : ~nsAccessibleSelectable();
119 :
120 : protected:
121 : /* additional members */
122 : };
123 :
124 : /* Implementation file */
125 : NS_IMPL_ISUPPORTS1(nsAccessibleSelectable, nsIAccessibleSelectable)
126 :
127 : nsAccessibleSelectable::nsAccessibleSelectable()
128 : {
129 : /* member initializers and constructor code */
130 : }
131 :
132 : nsAccessibleSelectable::~nsAccessibleSelectable()
133 : {
134 : /* destructor code */
135 : }
136 :
137 : /* nsIArray GetSelectedChildren (); */
138 : NS_IMETHODIMP nsAccessibleSelectable::GetSelectedChildren(nsIArray * *_retval NS_OUTPARAM)
139 : {
140 : return NS_ERROR_NOT_IMPLEMENTED;
141 : }
142 :
143 : /* readonly attribute long selectionCount; */
144 : NS_IMETHODIMP nsAccessibleSelectable::GetSelectionCount(PRInt32 *aSelectionCount)
145 : {
146 : return NS_ERROR_NOT_IMPLEMENTED;
147 : }
148 :
149 : /* void addChildToSelection (in long index); */
150 : NS_IMETHODIMP nsAccessibleSelectable::AddChildToSelection(PRInt32 index)
151 : {
152 : return NS_ERROR_NOT_IMPLEMENTED;
153 : }
154 :
155 : /* void removeChildFromSelection (in long index); */
156 : NS_IMETHODIMP nsAccessibleSelectable::RemoveChildFromSelection(PRInt32 index)
157 : {
158 : return NS_ERROR_NOT_IMPLEMENTED;
159 : }
160 :
161 : /* void clearSelection (); */
162 : NS_IMETHODIMP nsAccessibleSelectable::ClearSelection()
163 : {
164 : return NS_ERROR_NOT_IMPLEMENTED;
165 : }
166 :
167 : /* nsIAccessible refSelection (in long index); */
168 : NS_IMETHODIMP nsAccessibleSelectable::RefSelection(PRInt32 index, nsIAccessible * *_retval NS_OUTPARAM)
169 : {
170 : return NS_ERROR_NOT_IMPLEMENTED;
171 : }
172 :
173 : /* boolean isChildSelected (in long index); */
174 : NS_IMETHODIMP nsAccessibleSelectable::IsChildSelected(PRInt32 index, bool *_retval NS_OUTPARAM)
175 : {
176 : return NS_ERROR_NOT_IMPLEMENTED;
177 : }
178 :
179 : /* boolean selectAllSelection (); */
180 : NS_IMETHODIMP nsAccessibleSelectable::SelectAllSelection(bool *_retval NS_OUTPARAM)
181 : {
182 : return NS_ERROR_NOT_IMPLEMENTED;
183 : }
184 :
185 : /* End of implementation class template. */
186 : #endif
187 :
188 :
189 : #endif /* __gen_nsIAccessibleSelectable_h__ */
|