1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/other-licenses/atk-1.0/atk/atkdocument.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,80 @@ 1.4 +/* ATK - Accessibility Toolkit 1.5 + * Copyright 2001 Sun Microsystems Inc. 1.6 + * 1.7 + * This library is free software; you can redistribute it and/or 1.8 + * modify it under the terms of the GNU Library General Public 1.9 + * License as published by the Free Software Foundation; either 1.10 + * version 2 of the License, or (at your option) any later version. 1.11 + * 1.12 + * This library is distributed in the hope that it will be useful, 1.13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of 1.14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1.15 + * Library General Public License for more details. 1.16 + * 1.17 + * You should have received a copy of the GNU Library General Public 1.18 + * License along with this library; if not, write to the 1.19 + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 1.20 + * Boston, MA 02111-1307, USA. 1.21 + */ 1.22 + 1.23 +#ifndef __ATK_DOCUMENT_H__ 1.24 +#define __ATK_DOCUMENT_H__ 1.25 + 1.26 +#include <atk/atkobject.h> 1.27 +#include <atk/atkutil.h> 1.28 + 1.29 +#ifdef __cplusplus 1.30 +extern "C" { 1.31 +#endif /* __cplusplus */ 1.32 + 1.33 +/* 1.34 + * The AtkDocument interface should be supported by any object that is a container 1.35 + * for 'document content' as opposed to a collection of user interface elements. 1.36 + * 1.37 + */ 1.38 + 1.39 +#define ATK_TYPE_DOCUMENT (atk_document_get_type ()) 1.40 +#define ATK_IS_DOCUMENT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_DOCUMENT) 1.41 +#define ATK_DOCUMENT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_DOCUMENT, AtkDocument) 1.42 +#define ATK_DOCUMENT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_DOCUMENT, AtkDocumentIface)) 1.43 + 1.44 +#ifndef _TYPEDEF_ATK_DOCUMENT_ 1.45 +#define _TYPEDEF_ATK_DOCUMENT_ 1.46 +typedef struct _AtkDocument AtkDocument; 1.47 +#endif 1.48 +typedef struct _AtkDocumentIface AtkDocumentIface; 1.49 + 1.50 +struct _AtkDocumentIface 1.51 +{ 1.52 + GTypeInterface parent; 1.53 + G_CONST_RETURN gchar* ( *get_document_type) (AtkDocument *document); 1.54 + gpointer ( *get_document) (AtkDocument *document); 1.55 + 1.56 + G_CONST_RETURN gchar* ( *get_document_locale) (AtkDocument *document); 1.57 + AtkAttributeSet * ( *get_document_attributes) (AtkDocument *document); 1.58 + G_CONST_RETURN gchar* ( *get_document_attribute_value) (AtkDocument *document, 1.59 + const gchar *attribute_name); 1.60 + gboolean ( *set_document_attribute) (AtkDocument *document, 1.61 + const gchar *attribute_name, 1.62 + const gchar *attribute_value); 1.63 + AtkFunction pad1; 1.64 + AtkFunction pad2; 1.65 + AtkFunction pad3; 1.66 + AtkFunction pad4; 1.67 +}; 1.68 + 1.69 +GType atk_document_get_type (void); 1.70 + 1.71 +G_CONST_RETURN gchar* atk_document_get_document_type (AtkDocument *document); 1.72 +gpointer atk_document_get_document (AtkDocument *document); 1.73 +G_CONST_RETURN gchar* atk_document_get_locale (AtkDocument *document); 1.74 +AtkAttributeSet* atk_document_get_attributes (AtkDocument *document); 1.75 +G_CONST_RETURN gchar* atk_document_get_attribute_value (AtkDocument *document, 1.76 + const gchar *attribute_name); 1.77 +gboolean atk_document_set_attribute_value (AtkDocument *document, 1.78 + const gchar *attribute_name, 1.79 + const gchar *attribute_value); 1.80 +#ifdef __cplusplus 1.81 +} 1.82 +#endif /* __cplusplus */ 1.83 +#endif /* __ATK_DOCUMENT_H__ */