1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/other-licenses/atk-1.0/atk/atkhyperlinkimpl.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,76 @@ 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_HYPERLINK_IMPL_H__ 1.24 +#define __ATK_HYPERLINK_IMPL_H__ 1.25 + 1.26 +#include <atk/atkobject.h> 1.27 +#include <atk/atkhyperlink.h> 1.28 + 1.29 +#ifdef __cplusplus 1.30 +extern "C" { 1.31 +#endif /* __cplusplus */ 1.32 + 1.33 +/* 1.34 + * The AtkHyperlinkImpl interface should be supported by objects 1.35 + * exposed within the hierarchy as children of an AtkHypertext container 1.36 + * which correspond to "links" or embedded content within the text. 1.37 + * HTML anchors are not, for instance, normally exposed this way, 1.38 + * but embedded images and components which appear inline in the 1.39 + * content of a text object are. The AtkHyperlinkIface interface 1.40 + * allows a means of determining which children are hyperlinks in this 1.41 + * sense of the word, and for obtaining their corresponding AtkHyperlink 1.42 + * object, from which the embedding range, URI, etc. can be obtained. 1.43 + * 1.44 + * To some extent this interface exists because, for historical 1.45 + * reasons, AtkHyperlink was defined as an object type, not an interface. 1.46 + * Thus, in order to interact with AtkObjects via AtkHyperlink semantics, 1.47 + * a new interface was required. 1.48 + */ 1.49 + 1.50 +#define ATK_TYPE_HYPERLINK_IMPL (atk_hyperlink_impl_get_type ()) 1.51 +#define ATK_IS_HYPERLINK_IMPL(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_HYPERLINK_IMPL) 1.52 +#define ATK_HYPERLINK_IMPL(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_HYPERLINK_IMPL, AtkHyperlinkImpl) 1.53 +#define ATK_HYPERLINK_IMPL_GET_IFACE(obj) G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_HYPERLINK_IMPL, AtkHyperlinkImplIface) 1.54 + 1.55 +#ifndef _TYPEDEF_ATK_HYPERLINK_IMPL_ 1.56 +#define _TYPEDEF_ATK_HYPERLINK_IMPL__ 1.57 +typedef struct _AtkHyperlinkImpl AtkHyperlinkImpl; 1.58 +#endif 1.59 +typedef struct _AtkHyperlinkImplIface AtkHyperlinkImplIface; 1.60 + 1.61 +struct _AtkHyperlinkImplIface 1.62 +{ 1.63 + GTypeInterface parent; 1.64 + 1.65 + AtkHyperlink* (* get_hyperlink) (AtkHyperlinkImpl *impl); 1.66 + 1.67 + AtkFunction pad1; 1.68 +}; 1.69 + 1.70 +GType atk_hyperlink_impl_get_type (void); 1.71 + 1.72 +AtkHyperlink *atk_hyperlink_impl_get_hyperlink (AtkHyperlinkImpl *obj); 1.73 + 1.74 +#ifdef __cplusplus 1.75 +} 1.76 +#endif /* __cplusplus */ 1.77 + 1.78 + 1.79 +#endif /* __ATK_HYPERLINK_IMPL_H__ */