Uprevved to 1.7.3. Added Accessibility_Selector.idl to repository.
authorbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Fri, 27 Jan 2006 16:50:46 +0000 (16:50 +0000)
committerbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Fri, 27 Jan 2006 16:50:46 +0000 (16:50 +0000)
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@789 e2bd861d-eb25-0410-b326-f6ed22b6b98c

21 files changed:
ChangeLog
NEWS
configure.in
docs/reference/cspi/tmpl/spi_accessible.sgml
docs/reference/cspi/tmpl/spi_action.sgml
docs/reference/cspi/tmpl/spi_application.sgml
docs/reference/cspi/tmpl/spi_component.sgml
docs/reference/cspi/tmpl/spi_editabletext.sgml
docs/reference/cspi/tmpl/spi_event.sgml
docs/reference/cspi/tmpl/spi_hyperlink.sgml
docs/reference/cspi/tmpl/spi_hypertext.sgml
docs/reference/cspi/tmpl/spi_image.sgml
docs/reference/cspi/tmpl/spi_main.sgml
docs/reference/cspi/tmpl/spi_registry.sgml
docs/reference/cspi/tmpl/spi_relation.sgml
docs/reference/cspi/tmpl/spi_selection.sgml
docs/reference/cspi/tmpl/spi_stateset.sgml
docs/reference/cspi/tmpl/spi_table.sgml
docs/reference/cspi/tmpl/spi_text.sgml
docs/reference/cspi/tmpl/spi_value.sgml
idl/Accessibility_Selector.idl [new file with mode: 0644]

index bb2e39f..a701758 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-01-27  Bill Haneman <billh@gnome.org>
+
+       * idl/Accessibility_Selector.idl: Added to the cvs repository.
+
+       * configure.in: Revved to 1.7.3, re-dist.
+       
 2006-01-17  Bill Haneman <billh@gnome.org>
 
        * configure.in: Revved to 1.7.2, re-dist to include docs.
diff --git a/NEWS b/NEWS
index 01bc6e6..29290f2 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,7 @@
-What's new in at-spi-1.7.0:
+What's new in at-spi-1.7.0 through 1.7.3:
+
+* Added idl/Accessibility_Selector.idl to the repository (missing in 1.7.0
+        through 1.7.2, added in 1.7.3)
 
 * DOCS:
   
index 41eba28..9e61086 100644 (file)
@@ -2,7 +2,7 @@ AC_INIT(idl/Accessibility.idl)
 
 AT_SPI_MAJOR_VERSION=1
 AT_SPI_MINOR_VERSION=7
-AT_SPI_MICRO_VERSION=2
+AT_SPI_MICRO_VERSION=3
 AT_SPI_INTERFACE_AGE=0
 AT_SPI_BINARY_AGE=0
 AT_SPI_VERSION="$AT_SPI_MAJOR_VERSION.$AT_SPI_MINOR_VERSION.$AT_SPI_MICRO_VERSION"
index e3b3139..fffb512 100644 (file)
@@ -14,6 +14,9 @@ Accessible Objects
 
 </para>
 
+<!-- ##### SECTION Stability_Level ##### -->
+
+
 <!-- ##### STRUCT Accessible ##### -->
 <para>
 An Accessible object is an opaque object used to refer to an accessible
index 4674885..60c3d99 100644 (file)
@@ -14,6 +14,9 @@ AccessibleAction Interface
 
 </para>
 
+<!-- ##### SECTION Stability_Level ##### -->
+
+
 <!-- ##### FUNCTION AccessibleAction_ref ##### -->
 <para>
 
index dafab29..591c734 100644 (file)
@@ -14,6 +14,9 @@ AccessibleApplication API
 
 </para>
 
+<!-- ##### SECTION Stability_Level ##### -->
+
+
 <!-- ##### FUNCTION AccessibleApplication_ref ##### -->
 <para>
 
index 0e0add2..201a293 100644 (file)
@@ -14,6 +14,9 @@ AccessibleComponent Interface
 
 </para>
 
+<!-- ##### SECTION Stability_Level ##### -->
+
+
 <!-- ##### ENUM AccessibleCoordType ##### -->
 <para>
 
index 730d515..ee02e30 100644 (file)
@@ -14,6 +14,9 @@ AccessibleEditableText Interface
 
 </para>
 
+<!-- ##### SECTION Stability_Level ##### -->
+
+
 <!-- ##### FUNCTION AccessibleEditableText_ref ##### -->
 <para>
 
index 6d2b879..1784c1d 100644 (file)
@@ -14,11 +14,18 @@ Event Listener Support
 
 </para>
 
-<!-- ##### TYPEDEF AccessibleEvent ##### -->
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### STRUCT AccessibleEvent ##### -->
 <para>
 AccessibleEvent is a struct used to encapsulate event information.
 </para>
 
+@type: 
+@source: 
+@detail1: 
+@detail2: 
 
 <!-- ##### USER_FUNCTION AccessibleEventListenerCB ##### -->
 <para>
index 8d03b55..5ea4c1d 100644 (file)
@@ -14,6 +14,9 @@ AccessibleHyperlink Interface
 
 </para>
 
+<!-- ##### SECTION Stability_Level ##### -->
+
+
 <!-- ##### FUNCTION AccessibleHyperlink_ref ##### -->
 <para>
 
index 5a7f2c0..b2a48b4 100644 (file)
@@ -14,6 +14,9 @@ AccessibleHypertext Interface
 
 </para>
 
+<!-- ##### SECTION Stability_Level ##### -->
+
+
 <!-- ##### FUNCTION AccessibleHypertext_ref ##### -->
 <para>
 
index 32f036e..6beaf98 100644 (file)
@@ -14,6 +14,9 @@ AccessibleImage Interface
 
 </para>
 
+<!-- ##### SECTION Stability_Level ##### -->
+
+
 <!-- ##### FUNCTION AccessibleImage_ref ##### -->
 <para>
 
index f3b7253..f2c3d4e 100644 (file)
@@ -14,6 +14,9 @@ SPI main loop and initialization
 
 </para>
 
+<!-- ##### SECTION Stability_Level ##### -->
+
+
 <!-- ##### FUNCTION SPI_init ##### -->
 <para>
 
index 5f2ba5b..89eb94e 100644 (file)
@@ -14,6 +14,9 @@ Registry queries
 
 </para>
 
+<!-- ##### SECTION Stability_Level ##### -->
+
+
 <!-- ##### ENUM AccessibleKeySynthType ##### -->
 <para>
 
@@ -253,11 +256,16 @@ This is a synonym for AccessibleDeviceEvent.
 @Returns: 
 
 
-<!-- ##### TYPEDEF AccessibleDeviceEvent ##### -->
+<!-- ##### STRUCT AccessibleDeviceEvent ##### -->
 <para>
 AccessibleDeviceEvent is a struct which encapsulates a device event.
 </para>
 
+@keyID: 
+@keystring: 
+@timestamp: 
+@type: 
+@is_text: 
 
 <!-- ##### TYPEDEF AccessibleDeviceEventMask ##### -->
 <para>
index 4410113..1a0769a 100644 (file)
@@ -14,6 +14,9 @@ AccessibleRelations and RelationSets
 
 </para>
 
+<!-- ##### SECTION Stability_Level ##### -->
+
+
 <!-- ##### ENUM AccessibleRelationType ##### -->
 <para>
 
index 8ce97c8..f173ced 100644 (file)
@@ -14,6 +14,9 @@ AccessibleSelection Interface
 
 </para>
 
+<!-- ##### SECTION Stability_Level ##### -->
+
+
 <!-- ##### FUNCTION AccessibleSelection_ref ##### -->
 <para>
 
index edd91b5..e9618d5 100644 (file)
@@ -13,6 +13,9 @@ State and StateSets
 
 </para>
 
+<!-- ##### SECTION Stability_Level ##### -->
+
+
 <!-- ##### ENUM AccessibleState ##### -->
 <para>
 
index 331c16a..20df339 100644 (file)
@@ -14,6 +14,9 @@ AccessibleTable Interface
 
 </para>
 
+<!-- ##### SECTION Stability_Level ##### -->
+
+
 <!-- ##### FUNCTION AccessibleTable_ref ##### -->
 <para>
 
index a1dc06f..fbafe49 100644 (file)
@@ -14,6 +14,9 @@ AccessibleText Interface
 
 </para>
 
+<!-- ##### SECTION Stability_Level ##### -->
+
+
 <!-- ##### ENUM AccessibleTextBoundaryType ##### -->
 <para>
 
index ad6401d..577b66c 100644 (file)
@@ -14,6 +14,9 @@ AccessibleValue Interface
 
 </para>
 
+<!-- ##### SECTION Stability_Level ##### -->
+
+
 <!-- ##### FUNCTION AccessibleValue_ref ##### -->
 <para>
 
diff --git a/idl/Accessibility_Selector.idl b/idl/Accessibility_Selector.idl
new file mode 100644 (file)
index 0000000..66c02d8
--- /dev/null
@@ -0,0 +1,160 @@
+/* 
+ * AT-SPI - Assistive Technology Service Provider Interface 
+ * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
+ *
+ * Copyright 2001 Sun Microsystems Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#include <Bonobo_Unknown.idl>
+
+#ifndef _ACCESSIBILITY_SELECTOR_IDL_
+#define _ACCESSIBILITY_SELECTOR_IDL_
+
+module Accessibility {
+
+    /** A structure which encapsulates both a string representation of a command and a unique command ID **/
+    struct Command {
+         string name;
+         long   id;
+     };
+
+    /** A list of Command objects **/
+    typedef sequence<Command> CommandList;
+
+    /** 
+    * An interface which should be implemented by assistive technologies or other
+    * clients of the ::Selector interface, over which notifications to the list of
+    * available commands is made.  The notifyCommands() method of the client is then called by 
+    * the ::Selector instance.
+    * @since AT-SPI 1.7.0
+    **/
+    interface CommandListener {
+       /**
+        * Notify the CommandListener instance of changes to the currently
+        * available commands, by sending the current ::CommandList.
+        *
+        * @param commands The newly-available list of ::Command objects which
+        * may be invoked by the listener.
+        **/
+       void notifyCommands (in CommandList commands);
+    };
+
+    /**
+     * This interface is intended for use by assistive technologies
+     * and related user-agents.  Via this interface, an assistive technology or
+     * user agent may expose a series of choices or selections in textual form,
+     * which can be activated on demand by a client of the Selector interface.
+     *
+     * Examples of the use of this interface include voice-command and remote-control
+     * applications, in which the user interaction is wholly or partly delegated by the 
+     * implementor to an external agent.  
+     * @since AT-SPI 1.7.0
+     **/
+  interface Selector : Bonobo::Unknown {
+
+      /** 
+       * A code returned by a call to ::activateCommand, indicating 
+       * the result of the activation request.
+       **/
+      enum CommandResult {
+         COMMAND_RESULT_INVALID, /**< The command was invalid or ill-formed; usually indicates
+                                  * an error condition. */
+         COMMAND_RESULT_SUCCESS, /**< The command was successfully activated. */
+         COMMAND_RESULT_FAILED, /**< The command was valid, but could not be activated.
+                                 * This may be due to problems with permissions or error conditions.
+                                 */
+         COMMAND_RESULT_OBSOLETE, /**< The command is no longer valid in the current program context. 
+                                   * This may mean that the application has changed state in such a
+                                   * way that the specified command it no longer applicable, or
+                                   * because changes to the application state have rendered it
+                                   * ambiguous.  Commands should be re-fetched and a new selection
+                                   * made.
+                                   */
+         COMMAND_RESULT_LAST_DEFINED /**< Defines size of enumeration; 
+                                        do not use this value as a parameter.*/
+      };
+
+      /** This attribute is TRUE if this Selector allows its ::CommandList to be specified by the client **/
+      readonly attribute boolean supportsReplace;
+
+      /** 
+       * Query the ::Selector for the current ::CommandList.
+       *
+       * @returns the currently available ::CommandList 
+       **/
+      CommandList getCommands ();
+
+      /**
+       * @returns TRUE if the replacement request was successful, 
+       * FALSE if the request could not be honored.
+       **/
+      boolean replaceCommands (in CommandList commands);
+
+      /** 
+       * Ask the ::Selector to re-calculate its ::CommandList.
+       * @note in most cases the ::Selector will continuously
+       * update its ::CommandList without recourse to this call.
+       * This call is equivalent to ::getCommands, except that
+       * after ::refreshCommands the new ::CommandList will be returned
+       * via any registered ::CommandListener instances rather than
+       * synchronously via this call.
+       *
+       * @returns TRUE if the ::CommandList changed.
+       **/
+      boolean refreshCommands ();
+
+      /** 
+       * Request that the ::Selector invoke the specified ::Command.
+       * @param command the ::Command to activate/invoke.
+       * @returns a ::CommandResult indicating whether the 
+       * request was honored, and the reason for failure if the
+       * ::Command could not be activated or invoked.
+       **/
+      CommandResult activateCommand (in Command command);
+
+      /** 
+       * Register a :CommandListener instance for notification of 
+       * changes to the command set.
+       * @param listener the ::CommandListener to be notified of changes.
+       **/
+      void registerChangeListener (in CommandListener listener);
+
+      /** 
+       * Tell the ::Selector instance to cease notifying the
+       * specified ::CommandListener of changes to the command list.
+       * @param listener the ::CommandListener to remove from the
+       * notification list.
+       **/
+      void deregisterChangeListener (in CommandListener listener);
+
+       /**
+        *\cond
+        * unImplemented:
+        *
+        * placeholders for future expansion.
+        */
+       void unImplemented ();
+       void unImplemented2 ();
+       void unImplemented3 ();
+       void unImplemented4 ();
+        /**\endcond */
+    };
+
+};
+
+#endif