1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/other-licenses/ia2/Accessible2_2.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,123 @@ 1.4 +/************************************************************************* 1.5 + * 1.6 + * File Name (Accessible2_2.idl) 1.7 + * 1.8 + * IAccessible2 IDL Specification 1.9 + * 1.10 + * Copyright (c) 2007, 2013 Linux Foundation 1.11 + * Copyright (c) 2006 IBM Corporation 1.12 + * Copyright (c) 2000, 2006 Sun Microsystems, Inc. 1.13 + * All rights reserved. 1.14 + * 1.15 + * 1.16 + * Redistribution and use in source and binary forms, with or without 1.17 + * modification, are permitted provided that the following conditions 1.18 + * are met: 1.19 + * 1.20 + * 1. Redistributions of source code must retain the above copyright 1.21 + * notice, this list of conditions and the following disclaimer. 1.22 + * 1.23 + * 2. Redistributions in binary form must reproduce the above 1.24 + * copyright notice, this list of conditions and the following 1.25 + * disclaimer in the documentation and/or other materials 1.26 + * provided with the distribution. 1.27 + * 1.28 + * 3. Neither the name of the Linux Foundation nor the names of its 1.29 + * contributors may be used to endorse or promote products 1.30 + * derived from this software without specific prior written 1.31 + * permission. 1.32 + * 1.33 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 1.34 + * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 1.35 + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 1.36 + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 1.37 + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 1.38 + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1.39 + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 1.40 + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 1.41 + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1.42 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 1.43 + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 1.44 + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 1.45 + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1.46 + * 1.47 + * This BSD License conforms to the Open Source Initiative "Simplified 1.48 + * BSD License" as published at: 1.49 + * http://www.opensource.org/licenses/bsd-license.php 1.50 + * 1.51 + * IAccessible2 is a trademark of the Linux Foundation. The IAccessible2 1.52 + * mark may be used in accordance with the Linux Foundation Trademark 1.53 + * Policy to indicate compliance with the IAccessible2 specification. 1.54 + * 1.55 + ************************************************************************/ 1.56 + 1.57 +import "objidl.idl"; 1.58 +import "oaidl.idl"; 1.59 +import "oleacc.idl"; 1.60 +import "Accessible2.idl"; 1.61 + 1.62 +/** @brief This interface exposes the primary set of information about an 1.63 + IAccessible2 enabled accessible object. 1.64 + 1.65 + This interface must always be provided for objects that support some 1.66 + portion of the collection of the %IAccessible2 interfaces. 1.67 + 1.68 + Please refer to @ref _changingInterfaces "Changing between Accessible Interfaces" 1.69 + for special considerations related to use of the MSAA IAccessible interface and 1.70 + the set of %IAccessible2 interfaces. 1.71 + */ 1.72 +[object, uuid(6C9430E9-299D-4E6F-BD01-A82A1E88D3FF)] 1.73 +interface IAccessible2_2 : IAccessible2 1.74 +{ 1.75 + /** @brief Returns the attribute value of a specified attribute specific to this object. 1.76 + @param [in] name 1.77 + @param [out] attribute 1.78 + @retval S_OK 1.79 + @retval S_FALSE returned if there is nothing to return, [out] value is NULL. 1.80 + @retval E_INVALIDARG if bad [in] passed. 1.81 + @note The output value is a VARIANT. Typically it will be a VT_BSTR, but there 1.82 + are some cases where it will be a VT_I4 or VT_BOOL. Refer to the <a href= 1.83 + "http://www.linuxfoundation.org/collaborate/workgroups/accessibility/iaccessible2/objectattributesIAccessible2"> 1.84 + Object Attributes specification</a> for more information. 1.85 + */ 1.86 + [propget] HRESULT attribute 1.87 + ( 1.88 + [in] BSTR name, 1.89 + [out, retval] VARIANT *attribute 1.90 + ); 1.91 + 1.92 + /** @brief Returns the deepest hypertext accessible in the subtree of this object, and the caret offset within it. 1.93 + @param [out] accessible 1.94 + @param [out] caretOffset 1.95 + @retval S_OK 1.96 + @retval S_FALSE returned if there is no caret in any of the objects in the subtree, [out] accessible is NULL and [out] caretOffset is -1. 1.97 + */ 1.98 + [propget] HRESULT accessibleWithCaret 1.99 + ( 1.100 + [out] IUnknown **accessible, 1.101 + [out, retval] long *caretOffset 1.102 + ); 1.103 + 1.104 + /** @brief Returns relation targets for a specified target type. 1.105 + @param [in] type 1.106 + The requested @ref grpRelations "relation type". 1.107 + @param [in] maxTargets 1.108 + The number of targets requested. 0 indicates that all targets should be returned. 1.109 + @param [out] targets 1.110 + This array is allocated by the server. The client must free it with CoTaskMemFree. 1.111 + @param [out] nTargets 1.112 + The number of targets returned; the size of the returned array. 1.113 + @retval S_OK 1.114 + @retval S_FALSE if there are no targets, [out] values are NULL and 0 respectively. 1.115 + @retval E_INVALIDARG if bad [in] passed. 1.116 + */ 1.117 + [propget] HRESULT relationTargetsOfType 1.118 + ( 1.119 + [in] BSTR type, 1.120 + [in] long maxTargets, 1.121 + [out, size_is(,*nTargets)] IUnknown ***targets, 1.122 + [out, retval] long *nTargets 1.123 + ); 1.124 + 1.125 +} 1.126 +