Hi. It seems you still can do that if we introduce hyperlinkIndex method that returns hyperlink object (compare to current version which returns a hyperlink index instead). Otherwise Pete's idea seems reasonable.
Thank you. Alex. On Sun, Sep 9, 2012 at 2:41 PM, James Teh <[email protected]> wrote: > Hi. > I think there is still a need to retrieve arbitrary hyperlinks; e.g. when > traversing from an arbitrary point in the text, such as the caret location. > > Jamie > > > On 9/09/2012 2:10 AM, Pete Brunet wrote: >> >> I've added IAHypertext::hyperlinks >> >> /** @brief Returns the links for this object. >> >> The returned IAccessibleHyperlink objects encapsulate the hyperlink >> and >> provides several kinds of information describing it. >> >> @param [out] hyperlinks >> This array is allocated by the server. Free it with CoTaskMemFree. >> @param [out] nHyperlinks >> The number of links returned; the size of the returned array. >> @retval S_OK >> @retval S_FALSE if there are no links, [out] values are NULL and 0 >> respectively >> */ >> [propget] HRESULT hyperlinks >> ( >> [out, size_is(,*nHyperlinks)] IAccessibleHyperlink ***hyperlinks, >> [out, retval] long *nHyperlinks >> ); >> >> As in other cases I could add [in] maxHyperlinks which could be 0 to get >> all hyperlinks and then remove nHyperlinks and hyperlink. Would that be >> a good or bad idea? >> >> For the current 1.2.1 spec for IAHyperText see: >> >> http://accessibility.linuxfoundation.org/a11yspecs/ia2/docs/html/interface_i_accessible_hypertext.html >> >> Pete >> -- >> *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 >> > > -- > James Teh > Director, NV Access Limited > Email: [email protected] > Web site: http://www.nvaccess.org/ > Phone: +61 7 5667 8372 > _______________________________________________ > Accessibility-ia2 mailing list > [email protected] > https://lists.linuxfoundation.org/mailman/listinfo/accessibility-ia2 _______________________________________________ Accessibility-ia2 mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/accessibility-ia2
