NVDA Helper
In-process and lite high-speed utilities for NVDA
|
Go to the source code of this file.
Functions | |
bool | fetchIA2Attributes (IAccessible2 *pacc2, map< wstring, wstring > &attribsMap) |
void | IA2AttribsToMap (const wstring &attribsString, map< wstring, wstring > &attribsMap) |
Convert an IAccessible2 attributes string to a map of attribute keys and values. | |
std::pair< std::vector< CComVariant >, HRESULT > | getAccessibleChildren (IAccessible *pacc, long indexOfFirstChild, long maxChildCount) |
Helper to collect the children for an IAccessible, uses memory managed types that will clear / delete automatically. | |
unique_ptr< HyperlinkGetter > | makeHyperlinkGetter (IAccessible2 *acc) |
Create an appropriate HyperlinkGetter to retrieve hyperlinks (embedded objects) if they are supported. | |
bool fetchIA2Attributes | ( | IAccessible2 * | pacc2, |
map< wstring, wstring > & | attribsMap ) |
References IA2AttribsToMap().
Referenced by findAriaAtomic(), getTextFromIAccessible(), and winEventProcHook().
void IA2AttribsToMap | ( | const std::wstring & | attribsString, |
std::map< std::wstring, std::wstring > & | attribsMap ) |
Convert an IAccessible2 attributes string to a map of attribute keys and values.
An IAccessible2 attributes string is of the form "name:value;name:value;...;" Colons and semi-colons must be escaped with a backslash character. An invalid attributes string does not cause an error, but strange results may be returned.
attribsString | The IAccessible2 attributes string to convert. |
attribsMap | The map into which the attributes should be placed, with keys and values as strings. |
Referenced by createMapOfIA2AttributesFromPacc(), and fetchIA2Attributes().
std::pair< std::vector< CComVariant >, HRESULT > getAccessibleChildren | ( | IAccessible * | pacc, |
long | indexOfFirstChild, | ||
long | maxChildCount ) |
Helper to collect the children for an IAccessible, uses memory managed types that will clear / delete automatically.
Referenced by getTextFromIAccessible(), and lotusNotesRichTextVBufBackend_t::render().
unique_ptr< HyperlinkGetter > makeHyperlinkGetter | ( | IAccessible2 * | acc | ) |
Create an appropriate HyperlinkGetter to retrieve hyperlinks (embedded objects) if they are supported.
IAccessibleHypertext2 will be used in preference to IAccessibleHypertext.
acc | The accessible to use. |