Added missing Table methods (RT approval from MMeeks, 15 April).
authorbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Mon, 15 Apr 2002 11:25:11 +0000 (11:25 +0000)
committerbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Mon, 15 Apr 2002 11:25:11 +0000 (11:25 +0000)
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@269 e2bd861d-eb25-0410-b326-f6ed22b6b98c

ChangeLog
cspi/spi_table.c
idl/Accessibility_Table.idl

index 82eefcc..ceda004 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,23 @@
-2002-04-113  Marc Mulcahy <marc.mulcahy@sun.com>
+2002-04-14  Bill Haneman <bill.haneman@sun.com>
+
+       * idl/Accessibility_Table.idl: Added missing methods,
+       Accessibility_Table_addRowSelection,
+       Accessibility_Table_addColumnSelection,
+       Accessibility_Table_removeRowSelection,
+       Accessibility_Table_removeColumnSelection.
+
+       * cspi/spi_table.c:
+       Added C wrappers for above IDL:
+       AccessibleTable_addRowSelection,
+       AccessibleTable_addColumnSelection,
+       AccessibleTable_removeRowSelection,
+       AccessibleTable_removeColumnSelection.
+       
+       * libspi/table.c:
+       Added server-side implementation code for IDL above, connecting
+       to pre-existing ATK api.
+       
+2002-04-13  Marc Mulcahy <marc.mulcahy@sun.com>
 
        * idl/Accessibility_State.idl: Made StateSet inherit from BonoboUnknown.
 
index da14c99..a4aa003 100644 (file)
@@ -551,6 +551,114 @@ AccessibleTable_isColumnSelected (AccessibleTable *obj,
 }
 
 /**
+ * AccessibleTable_addRowSelection:
+ * @obj: a pointer to the #AccessibleTable implementor on which to operate.
+ * @row:
+ *
+ * Select the specified row, adding it to the current row selection.
+ * Not all tables support row selection.
+ *
+ * Returns: #TRUE if the specified row was successfully selected, #FALSE if not.
+ **/
+SPIBoolean
+AccessibleTable_addRowSelection (AccessibleTable *obj,
+                                long int         row)
+{
+  SPIBoolean retval;
+
+  cspi_return_val_if_fail (obj != NULL, FALSE);
+
+  retval =
+    Accessibility_Table_addRowSelection (CSPI_OBJREF (obj),
+                                        (CORBA_long) row, cspi_ev ());
+         
+  cspi_return_val_if_ev ("addRowSelection", FALSE);
+
+  return retval;
+}
+
+/**
+ * AccessibleTable_addColumnSelection:
+ * @obj: a pointer to the #AccessibleTable implementor on which to operate.
+ * @column:
+ *
+ * Select the specified column, adding it to the current column selection.
+ * Not all tables support column selection.
+ *
+ * Returns: #TRUE if the specified column was successfully selected, #FALSE if not.
+ **/
+SPIBoolean
+AccessibleTable_addColumnSelection (AccessibleTable *obj,
+                                   long int         column)
+{
+  SPIBoolean retval;
+
+  cspi_return_val_if_fail (obj != NULL, FALSE);
+
+  retval =
+    Accessibility_Table_addColumnSelection (CSPI_OBJREF (obj),
+                                           (CORBA_long) column, cspi_ev ());
+         
+  cspi_return_val_if_ev ("addColumnSelection", FALSE);
+
+  return retval;
+}
+
+/**
+ * AccessibleTable_removeRowSelection:
+ * @obj: a pointer to the #AccessibleTable implementor on which to operate.
+ * @row:
+ *
+ * De-select the specified row, removing it to the current row selection.
+ * Not all tables support row selection.
+ *
+ * Returns: #TRUE if the specified row was successfully de-selected, #FALSE if not.
+ **/
+SPIBoolean
+AccessibleTable_removeRowSelection (AccessibleTable *obj,
+                                   long int         row)
+{
+  SPIBoolean retval;
+
+  cspi_return_val_if_fail (obj != NULL, FALSE);
+
+  retval =
+    Accessibility_Table_removeRowSelection (CSPI_OBJREF (obj),
+                                           (CORBA_long) row, cspi_ev ());
+         
+  cspi_return_val_if_ev ("removeRowSelection", FALSE);
+
+  return retval;
+}
+
+/**
+ * AccessibleTable_removeColumnSelection:
+ * @obj: a pointer to the #AccessibleTable implementor on which to operate.
+ * @column:
+ *
+ * De-select the specified column, removing it to the current column selection.
+ * Not all tables support column selection.
+ *
+ * Returns: #TRUE if the specified column was successfully de-selected, #FALSE if not.
+ **/
+SPIBoolean
+AccessibleTable_removeColumnSelection (AccessibleTable *obj,
+                                      long int         column)
+{
+  SPIBoolean retval;
+
+  cspi_return_val_if_fail (obj != NULL, FALSE);
+
+  retval =
+    Accessibility_Table_removeColumnSelection (CSPI_OBJREF (obj),
+                                              (CORBA_long) column, cspi_ev ());
+         
+  cspi_return_val_if_ev ("removeColumnSelection", FALSE);
+
+  return retval;
+}
+
+/**
  * AccessibleTable_isSelected:
  * @obj: a pointer to the #AccessibleTable implementor on which to operate.
  * @row:
index 04d0143..95103a0 100644 (file)
@@ -49,6 +49,10 @@ typedef sequence<long> LongSeq;
    boolean isRowSelected (in long row);
    boolean isColumnSelected (in long column);
    boolean isSelected (in long row, in long column);
+   boolean addRowSelection (in long row);
+   boolean addColumnSelection (in long column);
+   boolean removeRowSelection (in long row);
+   boolean removeColumnSelection (in long column);
     /**
      * unImplemented:
      *