26#include <com/sun/star/accessibility/AccessibleRelationType.hpp>
27#include <com/sun/star/accessibility/XAccessible.hpp>
28#include <com/sun/star/accessibility/XAccessibleContext.hpp>
54 }
catch(...) {
return E_FAIL; }
66 }
catch(...) {
return E_FAIL; }
87 }
catch(...) {
return E_FAIL; }
106 int nCount = xTargets.getLength();
107 if( targetIndex >=
nCount )
111 IAccessible* pRet =
nullptr;
123 }
catch(...) {
return E_FAIL; }
146 int nCount = xTargets.getLength();
148 *
target =
static_cast<IUnknown*
>(::CoTaskMemAlloc(
nCount*
sizeof(IUnknown)));
158 IUnknown* pAcc =
nullptr;
167 }
catch(...) {
return E_FAIL; }
179 relation = *
reinterpret_cast<AccessibleRelation*
>(pXSubInterface);
190 static LPCWSTR
map[] =
205 return ::SysAllocString( (
type >= AccessibleRelationType::INVALID &&
type <= AccessibleRelationType::DESCRIBED_BY)
STDMETHOD() get_relationType(BSTR *relationType) override
Get relation type.
STDMETHOD() put_XSubInterface(hyper pXSubInterface) override
Put UNO interface.
STDMETHOD() get_targets(long maxTargets, IUnknown **target, long *nTargets) override
Get special targets.
css::accessibility::AccessibleRelation relation
STDMETHOD() get_target(long targetIndex, IUnknown **target) override
Get special target.
STDMETHOD() get_localizedRelationType(BSTR *relationType) override
static BSTR getRelationTypeBSTR(int type)
Get relation type string by type.
STDMETHOD() get_nTargets(long *nTargets) override
Get targets length.
static bool get_IAccessibleFromXAccessible(css::accessibility::XAccessible *pXAcc, IAccessible **ppIA)
const WCHAR *const IA2_RELATION_CONTROLLED_BY
Some attribute of this object is affected by a target object.
const WCHAR *const IA2_RELATION_NODE_CHILD_OF
This object is a logical child of a target object.
const WCHAR *const IA2_RELATION_DESCRIBED_BY
This object is described by the target object.
const WCHAR *const IA2_RELATION_SUBWINDOW_OF
This object is a sub window of a target object.
const WCHAR *const IA2_RELATION_FLOWS_TO
Content flows from this object to a target object.
const WCHAR *const IA2_RELATION_LABELED_BY
This object is labelled by a target object.
const WCHAR *const IA2_RELATION_MEMBER_OF
This object is a member of a group of one or more objects.
const WCHAR *const IA2_RELATION_CONTROLLER_FOR
This object is interactive and controls some attribute of a target object.
const WCHAR *const IA2_RELATION_LABEL_FOR
This object is label for a target object.
const WCHAR *const IA2_RELATION_FLOWS_FROM
Content flows to this object from a target object.
long nTargets
Returns the number of targets for this relation.
IUnknown target([in] long targetIndex)
Returns one accessible relation target.
BSTR relationType
Returns the type of the relation.
std::map< OUString, rtl::Reference< Entity > > map