diff options
Diffstat (limited to 'cspi/spi_document.c')
-rw-r--r-- | cspi/spi_document.c | 141 |
1 files changed, 0 insertions, 141 deletions
diff --git a/cspi/spi_document.c b/cspi/spi_document.c deleted file mode 100644 index 025dcb52..00000000 --- a/cspi/spi_document.c +++ /dev/null @@ -1,141 +0,0 @@ -/* - * AT-SPI - Assistive Technology Service Provider Interface - * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap) - * - * Copyright 2001, 2002 Sun Microsystems Inc., - * Copyright 2001, 2002 Ximian, 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 <cspi/spi.h> -#include <cspi/spi-private.h> - -/** - * AccessibleDocument_ref: - * @obj: a pointer to the #AccessibleDocument object on which to operate. - * - * Increment the reference count for an #AccessibleDocument object. - **/ -void -AccessibleDocument_ref (AccessibleDocument *obj) -{ - cspi_object_ref (obj); -} - -/** - * AccessibleDocument_unref: - * @obj: a pointer to the #Accessible object on which to operate. - * - * Decrement the reference count for an #AccessibleDocument object. - **/ - -void -AccessibleDocument_unref (AccessibleDocument *obj) -{ - cspi_object_unref (obj); -} - - -/** - * AccessibleDocument_getLocale: - * @obj: a pointer to the #Accessible object on which to operate. - * - * Gets the locale associated with the document's content. - * e.g. the locale for LOCALE_TYPE_MESSAGES. - * - * Returns: a string compliant with the POSIX standard for locale description. - **/ -char * -AccessibleDocument_getLocale (AccessibleDocument *obj) -{ - char *retval = "C"; - - cspi_return_val_if_fail (obj != NULL, "C"); - - retval = Accessibility_Document_getLocale (CSPI_OBJREF (obj), - cspi_ev ()); - - cspi_return_val_if_ev ("getLocale", NULL); - - return retval; - -} - -/** - * AccessibleDocument_getAttributeValue: - * @obj: a pointer to the #Accessible object on which to operate. - * @attribute: a string indicating the name of a specific attribute - * - * Gets the value of a single attribute, if specified for the document as a whole. - * - * (name-value pair) being queried. - * - * Returns a string corresponding to the value of the specified attribute, or - * an empty string if the attribute is unspecified for the object. - **/ -char * -AccessibleDocument_getAttributeValue (AccessibleDocument *obj, - char *attribute) -{ - - char *retval; - - cspi_return_val_if_fail (obj != NULL, NULL); - - retval = Accessibility_Document_getAttributeValue (CSPI_OBJREF (obj), - attribute, - cspi_ev ()); - - cspi_return_val_if_ev ("getAttributeValue", NULL); - - return retval; - -} - - -/** - * AccessibleDocument_getAttributes: - * @obj: a pointer to the #Accessible object on which to operate. - * - * Gets all attributes specified for a document as a whole. - * - * For attributes which change within - * the document content, see Accessibility::Text::getAttributes instead. - * - * Returns an ::AttributeSet containing the attributes of the document, - * as name-value pairs. - * - * Since AT-SPI 1.8.0 - **/ -AccessibleAttributeSet * -AccessibleDocument_getAttributes (AccessibleDocument *obj){ - - AccessibleAttributeSet *retval; - Accessibility_AttributeSet *corba_seq; - - cspi_return_val_if_fail (obj != NULL, NULL); - - corba_seq = Accessibility_Document_getAttributes (CSPI_OBJREF (obj), - cspi_ev ()); - cspi_return_val_if_ev ("getAttributes", NULL); - - retval = _cspi_attribute_set_from_sequence (corba_seq); - CORBA_free (corba_seq); - - return retval; - -} |