diff options
author | Mike Gorse <mgorse@novell.com> | 2010-11-20 10:59:06 -0500 |
---|---|---|
committer | Mike Gorse <mgorse@novell.com> | 2010-11-20 10:59:06 -0500 |
commit | 585683c4e828aaa1dbb883df9274d14753a58088 (patch) | |
tree | e3920da08c8ef8ead088e59314addf36f7e7394b /atspi/atspi-hyperlink.h | |
parent | 3f65b7902ce9f63a33c76bdc093e02ffa742a50a (diff) | |
download | at-spi2-core-585683c4e828aaa1dbb883df9274d14753a58088.tar.gz |
Add Hypertext and Hyperlink and some refactoring to support them
AtspiAccessible is now derived from a base class called AtspiObject which
defines the object's application and object path, since this is common with
AtspiHyperlink.
Diffstat (limited to 'atspi/atspi-hyperlink.h')
-rw-r--r-- | atspi/atspi-hyperlink.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/atspi/atspi-hyperlink.h b/atspi/atspi-hyperlink.h new file mode 100644 index 00000000..0af3f59d --- /dev/null +++ b/atspi/atspi-hyperlink.h @@ -0,0 +1,73 @@ +/* + * AT-SPI - Assistive Technology Service Provider Interface + * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap) + * + * Copyright 2002 Ximian, Inc. + * 2002 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. + */ + +#ifndef _ATSPI_HYPERLINK_H_ +#define _ATSPI_HYPERLINK_H_ + +#include "glib-object.h" + +#include "atspi-constants.h" + +#include "atspi-text.h" /* for AtspiRange */ +#include "atspi-types.h" + +#define ATSPI_TYPE_HYPERLINK (atspi_hyperlink_get_type ()) +#define ATSPI_HYPERLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATSPI_TYPE_HYPERLINK, AtspiHyperlink)) +#define ATSPI_HYPERLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATSPI_TYPE_HYPERLINK, AtspiHyperlinkClass)) +#define ATSPI_IS_HYPERLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATSPI_TYPE_HYPERLINK)) +#define ATSPI_IS_HYPERLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATSPI_TYPE_HYPERLINK)) +#define ATSPI_HYPERLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATSPI_TYPE_HYPERLINK, AtspiHyperlinkClass)) + +typedef struct _AtspiHyperlink AtspiHyperlink; +struct _AtspiHyperlink +{ + AtspiObject parent; +}; + +typedef struct _AtspiHyperlinkClass AtspiHyperlinkClass; +struct _AtspiHyperlinkClass +{ + AtspiObjectClass parent_class; +}; + +GType atspi_hyperlink_get_type (void); + +AtspiHyperlink * +atspi_hyperlink_new (AtspiApplication *app, const gchar *path); + +gint atspi_hyperlink_get_n_anchors (AtspiHyperlink *obj, GError **error); + +gchar * atspi_hyperlink_get_uri (AtspiHyperlink *obj, int i, GError **error); + +AtspiAccessible* atspi_hyperlink_get_object (AtspiHyperlink *obj, gint i, GError **error); + +AtspiRange * atspi_hyperlink_get_index_range (AtspiHyperlink *obj, GError **error); + +gint atspi_hyperlink_get_start_index (AtspiHyperlink *obj, GError **error); + +gint atspi_hyperlink_get_end_index (AtspiHyperlink *obj, GError **error); + +gboolean atspi_hyperlink_is_valid (AtspiHyperlink *obj, GError **error); + +#endif /* _ATSPI_HYPERLINK_H_ */ |