Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/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 : /* 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 nsIAccessible; /* forward declaration */
18 :
19 : class nsIArray; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIAccessibleSelectable */
23 : #define NS_IACCESSIBLESELECTABLE_IID_STR "8efb03d4-1354-4875-94cf-261336057626"
24 :
25 : #define NS_IACCESSIBLESELECTABLE_IID \
26 : {0x8efb03d4, 0x1354, 0x4875, \
27 : { 0x94, 0xcf, 0x26, 0x13, 0x36, 0x05, 0x76, 0x26 }}
28 :
29 0 : class NS_NO_VTABLE nsIAccessibleSelectable : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACCESSIBLESELECTABLE_IID)
33 :
34 : /* readonly attribute nsIArray selectedItems; */
35 : NS_IMETHOD GetSelectedItems(nsIArray * *aSelectedItems) = 0;
36 :
37 : /* readonly attribute unsigned long selectedItemCount; */
38 : NS_IMETHOD GetSelectedItemCount(uint32_t *aSelectedItemCount) = 0;
39 :
40 : /* nsIAccessible getSelectedItemAt (in unsigned long index); */
41 : NS_IMETHOD GetSelectedItemAt(uint32_t index, nsIAccessible * *_retval) = 0;
42 :
43 : /* boolean isItemSelected (in unsigned long index); */
44 : NS_IMETHOD IsItemSelected(uint32_t index, bool *_retval) = 0;
45 :
46 : /* void addItemToSelection (in unsigned long index); */
47 : NS_IMETHOD AddItemToSelection(uint32_t index) = 0;
48 :
49 : /* void removeItemFromSelection (in unsigned long index); */
50 : NS_IMETHOD RemoveItemFromSelection(uint32_t index) = 0;
51 :
52 : /* boolean selectAll (); */
53 : NS_IMETHOD SelectAll(bool *_retval) = 0;
54 :
55 : /* void unselectAll (); */
56 : NS_IMETHOD UnselectAll(void) = 0;
57 :
58 : };
59 :
60 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAccessibleSelectable, NS_IACCESSIBLESELECTABLE_IID)
61 :
62 : /* Use this macro when declaring classes that implement this interface. */
63 : #define NS_DECL_NSIACCESSIBLESELECTABLE \
64 : NS_IMETHOD GetSelectedItems(nsIArray * *aSelectedItems) override; \
65 : NS_IMETHOD GetSelectedItemCount(uint32_t *aSelectedItemCount) override; \
66 : NS_IMETHOD GetSelectedItemAt(uint32_t index, nsIAccessible * *_retval) override; \
67 : NS_IMETHOD IsItemSelected(uint32_t index, bool *_retval) override; \
68 : NS_IMETHOD AddItemToSelection(uint32_t index) override; \
69 : NS_IMETHOD RemoveItemFromSelection(uint32_t index) override; \
70 : NS_IMETHOD SelectAll(bool *_retval) override; \
71 : NS_IMETHOD UnselectAll(void) override;
72 :
73 : /* Use this macro when declaring the members of this interface when the
74 : class doesn't implement the interface. This is useful for forwarding. */
75 : #define NS_DECL_NON_VIRTUAL_NSIACCESSIBLESELECTABLE \
76 : nsresult GetSelectedItems(nsIArray * *aSelectedItems); \
77 : nsresult GetSelectedItemCount(uint32_t *aSelectedItemCount); \
78 : nsresult GetSelectedItemAt(uint32_t index, nsIAccessible * *_retval); \
79 : nsresult IsItemSelected(uint32_t index, bool *_retval); \
80 : nsresult AddItemToSelection(uint32_t index); \
81 : nsresult RemoveItemFromSelection(uint32_t index); \
82 : nsresult SelectAll(bool *_retval); \
83 : nsresult UnselectAll(void);
84 :
85 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
86 : #define NS_FORWARD_NSIACCESSIBLESELECTABLE(_to) \
87 : NS_IMETHOD GetSelectedItems(nsIArray * *aSelectedItems) override { return _to GetSelectedItems(aSelectedItems); } \
88 : NS_IMETHOD GetSelectedItemCount(uint32_t *aSelectedItemCount) override { return _to GetSelectedItemCount(aSelectedItemCount); } \
89 : NS_IMETHOD GetSelectedItemAt(uint32_t index, nsIAccessible * *_retval) override { return _to GetSelectedItemAt(index, _retval); } \
90 : NS_IMETHOD IsItemSelected(uint32_t index, bool *_retval) override { return _to IsItemSelected(index, _retval); } \
91 : NS_IMETHOD AddItemToSelection(uint32_t index) override { return _to AddItemToSelection(index); } \
92 : NS_IMETHOD RemoveItemFromSelection(uint32_t index) override { return _to RemoveItemFromSelection(index); } \
93 : NS_IMETHOD SelectAll(bool *_retval) override { return _to SelectAll(_retval); } \
94 : NS_IMETHOD UnselectAll(void) override { return _to UnselectAll(); }
95 :
96 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
97 : #define NS_FORWARD_SAFE_NSIACCESSIBLESELECTABLE(_to) \
98 : NS_IMETHOD GetSelectedItems(nsIArray * *aSelectedItems) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedItems(aSelectedItems); } \
99 : NS_IMETHOD GetSelectedItemCount(uint32_t *aSelectedItemCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedItemCount(aSelectedItemCount); } \
100 : NS_IMETHOD GetSelectedItemAt(uint32_t index, nsIAccessible * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedItemAt(index, _retval); } \
101 : NS_IMETHOD IsItemSelected(uint32_t index, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsItemSelected(index, _retval); } \
102 : NS_IMETHOD AddItemToSelection(uint32_t index) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddItemToSelection(index); } \
103 : NS_IMETHOD RemoveItemFromSelection(uint32_t index) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveItemFromSelection(index); } \
104 : NS_IMETHOD SelectAll(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectAll(_retval); } \
105 : NS_IMETHOD UnselectAll(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnselectAll(); }
106 :
107 : #if 0
108 : /* Use the code below as a template for the implementation class for this interface. */
109 :
110 : /* Header file */
111 : class nsAccessibleSelectable : public nsIAccessibleSelectable
112 : {
113 : public:
114 : NS_DECL_ISUPPORTS
115 : NS_DECL_NSIACCESSIBLESELECTABLE
116 :
117 : nsAccessibleSelectable();
118 :
119 : private:
120 : ~nsAccessibleSelectable();
121 :
122 : protected:
123 : /* additional members */
124 : };
125 :
126 : /* Implementation file */
127 : NS_IMPL_ISUPPORTS(nsAccessibleSelectable, nsIAccessibleSelectable)
128 :
129 : nsAccessibleSelectable::nsAccessibleSelectable()
130 : {
131 : /* member initializers and constructor code */
132 : }
133 :
134 : nsAccessibleSelectable::~nsAccessibleSelectable()
135 : {
136 : /* destructor code */
137 : }
138 :
139 : /* readonly attribute nsIArray selectedItems; */
140 : NS_IMETHODIMP nsAccessibleSelectable::GetSelectedItems(nsIArray * *aSelectedItems)
141 : {
142 : return NS_ERROR_NOT_IMPLEMENTED;
143 : }
144 :
145 : /* readonly attribute unsigned long selectedItemCount; */
146 : NS_IMETHODIMP nsAccessibleSelectable::GetSelectedItemCount(uint32_t *aSelectedItemCount)
147 : {
148 : return NS_ERROR_NOT_IMPLEMENTED;
149 : }
150 :
151 : /* nsIAccessible getSelectedItemAt (in unsigned long index); */
152 : NS_IMETHODIMP nsAccessibleSelectable::GetSelectedItemAt(uint32_t index, nsIAccessible * *_retval)
153 : {
154 : return NS_ERROR_NOT_IMPLEMENTED;
155 : }
156 :
157 : /* boolean isItemSelected (in unsigned long index); */
158 : NS_IMETHODIMP nsAccessibleSelectable::IsItemSelected(uint32_t index, bool *_retval)
159 : {
160 : return NS_ERROR_NOT_IMPLEMENTED;
161 : }
162 :
163 : /* void addItemToSelection (in unsigned long index); */
164 : NS_IMETHODIMP nsAccessibleSelectable::AddItemToSelection(uint32_t index)
165 : {
166 : return NS_ERROR_NOT_IMPLEMENTED;
167 : }
168 :
169 : /* void removeItemFromSelection (in unsigned long index); */
170 : NS_IMETHODIMP nsAccessibleSelectable::RemoveItemFromSelection(uint32_t index)
171 : {
172 : return NS_ERROR_NOT_IMPLEMENTED;
173 : }
174 :
175 : /* boolean selectAll (); */
176 : NS_IMETHODIMP nsAccessibleSelectable::SelectAll(bool *_retval)
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 :
181 : /* void unselectAll (); */
182 : NS_IMETHODIMP nsAccessibleSelectable::UnselectAll()
183 : {
184 : return NS_ERROR_NOT_IMPLEMENTED;
185 : }
186 :
187 : /* End of implementation class template. */
188 : #endif
189 :
190 :
191 : #endif /* __gen_nsIAccessibleSelectable_h__ */
|