On 3/3/12 6:31 AM, Alexander Surkov wrote:
> Good point. However if we introduce new interface for relations than
> makes sense to use it here too.
> Alex.
The relations method ended up being:
HRESULT IAccessible2_2::relationTargetsOfType (
[in] BSTR type,
[in] long maxTargets, // typically 1 or 0; 0 gets them all
[out, size_is(,*nTargets)] IUnknown ***targets,
[out, retval] long *nTargets ) // # targets returned
so do we want the original proposal (where the number of links is known
via IAHypertext_2::nHyperlinks)
HRESULT IAccessibleHypertext2::hyperlinks (
[out, retval] IEnumVariant* hyperlinks );
};
or this
HRESULT IAccessibleHypertext2::hyperlinks (
[in] long maxHyperlinks, // typically 0 to get all of them
[out, size_is(,*nHyperlinks)] IUnknown ***hyperlinks,
[out, retval] long *nHyperlinks ) // # targets returned
}
>
> On Sat, Mar 3, 2012 at 12:32 PM, Pete Brunet <[email protected]> wrote:
>> We already have IAHypertext::nHyperlinks so the AT already knows how many to
>> ask for on the call to Next on the IEnumVARIANT returned from calling
>> IAHyperText2::hyperlinks.
>>
>>
>> On 3/2/12 12:15 AM, Alexander Surkov wrote:
>>
>> And again we need something similar to IEnumVariant but not
>> IEnumVariant to do lazy computations :)
>> Alex.
>>
>>
>> On Fri, Mar 2, 2012 at 5:24 AM, Pete Brunet <[email protected]> wrote:
>>
>> On 2/28/12 8:00 PM, James Teh wrote:
>>
>> On 24/02/2012 12:48 PM, Pete Brunet wrote:
>>
>> https://wiki.mozilla.org/Accessibility/IA2_1.3#Hyperlinks_from_hypertext
>>
>> Again, there probably needs to be an out parameter for the count so that a
>> client wanting all hyperlinks knows what to pass to IEnumVariant::Next.
>>
>> Thanks Jamie, I'll add that.
>>
>>
>> Jamie
--
*Pete Brunet*
a11ysoft - Accessibility Architecture and Development
(512) 467-4706 (work), (512) 689-4155 (cell)
Skype: pete.brunet
IM: ptbrunet (AOL, Google), [email protected] (MSN)
http://www.a11ysoft.com/about/
Ionosphere: WS4G
_______________________________________________
Accessibility-ia2 mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/accessibility-ia2