diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-01-21 10:42:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-01-22 16:29:40 +0000 |
commit | 492498b86e2f39b81da3fec895f0efdcce3a9655 (patch) | |
tree | 8fb2acfc6180f294ecb97c60ff8c6fd48330f0b2 /toolkit | |
parent | c9562064740baed3a9978723c5fe77b44a13a7aa (diff) |
add AccessibleRelationMemberOf to AccessibleRelationSet
Change-Id: I716eb70ceb8005aa54a417d01c67bc139dc61c6f
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/awt/vclxaccessiblecomponent.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/toolkit/source/awt/vclxaccessiblecomponent.cxx b/toolkit/source/awt/vclxaccessiblecomponent.cxx index 106cb0810474..325b15110eda 100644 --- a/toolkit/source/awt/vclxaccessiblecomponent.cxx +++ b/toolkit/source/awt/vclxaccessiblecomponent.cxx @@ -448,6 +448,14 @@ 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 ) ); + } } } |