diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-09-29 23:22:08 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-10-05 18:51:25 -0500 |
commit | 5497866b17cd02afdbeb6041c01e370a907205ef (patch) | |
tree | b61af80818898f20dc8c889e9a14f4cf4b070681 | |
parent | 58969c41447665ad1e682d658ec25f21b24b649c (diff) |
accfixes2: handle relation MemberOf
-rw-r--r-- | toolkit/source/awt/vclxaccessiblecomponent.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/toolkit/source/awt/vclxaccessiblecomponent.cxx b/toolkit/source/awt/vclxaccessiblecomponent.cxx index 66a2a4bf1cb3..2510bfb83e7a 100644 --- a/toolkit/source/awt/vclxaccessiblecomponent.cxx +++ b/toolkit/source/awt/vclxaccessiblecomponent.cxx @@ -461,6 +461,13 @@ void VCLXAccessibleComponent::FillAccessibleRelationSet( utl::AccessibleRelation aSequence[0] = pLabelFor->GetAccessible(); rRelationSet.AddRelation( accessibility::AccessibleRelation( accessibility::AccessibleRelationType::LABEL_FOR, aSequence ) ); } + Window* pMemberOf = pWindow->GetAccessibleRelationMemberOf(); + if ( pMemberOf && pMemberOf != pWindow ) + { + uno::Sequence< uno::Reference< uno::XInterface > > aSequence(1); + aSequence[0] = pMemberOf->GetAccessible(); + rRelationSet.AddRelation( accessibility::AccessibleRelation( accessibility::AccessibleRelationType::MEMBER_OF, aSequence ) ); + } } } |