1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/accessible/public/nsIAccessibleTable.idl
3 : */
4 :
5 : #ifndef __gen_nsIAccessibleTable_h__
6 : #define __gen_nsIAccessibleTable_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: nsIAccessibleTable */
23 : #define NS_IACCESSIBLETABLE_IID_STR "cb0bf7b9-117e-40e2-9e46-189c3d43ce4a"
24 :
25 : #define NS_IACCESSIBLETABLE_IID \
26 : {0xcb0bf7b9, 0x117e, 0x40e2, \
27 : { 0x9e, 0x46, 0x18, 0x9c, 0x3d, 0x43, 0xce, 0x4a }}
28 :
29 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIAccessibleTable : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACCESSIBLETABLE_IID)
33 :
34 : /* readonly attribute nsIAccessible caption; */
35 : NS_SCRIPTABLE NS_IMETHOD GetCaption(nsIAccessible * *aCaption) = 0;
36 :
37 : /* readonly attribute AString summary; */
38 : NS_SCRIPTABLE NS_IMETHOD GetSummary(nsAString & aSummary) = 0;
39 :
40 : /* readonly attribute long columnCount; */
41 : NS_SCRIPTABLE NS_IMETHOD GetColumnCount(PRInt32 *aColumnCount) = 0;
42 :
43 : /* readonly attribute long rowCount; */
44 : NS_SCRIPTABLE NS_IMETHOD GetRowCount(PRInt32 *aRowCount) = 0;
45 :
46 : /* nsIAccessible getCellAt (in long rowIndex, in long columnIndex); */
47 : NS_SCRIPTABLE NS_IMETHOD GetCellAt(PRInt32 rowIndex, PRInt32 columnIndex, nsIAccessible * *_retval NS_OUTPARAM) = 0;
48 :
49 : /* long getCellIndexAt (in long rowIndex, in long columnIndex); */
50 : NS_SCRIPTABLE NS_IMETHOD GetCellIndexAt(PRInt32 rowIndex, PRInt32 columnIndex, PRInt32 *_retval NS_OUTPARAM) = 0;
51 :
52 : /* long getColumnIndexAt (in long cellIndex); */
53 : NS_SCRIPTABLE NS_IMETHOD GetColumnIndexAt(PRInt32 cellIndex, PRInt32 *_retval NS_OUTPARAM) = 0;
54 :
55 : /* long getRowIndexAt (in long cellIndex); */
56 : NS_SCRIPTABLE NS_IMETHOD GetRowIndexAt(PRInt32 cellIndex, PRInt32 *_retval NS_OUTPARAM) = 0;
57 :
58 : /* void getRowAndColumnIndicesAt (in long cellIndex, out long rowIndex, out long columnIndex); */
59 : NS_SCRIPTABLE NS_IMETHOD GetRowAndColumnIndicesAt(PRInt32 cellIndex, PRInt32 *rowIndex NS_OUTPARAM, PRInt32 *columnIndex NS_OUTPARAM) = 0;
60 :
61 : /* long getColumnExtentAt (in long row, in long column); */
62 : NS_SCRIPTABLE NS_IMETHOD GetColumnExtentAt(PRInt32 row, PRInt32 column, PRInt32 *_retval NS_OUTPARAM) = 0;
63 :
64 : /* long getRowExtentAt (in long row, in long column); */
65 : NS_SCRIPTABLE NS_IMETHOD GetRowExtentAt(PRInt32 row, PRInt32 column, PRInt32 *_retval NS_OUTPARAM) = 0;
66 :
67 : /* AString getColumnDescription (in long columnIndex); */
68 : NS_SCRIPTABLE NS_IMETHOD GetColumnDescription(PRInt32 columnIndex, nsAString & _retval NS_OUTPARAM) = 0;
69 :
70 : /* AString getRowDescription (in long rowIndex); */
71 : NS_SCRIPTABLE NS_IMETHOD GetRowDescription(PRInt32 rowIndex, nsAString & _retval NS_OUTPARAM) = 0;
72 :
73 : /* boolean isColumnSelected (in long columnIndex); */
74 : NS_SCRIPTABLE NS_IMETHOD IsColumnSelected(PRInt32 columnIndex, bool *_retval NS_OUTPARAM) = 0;
75 :
76 : /* boolean isRowSelected (in long rowIndex); */
77 : NS_SCRIPTABLE NS_IMETHOD IsRowSelected(PRInt32 rowIndex, bool *_retval NS_OUTPARAM) = 0;
78 :
79 : /* boolean isCellSelected (in long rowIndex, in long columnIndex); */
80 : NS_SCRIPTABLE NS_IMETHOD IsCellSelected(PRInt32 rowIndex, PRInt32 columnIndex, bool *_retval NS_OUTPARAM) = 0;
81 :
82 : /* readonly attribute unsigned long selectedCellCount; */
83 : NS_SCRIPTABLE NS_IMETHOD GetSelectedCellCount(PRUint32 *aSelectedCellCount) = 0;
84 :
85 : /* readonly attribute unsigned long selectedColumnCount; */
86 : NS_SCRIPTABLE NS_IMETHOD GetSelectedColumnCount(PRUint32 *aSelectedColumnCount) = 0;
87 :
88 : /* readonly attribute unsigned long selectedRowCount; */
89 : NS_SCRIPTABLE NS_IMETHOD GetSelectedRowCount(PRUint32 *aSelectedRowCount) = 0;
90 :
91 : /* readonly attribute nsIArray selectedCells; */
92 : NS_SCRIPTABLE NS_IMETHOD GetSelectedCells(nsIArray * *aSelectedCells) = 0;
93 :
94 : /* void getSelectedCellIndices (out unsigned long cellsArraySize, [array, size_is (cellsArraySize), retval] out long cellsArray); */
95 : NS_SCRIPTABLE NS_IMETHOD GetSelectedCellIndices(PRUint32 *cellsArraySize NS_OUTPARAM, PRInt32 **cellsArray NS_OUTPARAM) = 0;
96 :
97 : /* void getSelectedColumnIndices (out unsigned long columnsArraySize, [array, size_is (columnsArraySize), retval] out long columnsArray); */
98 : NS_SCRIPTABLE NS_IMETHOD GetSelectedColumnIndices(PRUint32 *columnsArraySize NS_OUTPARAM, PRInt32 **columnsArray NS_OUTPARAM) = 0;
99 :
100 : /* void getSelectedRowIndices (out unsigned long rowsArraySize, [array, size_is (rowsArraySize), retval] out long rowsArray); */
101 : NS_SCRIPTABLE NS_IMETHOD GetSelectedRowIndices(PRUint32 *rowsArraySize NS_OUTPARAM, PRInt32 **rowsArray NS_OUTPARAM) = 0;
102 :
103 : /* void selectRow (in long rowIndex); */
104 : NS_SCRIPTABLE NS_IMETHOD SelectRow(PRInt32 rowIndex) = 0;
105 :
106 : /* void selectColumn (in long columnIndex); */
107 : NS_SCRIPTABLE NS_IMETHOD SelectColumn(PRInt32 columnIndex) = 0;
108 :
109 : /* void unselectRow (in long rowIndex); */
110 : NS_SCRIPTABLE NS_IMETHOD UnselectRow(PRInt32 rowIndex) = 0;
111 :
112 : /* void unselectColumn (in long columnIndex); */
113 : NS_SCRIPTABLE NS_IMETHOD UnselectColumn(PRInt32 columnIndex) = 0;
114 :
115 : /* boolean isProbablyForLayout (); */
116 : NS_SCRIPTABLE NS_IMETHOD IsProbablyForLayout(bool *_retval NS_OUTPARAM) = 0;
117 :
118 : };
119 :
120 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAccessibleTable, NS_IACCESSIBLETABLE_IID)
121 :
122 : /* Use this macro when declaring classes that implement this interface. */
123 : #define NS_DECL_NSIACCESSIBLETABLE \
124 : NS_SCRIPTABLE NS_IMETHOD GetCaption(nsIAccessible * *aCaption); \
125 : NS_SCRIPTABLE NS_IMETHOD GetSummary(nsAString & aSummary); \
126 : NS_SCRIPTABLE NS_IMETHOD GetColumnCount(PRInt32 *aColumnCount); \
127 : NS_SCRIPTABLE NS_IMETHOD GetRowCount(PRInt32 *aRowCount); \
128 : NS_SCRIPTABLE NS_IMETHOD GetCellAt(PRInt32 rowIndex, PRInt32 columnIndex, nsIAccessible * *_retval NS_OUTPARAM); \
129 : NS_SCRIPTABLE NS_IMETHOD GetCellIndexAt(PRInt32 rowIndex, PRInt32 columnIndex, PRInt32 *_retval NS_OUTPARAM); \
130 : NS_SCRIPTABLE NS_IMETHOD GetColumnIndexAt(PRInt32 cellIndex, PRInt32 *_retval NS_OUTPARAM); \
131 : NS_SCRIPTABLE NS_IMETHOD GetRowIndexAt(PRInt32 cellIndex, PRInt32 *_retval NS_OUTPARAM); \
132 : NS_SCRIPTABLE NS_IMETHOD GetRowAndColumnIndicesAt(PRInt32 cellIndex, PRInt32 *rowIndex NS_OUTPARAM, PRInt32 *columnIndex NS_OUTPARAM); \
133 : NS_SCRIPTABLE NS_IMETHOD GetColumnExtentAt(PRInt32 row, PRInt32 column, PRInt32 *_retval NS_OUTPARAM); \
134 : NS_SCRIPTABLE NS_IMETHOD GetRowExtentAt(PRInt32 row, PRInt32 column, PRInt32 *_retval NS_OUTPARAM); \
135 : NS_SCRIPTABLE NS_IMETHOD GetColumnDescription(PRInt32 columnIndex, nsAString & _retval NS_OUTPARAM); \
136 : NS_SCRIPTABLE NS_IMETHOD GetRowDescription(PRInt32 rowIndex, nsAString & _retval NS_OUTPARAM); \
137 : NS_SCRIPTABLE NS_IMETHOD IsColumnSelected(PRInt32 columnIndex, bool *_retval NS_OUTPARAM); \
138 : NS_SCRIPTABLE NS_IMETHOD IsRowSelected(PRInt32 rowIndex, bool *_retval NS_OUTPARAM); \
139 : NS_SCRIPTABLE NS_IMETHOD IsCellSelected(PRInt32 rowIndex, PRInt32 columnIndex, bool *_retval NS_OUTPARAM); \
140 : NS_SCRIPTABLE NS_IMETHOD GetSelectedCellCount(PRUint32 *aSelectedCellCount); \
141 : NS_SCRIPTABLE NS_IMETHOD GetSelectedColumnCount(PRUint32 *aSelectedColumnCount); \
142 : NS_SCRIPTABLE NS_IMETHOD GetSelectedRowCount(PRUint32 *aSelectedRowCount); \
143 : NS_SCRIPTABLE NS_IMETHOD GetSelectedCells(nsIArray * *aSelectedCells); \
144 : NS_SCRIPTABLE NS_IMETHOD GetSelectedCellIndices(PRUint32 *cellsArraySize NS_OUTPARAM, PRInt32 **cellsArray NS_OUTPARAM); \
145 : NS_SCRIPTABLE NS_IMETHOD GetSelectedColumnIndices(PRUint32 *columnsArraySize NS_OUTPARAM, PRInt32 **columnsArray NS_OUTPARAM); \
146 : NS_SCRIPTABLE NS_IMETHOD GetSelectedRowIndices(PRUint32 *rowsArraySize NS_OUTPARAM, PRInt32 **rowsArray NS_OUTPARAM); \
147 : NS_SCRIPTABLE NS_IMETHOD SelectRow(PRInt32 rowIndex); \
148 : NS_SCRIPTABLE NS_IMETHOD SelectColumn(PRInt32 columnIndex); \
149 : NS_SCRIPTABLE NS_IMETHOD UnselectRow(PRInt32 rowIndex); \
150 : NS_SCRIPTABLE NS_IMETHOD UnselectColumn(PRInt32 columnIndex); \
151 : NS_SCRIPTABLE NS_IMETHOD IsProbablyForLayout(bool *_retval NS_OUTPARAM);
152 :
153 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
154 : #define NS_FORWARD_NSIACCESSIBLETABLE(_to) \
155 : NS_SCRIPTABLE NS_IMETHOD GetCaption(nsIAccessible * *aCaption) { return _to GetCaption(aCaption); } \
156 : NS_SCRIPTABLE NS_IMETHOD GetSummary(nsAString & aSummary) { return _to GetSummary(aSummary); } \
157 : NS_SCRIPTABLE NS_IMETHOD GetColumnCount(PRInt32 *aColumnCount) { return _to GetColumnCount(aColumnCount); } \
158 : NS_SCRIPTABLE NS_IMETHOD GetRowCount(PRInt32 *aRowCount) { return _to GetRowCount(aRowCount); } \
159 : NS_SCRIPTABLE NS_IMETHOD GetCellAt(PRInt32 rowIndex, PRInt32 columnIndex, nsIAccessible * *_retval NS_OUTPARAM) { return _to GetCellAt(rowIndex, columnIndex, _retval); } \
160 : NS_SCRIPTABLE NS_IMETHOD GetCellIndexAt(PRInt32 rowIndex, PRInt32 columnIndex, PRInt32 *_retval NS_OUTPARAM) { return _to GetCellIndexAt(rowIndex, columnIndex, _retval); } \
161 : NS_SCRIPTABLE NS_IMETHOD GetColumnIndexAt(PRInt32 cellIndex, PRInt32 *_retval NS_OUTPARAM) { return _to GetColumnIndexAt(cellIndex, _retval); } \
162 : NS_SCRIPTABLE NS_IMETHOD GetRowIndexAt(PRInt32 cellIndex, PRInt32 *_retval NS_OUTPARAM) { return _to GetRowIndexAt(cellIndex, _retval); } \
163 : NS_SCRIPTABLE NS_IMETHOD GetRowAndColumnIndicesAt(PRInt32 cellIndex, PRInt32 *rowIndex NS_OUTPARAM, PRInt32 *columnIndex NS_OUTPARAM) { return _to GetRowAndColumnIndicesAt(cellIndex, rowIndex, columnIndex); } \
164 : NS_SCRIPTABLE NS_IMETHOD GetColumnExtentAt(PRInt32 row, PRInt32 column, PRInt32 *_retval NS_OUTPARAM) { return _to GetColumnExtentAt(row, column, _retval); } \
165 : NS_SCRIPTABLE NS_IMETHOD GetRowExtentAt(PRInt32 row, PRInt32 column, PRInt32 *_retval NS_OUTPARAM) { return _to GetRowExtentAt(row, column, _retval); } \
166 : NS_SCRIPTABLE NS_IMETHOD GetColumnDescription(PRInt32 columnIndex, nsAString & _retval NS_OUTPARAM) { return _to GetColumnDescription(columnIndex, _retval); } \
167 : NS_SCRIPTABLE NS_IMETHOD GetRowDescription(PRInt32 rowIndex, nsAString & _retval NS_OUTPARAM) { return _to GetRowDescription(rowIndex, _retval); } \
168 : NS_SCRIPTABLE NS_IMETHOD IsColumnSelected(PRInt32 columnIndex, bool *_retval NS_OUTPARAM) { return _to IsColumnSelected(columnIndex, _retval); } \
169 : NS_SCRIPTABLE NS_IMETHOD IsRowSelected(PRInt32 rowIndex, bool *_retval NS_OUTPARAM) { return _to IsRowSelected(rowIndex, _retval); } \
170 : NS_SCRIPTABLE NS_IMETHOD IsCellSelected(PRInt32 rowIndex, PRInt32 columnIndex, bool *_retval NS_OUTPARAM) { return _to IsCellSelected(rowIndex, columnIndex, _retval); } \
171 : NS_SCRIPTABLE NS_IMETHOD GetSelectedCellCount(PRUint32 *aSelectedCellCount) { return _to GetSelectedCellCount(aSelectedCellCount); } \
172 : NS_SCRIPTABLE NS_IMETHOD GetSelectedColumnCount(PRUint32 *aSelectedColumnCount) { return _to GetSelectedColumnCount(aSelectedColumnCount); } \
173 : NS_SCRIPTABLE NS_IMETHOD GetSelectedRowCount(PRUint32 *aSelectedRowCount) { return _to GetSelectedRowCount(aSelectedRowCount); } \
174 : NS_SCRIPTABLE NS_IMETHOD GetSelectedCells(nsIArray * *aSelectedCells) { return _to GetSelectedCells(aSelectedCells); } \
175 : NS_SCRIPTABLE NS_IMETHOD GetSelectedCellIndices(PRUint32 *cellsArraySize NS_OUTPARAM, PRInt32 **cellsArray NS_OUTPARAM) { return _to GetSelectedCellIndices(cellsArraySize, cellsArray); } \
176 : NS_SCRIPTABLE NS_IMETHOD GetSelectedColumnIndices(PRUint32 *columnsArraySize NS_OUTPARAM, PRInt32 **columnsArray NS_OUTPARAM) { return _to GetSelectedColumnIndices(columnsArraySize, columnsArray); } \
177 : NS_SCRIPTABLE NS_IMETHOD GetSelectedRowIndices(PRUint32 *rowsArraySize NS_OUTPARAM, PRInt32 **rowsArray NS_OUTPARAM) { return _to GetSelectedRowIndices(rowsArraySize, rowsArray); } \
178 : NS_SCRIPTABLE NS_IMETHOD SelectRow(PRInt32 rowIndex) { return _to SelectRow(rowIndex); } \
179 : NS_SCRIPTABLE NS_IMETHOD SelectColumn(PRInt32 columnIndex) { return _to SelectColumn(columnIndex); } \
180 : NS_SCRIPTABLE NS_IMETHOD UnselectRow(PRInt32 rowIndex) { return _to UnselectRow(rowIndex); } \
181 : NS_SCRIPTABLE NS_IMETHOD UnselectColumn(PRInt32 columnIndex) { return _to UnselectColumn(columnIndex); } \
182 : NS_SCRIPTABLE NS_IMETHOD IsProbablyForLayout(bool *_retval NS_OUTPARAM) { return _to IsProbablyForLayout(_retval); }
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_NSIACCESSIBLETABLE(_to) \
186 : NS_SCRIPTABLE NS_IMETHOD GetCaption(nsIAccessible * *aCaption) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCaption(aCaption); } \
187 : NS_SCRIPTABLE NS_IMETHOD GetSummary(nsAString & aSummary) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSummary(aSummary); } \
188 : NS_SCRIPTABLE NS_IMETHOD GetColumnCount(PRInt32 *aColumnCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnCount(aColumnCount); } \
189 : NS_SCRIPTABLE NS_IMETHOD GetRowCount(PRInt32 *aRowCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRowCount(aRowCount); } \
190 : NS_SCRIPTABLE NS_IMETHOD GetCellAt(PRInt32 rowIndex, PRInt32 columnIndex, nsIAccessible * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCellAt(rowIndex, columnIndex, _retval); } \
191 : NS_SCRIPTABLE NS_IMETHOD GetCellIndexAt(PRInt32 rowIndex, PRInt32 columnIndex, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCellIndexAt(rowIndex, columnIndex, _retval); } \
192 : NS_SCRIPTABLE NS_IMETHOD GetColumnIndexAt(PRInt32 cellIndex, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnIndexAt(cellIndex, _retval); } \
193 : NS_SCRIPTABLE NS_IMETHOD GetRowIndexAt(PRInt32 cellIndex, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRowIndexAt(cellIndex, _retval); } \
194 : NS_SCRIPTABLE NS_IMETHOD GetRowAndColumnIndicesAt(PRInt32 cellIndex, PRInt32 *rowIndex NS_OUTPARAM, PRInt32 *columnIndex NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRowAndColumnIndicesAt(cellIndex, rowIndex, columnIndex); } \
195 : NS_SCRIPTABLE NS_IMETHOD GetColumnExtentAt(PRInt32 row, PRInt32 column, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnExtentAt(row, column, _retval); } \
196 : NS_SCRIPTABLE NS_IMETHOD GetRowExtentAt(PRInt32 row, PRInt32 column, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRowExtentAt(row, column, _retval); } \
197 : NS_SCRIPTABLE NS_IMETHOD GetColumnDescription(PRInt32 columnIndex, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnDescription(columnIndex, _retval); } \
198 : NS_SCRIPTABLE NS_IMETHOD GetRowDescription(PRInt32 rowIndex, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRowDescription(rowIndex, _retval); } \
199 : NS_SCRIPTABLE NS_IMETHOD IsColumnSelected(PRInt32 columnIndex, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsColumnSelected(columnIndex, _retval); } \
200 : NS_SCRIPTABLE NS_IMETHOD IsRowSelected(PRInt32 rowIndex, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsRowSelected(rowIndex, _retval); } \
201 : NS_SCRIPTABLE NS_IMETHOD IsCellSelected(PRInt32 rowIndex, PRInt32 columnIndex, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCellSelected(rowIndex, columnIndex, _retval); } \
202 : NS_SCRIPTABLE NS_IMETHOD GetSelectedCellCount(PRUint32 *aSelectedCellCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedCellCount(aSelectedCellCount); } \
203 : NS_SCRIPTABLE NS_IMETHOD GetSelectedColumnCount(PRUint32 *aSelectedColumnCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedColumnCount(aSelectedColumnCount); } \
204 : NS_SCRIPTABLE NS_IMETHOD GetSelectedRowCount(PRUint32 *aSelectedRowCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedRowCount(aSelectedRowCount); } \
205 : NS_SCRIPTABLE NS_IMETHOD GetSelectedCells(nsIArray * *aSelectedCells) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedCells(aSelectedCells); } \
206 : NS_SCRIPTABLE NS_IMETHOD GetSelectedCellIndices(PRUint32 *cellsArraySize NS_OUTPARAM, PRInt32 **cellsArray NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedCellIndices(cellsArraySize, cellsArray); } \
207 : NS_SCRIPTABLE NS_IMETHOD GetSelectedColumnIndices(PRUint32 *columnsArraySize NS_OUTPARAM, PRInt32 **columnsArray NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedColumnIndices(columnsArraySize, columnsArray); } \
208 : NS_SCRIPTABLE NS_IMETHOD GetSelectedRowIndices(PRUint32 *rowsArraySize NS_OUTPARAM, PRInt32 **rowsArray NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedRowIndices(rowsArraySize, rowsArray); } \
209 : NS_SCRIPTABLE NS_IMETHOD SelectRow(PRInt32 rowIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectRow(rowIndex); } \
210 : NS_SCRIPTABLE NS_IMETHOD SelectColumn(PRInt32 columnIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectColumn(columnIndex); } \
211 : NS_SCRIPTABLE NS_IMETHOD UnselectRow(PRInt32 rowIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnselectRow(rowIndex); } \
212 : NS_SCRIPTABLE NS_IMETHOD UnselectColumn(PRInt32 columnIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnselectColumn(columnIndex); } \
213 : NS_SCRIPTABLE NS_IMETHOD IsProbablyForLayout(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsProbablyForLayout(_retval); }
214 :
215 : #if 0
216 : /* Use the code below as a template for the implementation class for this interface. */
217 :
218 : /* Header file */
219 : class nsAccessibleTable : public nsIAccessibleTable
220 : {
221 : public:
222 : NS_DECL_ISUPPORTS
223 : NS_DECL_NSIACCESSIBLETABLE
224 :
225 : nsAccessibleTable();
226 :
227 : private:
228 : ~nsAccessibleTable();
229 :
230 : protected:
231 : /* additional members */
232 : };
233 :
234 : /* Implementation file */
235 : NS_IMPL_ISUPPORTS1(nsAccessibleTable, nsIAccessibleTable)
236 :
237 : nsAccessibleTable::nsAccessibleTable()
238 : {
239 : /* member initializers and constructor code */
240 : }
241 :
242 : nsAccessibleTable::~nsAccessibleTable()
243 : {
244 : /* destructor code */
245 : }
246 :
247 : /* readonly attribute nsIAccessible caption; */
248 : NS_IMETHODIMP nsAccessibleTable::GetCaption(nsIAccessible * *aCaption)
249 : {
250 : return NS_ERROR_NOT_IMPLEMENTED;
251 : }
252 :
253 : /* readonly attribute AString summary; */
254 : NS_IMETHODIMP nsAccessibleTable::GetSummary(nsAString & aSummary)
255 : {
256 : return NS_ERROR_NOT_IMPLEMENTED;
257 : }
258 :
259 : /* readonly attribute long columnCount; */
260 : NS_IMETHODIMP nsAccessibleTable::GetColumnCount(PRInt32 *aColumnCount)
261 : {
262 : return NS_ERROR_NOT_IMPLEMENTED;
263 : }
264 :
265 : /* readonly attribute long rowCount; */
266 : NS_IMETHODIMP nsAccessibleTable::GetRowCount(PRInt32 *aRowCount)
267 : {
268 : return NS_ERROR_NOT_IMPLEMENTED;
269 : }
270 :
271 : /* nsIAccessible getCellAt (in long rowIndex, in long columnIndex); */
272 : NS_IMETHODIMP nsAccessibleTable::GetCellAt(PRInt32 rowIndex, PRInt32 columnIndex, nsIAccessible * *_retval NS_OUTPARAM)
273 : {
274 : return NS_ERROR_NOT_IMPLEMENTED;
275 : }
276 :
277 : /* long getCellIndexAt (in long rowIndex, in long columnIndex); */
278 : NS_IMETHODIMP nsAccessibleTable::GetCellIndexAt(PRInt32 rowIndex, PRInt32 columnIndex, PRInt32 *_retval NS_OUTPARAM)
279 : {
280 : return NS_ERROR_NOT_IMPLEMENTED;
281 : }
282 :
283 : /* long getColumnIndexAt (in long cellIndex); */
284 : NS_IMETHODIMP nsAccessibleTable::GetColumnIndexAt(PRInt32 cellIndex, PRInt32 *_retval NS_OUTPARAM)
285 : {
286 : return NS_ERROR_NOT_IMPLEMENTED;
287 : }
288 :
289 : /* long getRowIndexAt (in long cellIndex); */
290 : NS_IMETHODIMP nsAccessibleTable::GetRowIndexAt(PRInt32 cellIndex, PRInt32 *_retval NS_OUTPARAM)
291 : {
292 : return NS_ERROR_NOT_IMPLEMENTED;
293 : }
294 :
295 : /* void getRowAndColumnIndicesAt (in long cellIndex, out long rowIndex, out long columnIndex); */
296 : NS_IMETHODIMP nsAccessibleTable::GetRowAndColumnIndicesAt(PRInt32 cellIndex, PRInt32 *rowIndex NS_OUTPARAM, PRInt32 *columnIndex NS_OUTPARAM)
297 : {
298 : return NS_ERROR_NOT_IMPLEMENTED;
299 : }
300 :
301 : /* long getColumnExtentAt (in long row, in long column); */
302 : NS_IMETHODIMP nsAccessibleTable::GetColumnExtentAt(PRInt32 row, PRInt32 column, PRInt32 *_retval NS_OUTPARAM)
303 : {
304 : return NS_ERROR_NOT_IMPLEMENTED;
305 : }
306 :
307 : /* long getRowExtentAt (in long row, in long column); */
308 : NS_IMETHODIMP nsAccessibleTable::GetRowExtentAt(PRInt32 row, PRInt32 column, PRInt32 *_retval NS_OUTPARAM)
309 : {
310 : return NS_ERROR_NOT_IMPLEMENTED;
311 : }
312 :
313 : /* AString getColumnDescription (in long columnIndex); */
314 : NS_IMETHODIMP nsAccessibleTable::GetColumnDescription(PRInt32 columnIndex, nsAString & _retval NS_OUTPARAM)
315 : {
316 : return NS_ERROR_NOT_IMPLEMENTED;
317 : }
318 :
319 : /* AString getRowDescription (in long rowIndex); */
320 : NS_IMETHODIMP nsAccessibleTable::GetRowDescription(PRInt32 rowIndex, nsAString & _retval NS_OUTPARAM)
321 : {
322 : return NS_ERROR_NOT_IMPLEMENTED;
323 : }
324 :
325 : /* boolean isColumnSelected (in long columnIndex); */
326 : NS_IMETHODIMP nsAccessibleTable::IsColumnSelected(PRInt32 columnIndex, bool *_retval NS_OUTPARAM)
327 : {
328 : return NS_ERROR_NOT_IMPLEMENTED;
329 : }
330 :
331 : /* boolean isRowSelected (in long rowIndex); */
332 : NS_IMETHODIMP nsAccessibleTable::IsRowSelected(PRInt32 rowIndex, bool *_retval NS_OUTPARAM)
333 : {
334 : return NS_ERROR_NOT_IMPLEMENTED;
335 : }
336 :
337 : /* boolean isCellSelected (in long rowIndex, in long columnIndex); */
338 : NS_IMETHODIMP nsAccessibleTable::IsCellSelected(PRInt32 rowIndex, PRInt32 columnIndex, bool *_retval NS_OUTPARAM)
339 : {
340 : return NS_ERROR_NOT_IMPLEMENTED;
341 : }
342 :
343 : /* readonly attribute unsigned long selectedCellCount; */
344 : NS_IMETHODIMP nsAccessibleTable::GetSelectedCellCount(PRUint32 *aSelectedCellCount)
345 : {
346 : return NS_ERROR_NOT_IMPLEMENTED;
347 : }
348 :
349 : /* readonly attribute unsigned long selectedColumnCount; */
350 : NS_IMETHODIMP nsAccessibleTable::GetSelectedColumnCount(PRUint32 *aSelectedColumnCount)
351 : {
352 : return NS_ERROR_NOT_IMPLEMENTED;
353 : }
354 :
355 : /* readonly attribute unsigned long selectedRowCount; */
356 : NS_IMETHODIMP nsAccessibleTable::GetSelectedRowCount(PRUint32 *aSelectedRowCount)
357 : {
358 : return NS_ERROR_NOT_IMPLEMENTED;
359 : }
360 :
361 : /* readonly attribute nsIArray selectedCells; */
362 : NS_IMETHODIMP nsAccessibleTable::GetSelectedCells(nsIArray * *aSelectedCells)
363 : {
364 : return NS_ERROR_NOT_IMPLEMENTED;
365 : }
366 :
367 : /* void getSelectedCellIndices (out unsigned long cellsArraySize, [array, size_is (cellsArraySize), retval] out long cellsArray); */
368 : NS_IMETHODIMP nsAccessibleTable::GetSelectedCellIndices(PRUint32 *cellsArraySize NS_OUTPARAM, PRInt32 **cellsArray NS_OUTPARAM)
369 : {
370 : return NS_ERROR_NOT_IMPLEMENTED;
371 : }
372 :
373 : /* void getSelectedColumnIndices (out unsigned long columnsArraySize, [array, size_is (columnsArraySize), retval] out long columnsArray); */
374 : NS_IMETHODIMP nsAccessibleTable::GetSelectedColumnIndices(PRUint32 *columnsArraySize NS_OUTPARAM, PRInt32 **columnsArray NS_OUTPARAM)
375 : {
376 : return NS_ERROR_NOT_IMPLEMENTED;
377 : }
378 :
379 : /* void getSelectedRowIndices (out unsigned long rowsArraySize, [array, size_is (rowsArraySize), retval] out long rowsArray); */
380 : NS_IMETHODIMP nsAccessibleTable::GetSelectedRowIndices(PRUint32 *rowsArraySize NS_OUTPARAM, PRInt32 **rowsArray NS_OUTPARAM)
381 : {
382 : return NS_ERROR_NOT_IMPLEMENTED;
383 : }
384 :
385 : /* void selectRow (in long rowIndex); */
386 : NS_IMETHODIMP nsAccessibleTable::SelectRow(PRInt32 rowIndex)
387 : {
388 : return NS_ERROR_NOT_IMPLEMENTED;
389 : }
390 :
391 : /* void selectColumn (in long columnIndex); */
392 : NS_IMETHODIMP nsAccessibleTable::SelectColumn(PRInt32 columnIndex)
393 : {
394 : return NS_ERROR_NOT_IMPLEMENTED;
395 : }
396 :
397 : /* void unselectRow (in long rowIndex); */
398 : NS_IMETHODIMP nsAccessibleTable::UnselectRow(PRInt32 rowIndex)
399 : {
400 : return NS_ERROR_NOT_IMPLEMENTED;
401 : }
402 :
403 : /* void unselectColumn (in long columnIndex); */
404 : NS_IMETHODIMP nsAccessibleTable::UnselectColumn(PRInt32 columnIndex)
405 : {
406 : return NS_ERROR_NOT_IMPLEMENTED;
407 : }
408 :
409 : /* boolean isProbablyForLayout (); */
410 : NS_IMETHODIMP nsAccessibleTable::IsProbablyForLayout(bool *_retval NS_OUTPARAM)
411 : {
412 : return NS_ERROR_NOT_IMPLEMENTED;
413 : }
414 :
415 : /* End of implementation class template. */
416 : #endif
417 :
418 :
419 : /* starting interface: nsIAccessibleTableCell */
420 : #define NS_IACCESSIBLETABLECELL_IID_STR "654e296d-fae6-452b-987d-746b20b9514b"
421 :
422 : #define NS_IACCESSIBLETABLECELL_IID \
423 : {0x654e296d, 0xfae6, 0x452b, \
424 : { 0x98, 0x7d, 0x74, 0x6b, 0x20, 0xb9, 0x51, 0x4b }}
425 :
426 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIAccessibleTableCell : public nsISupports {
427 : public:
428 :
429 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACCESSIBLETABLECELL_IID)
430 :
431 : /* readonly attribute nsIAccessibleTable table; */
432 : NS_SCRIPTABLE NS_IMETHOD GetTable(nsIAccessibleTable * *aTable) = 0;
433 :
434 : /* readonly attribute long columnIndex; */
435 : NS_SCRIPTABLE NS_IMETHOD GetColumnIndex(PRInt32 *aColumnIndex) = 0;
436 :
437 : /* readonly attribute long rowIndex; */
438 : NS_SCRIPTABLE NS_IMETHOD GetRowIndex(PRInt32 *aRowIndex) = 0;
439 :
440 : /* readonly attribute long columnExtent; */
441 : NS_SCRIPTABLE NS_IMETHOD GetColumnExtent(PRInt32 *aColumnExtent) = 0;
442 :
443 : /* readonly attribute long rowExtent; */
444 : NS_SCRIPTABLE NS_IMETHOD GetRowExtent(PRInt32 *aRowExtent) = 0;
445 :
446 : /* readonly attribute nsIArray columnHeaderCells; */
447 : NS_SCRIPTABLE NS_IMETHOD GetColumnHeaderCells(nsIArray * *aColumnHeaderCells) = 0;
448 :
449 : /* readonly attribute nsIArray rowHeaderCells; */
450 : NS_SCRIPTABLE NS_IMETHOD GetRowHeaderCells(nsIArray * *aRowHeaderCells) = 0;
451 :
452 : /* boolean isSelected (); */
453 : NS_SCRIPTABLE NS_IMETHOD IsSelected(bool *_retval NS_OUTPARAM) = 0;
454 :
455 : };
456 :
457 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAccessibleTableCell, NS_IACCESSIBLETABLECELL_IID)
458 :
459 : /* Use this macro when declaring classes that implement this interface. */
460 : #define NS_DECL_NSIACCESSIBLETABLECELL \
461 : NS_SCRIPTABLE NS_IMETHOD GetTable(nsIAccessibleTable * *aTable); \
462 : NS_SCRIPTABLE NS_IMETHOD GetColumnIndex(PRInt32 *aColumnIndex); \
463 : NS_SCRIPTABLE NS_IMETHOD GetRowIndex(PRInt32 *aRowIndex); \
464 : NS_SCRIPTABLE NS_IMETHOD GetColumnExtent(PRInt32 *aColumnExtent); \
465 : NS_SCRIPTABLE NS_IMETHOD GetRowExtent(PRInt32 *aRowExtent); \
466 : NS_SCRIPTABLE NS_IMETHOD GetColumnHeaderCells(nsIArray * *aColumnHeaderCells); \
467 : NS_SCRIPTABLE NS_IMETHOD GetRowHeaderCells(nsIArray * *aRowHeaderCells); \
468 : NS_SCRIPTABLE NS_IMETHOD IsSelected(bool *_retval NS_OUTPARAM);
469 :
470 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
471 : #define NS_FORWARD_NSIACCESSIBLETABLECELL(_to) \
472 : NS_SCRIPTABLE NS_IMETHOD GetTable(nsIAccessibleTable * *aTable) { return _to GetTable(aTable); } \
473 : NS_SCRIPTABLE NS_IMETHOD GetColumnIndex(PRInt32 *aColumnIndex) { return _to GetColumnIndex(aColumnIndex); } \
474 : NS_SCRIPTABLE NS_IMETHOD GetRowIndex(PRInt32 *aRowIndex) { return _to GetRowIndex(aRowIndex); } \
475 : NS_SCRIPTABLE NS_IMETHOD GetColumnExtent(PRInt32 *aColumnExtent) { return _to GetColumnExtent(aColumnExtent); } \
476 : NS_SCRIPTABLE NS_IMETHOD GetRowExtent(PRInt32 *aRowExtent) { return _to GetRowExtent(aRowExtent); } \
477 : NS_SCRIPTABLE NS_IMETHOD GetColumnHeaderCells(nsIArray * *aColumnHeaderCells) { return _to GetColumnHeaderCells(aColumnHeaderCells); } \
478 : NS_SCRIPTABLE NS_IMETHOD GetRowHeaderCells(nsIArray * *aRowHeaderCells) { return _to GetRowHeaderCells(aRowHeaderCells); } \
479 : NS_SCRIPTABLE NS_IMETHOD IsSelected(bool *_retval NS_OUTPARAM) { return _to IsSelected(_retval); }
480 :
481 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
482 : #define NS_FORWARD_SAFE_NSIACCESSIBLETABLECELL(_to) \
483 : NS_SCRIPTABLE NS_IMETHOD GetTable(nsIAccessibleTable * *aTable) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTable(aTable); } \
484 : NS_SCRIPTABLE NS_IMETHOD GetColumnIndex(PRInt32 *aColumnIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnIndex(aColumnIndex); } \
485 : NS_SCRIPTABLE NS_IMETHOD GetRowIndex(PRInt32 *aRowIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRowIndex(aRowIndex); } \
486 : NS_SCRIPTABLE NS_IMETHOD GetColumnExtent(PRInt32 *aColumnExtent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnExtent(aColumnExtent); } \
487 : NS_SCRIPTABLE NS_IMETHOD GetRowExtent(PRInt32 *aRowExtent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRowExtent(aRowExtent); } \
488 : NS_SCRIPTABLE NS_IMETHOD GetColumnHeaderCells(nsIArray * *aColumnHeaderCells) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnHeaderCells(aColumnHeaderCells); } \
489 : NS_SCRIPTABLE NS_IMETHOD GetRowHeaderCells(nsIArray * *aRowHeaderCells) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRowHeaderCells(aRowHeaderCells); } \
490 : NS_SCRIPTABLE NS_IMETHOD IsSelected(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSelected(_retval); }
491 :
492 : #if 0
493 : /* Use the code below as a template for the implementation class for this interface. */
494 :
495 : /* Header file */
496 : class nsAccessibleTableCell : public nsIAccessibleTableCell
497 : {
498 : public:
499 : NS_DECL_ISUPPORTS
500 : NS_DECL_NSIACCESSIBLETABLECELL
501 :
502 : nsAccessibleTableCell();
503 :
504 : private:
505 : ~nsAccessibleTableCell();
506 :
507 : protected:
508 : /* additional members */
509 : };
510 :
511 : /* Implementation file */
512 : NS_IMPL_ISUPPORTS1(nsAccessibleTableCell, nsIAccessibleTableCell)
513 :
514 : nsAccessibleTableCell::nsAccessibleTableCell()
515 : {
516 : /* member initializers and constructor code */
517 : }
518 :
519 : nsAccessibleTableCell::~nsAccessibleTableCell()
520 : {
521 : /* destructor code */
522 : }
523 :
524 : /* readonly attribute nsIAccessibleTable table; */
525 : NS_IMETHODIMP nsAccessibleTableCell::GetTable(nsIAccessibleTable * *aTable)
526 : {
527 : return NS_ERROR_NOT_IMPLEMENTED;
528 : }
529 :
530 : /* readonly attribute long columnIndex; */
531 : NS_IMETHODIMP nsAccessibleTableCell::GetColumnIndex(PRInt32 *aColumnIndex)
532 : {
533 : return NS_ERROR_NOT_IMPLEMENTED;
534 : }
535 :
536 : /* readonly attribute long rowIndex; */
537 : NS_IMETHODIMP nsAccessibleTableCell::GetRowIndex(PRInt32 *aRowIndex)
538 : {
539 : return NS_ERROR_NOT_IMPLEMENTED;
540 : }
541 :
542 : /* readonly attribute long columnExtent; */
543 : NS_IMETHODIMP nsAccessibleTableCell::GetColumnExtent(PRInt32 *aColumnExtent)
544 : {
545 : return NS_ERROR_NOT_IMPLEMENTED;
546 : }
547 :
548 : /* readonly attribute long rowExtent; */
549 : NS_IMETHODIMP nsAccessibleTableCell::GetRowExtent(PRInt32 *aRowExtent)
550 : {
551 : return NS_ERROR_NOT_IMPLEMENTED;
552 : }
553 :
554 : /* readonly attribute nsIArray columnHeaderCells; */
555 : NS_IMETHODIMP nsAccessibleTableCell::GetColumnHeaderCells(nsIArray * *aColumnHeaderCells)
556 : {
557 : return NS_ERROR_NOT_IMPLEMENTED;
558 : }
559 :
560 : /* readonly attribute nsIArray rowHeaderCells; */
561 : NS_IMETHODIMP nsAccessibleTableCell::GetRowHeaderCells(nsIArray * *aRowHeaderCells)
562 : {
563 : return NS_ERROR_NOT_IMPLEMENTED;
564 : }
565 :
566 : /* boolean isSelected (); */
567 : NS_IMETHODIMP nsAccessibleTableCell::IsSelected(bool *_retval NS_OUTPARAM)
568 : {
569 : return NS_ERROR_NOT_IMPLEMENTED;
570 : }
571 :
572 : /* End of implementation class template. */
573 : #endif
574 :
575 :
576 : #endif /* __gen_nsIAccessibleTable_h__ */
|