Committed the rest of the files from the last batch of changes.
[platform/core/uifw/at-spi2-atk.git] / cspi / spi_table.c
1 #include "spi-util.h"
2
3 int
4 AccessibleTable_ref (AccessibleTable *obj)
5 {
6   Accessibility_Table_ref (*obj, &ev);
7   return 0;
8 }
9
10
11
12 int
13 AccessibleTable_unref (AccessibleTable *obj)
14 {
15   Accessibility_Table_unref (*obj, &ev);
16   return 0;
17 }
18
19
20
21 char *
22 AccessibleTable_getCaption (AccessibleTable *obj)
23 {
24   return string_from_corba_string (
25                                    Accessibility_Table_getCaption (*obj, &ev));
26 }
27
28
29
30 Accessible *
31 AccessibleTable_getSummary (AccessibleTable *obj)
32 {
33   return (Accessible *)
34     Accessibility_Table_getSummary (*obj, &ev);
35 }
36
37
38
39 long
40 AccessibleTable_getNRows (AccessibleTable *obj)
41 {
42   return (long)
43     Accessibility_Table_getNRows (*obj, &ev);
44 }
45
46
47
48 long
49 AccessibleTable_getNColumns (AccessibleTable *obj)
50 {
51   return (long)
52     Accessibility_Table_getNColumns (*obj, &ev);
53 }
54
55
56 Accessible *
57 AccessibleTable_refAt (AccessibleTable *obj,
58                                  long row,
59                                  long column)
60 {
61   return (Accessible *)
62     Accessibility_Table_refAt (*obj,
63                                (CORBA_long) row, (CORBA_long) column, &ev);
64 }
65
66
67 long
68 AccessibleTable_getIndexAt (AccessibleTable *obj,
69                             long row,
70                             long column)
71 {
72   return (long)
73     Accessibility_Table_getIndexAt (*obj,
74                                     (CORBA_long) row, (CORBA_long) column, &ev);
75 }
76
77
78
79 long
80 AccessibleTable_getRowAtIndex (AccessibleTable *obj,
81                                long index)
82 {
83   return (long)
84     Accessibility_Table_getRowAtIndex (*obj,
85                                        (CORBA_long) index, &ev);
86 }
87
88
89
90 long
91 AccessibleTable_getColumnAtIndex (AccessibleTable *obj,
92                                   long index)
93 {
94   return (long)
95     Accessibility_Table_getColumnAtIndex (*obj,
96                                           (CORBA_long) index, &ev);
97 }
98
99
100
101 char *
102 AccessibleTable_getRowDescription (AccessibleTable *obj,
103                                    long row)
104 {
105   return string_from_corba_string (
106                                    Accessibility_Table_getRowDescription (*obj,
107                                                                           (CORBA_long) row, &ev));
108 }
109
110
111
112 char *
113 AccessibleTable_getColumnDescription (AccessibleTable *obj,
114                                       long column)
115 {
116   return string_from_corba_string (
117                                    Accessibility_Table_getColumnDescription (*obj,
118                                                                              (CORBA_long) column, &ev));
119 }
120
121
122
123 long
124 AccessibleTable_getRowExtentAt (AccessibleTable *obj,
125                                 long row,
126                                 long column)
127 {
128   return (long)
129     Accessibility_Table_getRowExtentAt (*obj,
130                                         (CORBA_long) row, (CORBA_long) column, &ev);
131 }
132
133
134
135 long
136 AccessibleTable_getColumnExtentAt (AccessibleTable *obj,
137                                    long row,
138                                    long column)
139 {
140   return (long)
141     Accessibility_Table_getColumnExtentAt (*obj,
142                                         (CORBA_long) row, (CORBA_long) column, &ev);
143 }
144
145
146
147 Accessible *
148 AccessibleTable_getRowHeader (AccessibleTable *obj,
149                               long row)
150 {
151   return (Accessible *)
152     Accessibility_Table_getRowHeader (*obj,
153                                       (CORBA_long) row, &ev);
154 }
155
156
157
158 Accessible *
159 AccessibleTable_getColumnHeader (AccessibleTable *obj,
160                                  long column);
161 {
162   return (Accessible *)
163     Accessibility_Table_getColumnHeader (*obj,
164                                       (CORBA_long) column, &ev);
165 }
166
167
168
169 long
170 AccessibleTable_getNSelectedRows (AccessibleTable *obj)
171 {
172   return (long)
173     Accessibility_Table_getNSelectedRows (*obj, &ev);
174 }
175
176
177
178 void
179 AccessibleTable_getSelectedRows (AccessibleTable *obj,
180                                  long **selectedRows)
181 {
182   Accessibility_Table_getSelectedRows (*obj,
183                                       (CORBA_long **) selectedRows, &ev);
184 }
185
186
187
188 long
189 AccessibleTable_getNSelectedColumns (AccessibleTable *obj)
190 {
191   return (long)
192     Accessibility_Table_getNSelectedColumns (*obj, &ev);
193 }
194
195
196 void
197 AccessibleTable_getSelectedColumns (AccessibleTable *obj,
198                                     long **selectedColumns)
199 {
200   Accessibility_Table_getSelectedColumns (*obj,
201                                       (CORBA_long **) selectedColumns, &ev);
202 }
203
204
205 boolean
206 AccessibleTable_isRowSelected (AccessibleTable *obj,
207                                long row)
208 {
209   return (boolean)
210     Accessibility_Table_isRowSelected (*obj,
211                                        (CORBA_long) row, &ev);
212 }
213
214
215
216 boolean
217 AccessibleTable_isColumnSelected (AccessibleTable *obj,
218                                   long column)
219 {
220   return (boolean)
221     Accessibility_Table_isColumnSelected (*obj,
222                                        (CORBA_long) column, &ev);
223 }
224
225
226
227 boolean
228 AccessibleTable_isSelected (AccessibleTable *obj,
229                             long row,
230                             long column)
231 {
232 return (boolean)
233   Accessibility_Table_isSelected (*obj,
234                                   (CORBA_long) row, (CORBA_long) column, &ev);
235 }
236