Added new method to Accessibility::Table; see RFE #326536.
[platform/core/uifw/at-spi2-atk.git] / cspi / spi_table.c
index 00421e8..a42f4bc 100644 (file)
@@ -559,7 +559,7 @@ AccessibleTable_getSelectedColumns (AccessibleTable *obj,
 /**
  * AccessibleTable_isRowSelected:
  * @obj: a pointer to the #AccessibleTable implementor on which to operate.
- * @row:
+ * @row: the zero-indexed row number of the row being queried.
  *
  * Determine whether a table row is selected.  Not all tables support row selection.
  *
@@ -585,7 +585,7 @@ AccessibleTable_isRowSelected (AccessibleTable *obj,
 /**
  * AccessibleTable_isColumnSelected:
  * @obj: a pointer to the #AccessibleTable implementor on which to operate.
- * @column:
+ * @column: the zero-indexed column number of the column being queried.
  *
  * Determine whether specified table column is selected.
  * Not all tables support column selection.
@@ -612,7 +612,7 @@ AccessibleTable_isColumnSelected (AccessibleTable *obj,
 /**
  * AccessibleTable_addRowSelection:
  * @obj: a pointer to the #AccessibleTable implementor on which to operate.
- * @row:
+ * @row: the zero-indexed row number of the row being selected.
  *
  * Select the specified row, adding it to the current row selection.
  * Not all tables support row selection.
@@ -639,7 +639,7 @@ AccessibleTable_addRowSelection (AccessibleTable *obj,
 /**
  * AccessibleTable_addColumnSelection:
  * @obj: a pointer to the #AccessibleTable implementor on which to operate.
- * @column:
+ * @column: the zero-indexed column number of the column being selected.
  *
  * Select the specified column, adding it to the current column selection.
  * Not all tables support column selection.
@@ -666,7 +666,7 @@ AccessibleTable_addColumnSelection (AccessibleTable *obj,
 /**
  * AccessibleTable_removeRowSelection:
  * @obj: a pointer to the #AccessibleTable implementor on which to operate.
- * @row:
+ * @row: the zero-indexed number of the row being deselected.
  *
  * De-select the specified row, removing it to the current row selection.
  * Not all tables support row selection.
@@ -693,7 +693,7 @@ AccessibleTable_removeRowSelection (AccessibleTable *obj,
 /**
  * AccessibleTable_removeColumnSelection:
  * @obj: a pointer to the #AccessibleTable implementor on which to operate.
- * @column:
+ * @column: the zero-indexed column number of the column being de-selected.
  *
  * De-select the specified column, removing it to the current column selection.
  * Not all tables support column selection.
@@ -717,11 +717,52 @@ AccessibleTable_removeColumnSelection (AccessibleTable *obj,
   return retval;
 }
 
+
+SPIBoolean
+AccessibleTable_getRowColumnExtentsAtIndex (AccessibleTable *obj,
+                                           long int index, long int *row, long int *col, 
+                                           long int *row_extents, long int *col_extents, 
+                                           long int *is_selected){
+  SPIBoolean retval;
+  CORBA_long cRow,  cCol, cRow_extents, cCol_extents; 
+  CORBA_boolean cIs_selected;
+
+  cspi_return_val_if_fail (obj != NULL, FALSE);
+
+  retval = Accessibility_Table_getRowColumnExtentsAtIndex (CSPI_OBJREF (obj),
+                                                          index, &cRow, &cCol,
+                                                          &cRow_extents, &cCol_extents,
+                                                          &cIs_selected,
+                                                          cspi_ev ());
+
+  if (!cspi_check_ev ("getRowColumnExtentsAtIndex")){
+    
+    *row = 0;
+    *col = 0;
+    *row_extents = 0;
+    *col_extents = 0;
+    *is_selected = FALSE;
+    retval = FALSE;
+  }
+
+  else {
+    *row = cRow;
+    *col = cCol;
+    *row_extents = cRow_extents;;
+    *col_extents = cCol_extents;
+    *is_selected = cIs_selected;;
+  }
+  
+  return retval;
+
+}
+
+
 /**
  * AccessibleTable_isSelected:
  * @obj: a pointer to the #AccessibleTable implementor on which to operate.
- * @row:
- * @column:
+ * @row: the zero-indexed row of the cell being queried.
+ * @column: the zero-indexed column of the cell being queried.
  *
  * Determine whether the cell at a specific row and column is selected.
  *