diff options
author | Oliver Bolte <obo@openoffice.org> | 2008-07-22 06:33:13 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2008-07-22 06:33:13 +0000 |
commit | d65167dd82c2965c4449a9f5550e3791507ff8ef (patch) | |
tree | 5646e4b8e85d5063227d43f84acfeb08308d4657 /accessibility/source/extended | |
parent | 7e2e317b9c9c8a3e9bdf44b6982b7dfe7aae21b2 (diff) |
INTEGRATION: CWS pba11y01 (1.3.16); FILE MERGED
2008/06/26 10:51:13 pb 1.3.16.1: fix: #i71430# Relation NODE_CHILD_OF set
Diffstat (limited to 'accessibility/source/extended')
-rw-r--r-- | accessibility/source/extended/accessiblelistboxentry.cxx | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx index f0b657da02a0..ecaed921b06f 100644 --- a/accessibility/source/extended/accessiblelistboxentry.cxx +++ b/accessibility/source/extended/accessiblelistboxentry.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: accessiblelistboxentry.cxx,v $ - * $Revision: 1.3 $ + * $Revision: 1.4 $ * * This file is part of OpenOffice.org. * @@ -37,6 +37,7 @@ #include <com/sun/star/awt/Rectangle.hpp> #include <com/sun/star/awt/Size.hpp> #include <com/sun/star/accessibility/AccessibleEventId.hpp> +#include <com/sun/star/accessibility/AccessibleRelationType.hpp> #include <com/sun/star/accessibility/AccessibleRole.hpp> #include <com/sun/star/accessibility/AccessibleStateType.hpp> #include <tools/debug.hxx> @@ -436,7 +437,20 @@ namespace accessibility // ----------------------------------------------------------------------------- Reference< XAccessibleRelationSet > SAL_CALL AccessibleListBoxEntry::getAccessibleRelationSet( ) throw (RuntimeException) { - return new utl::AccessibleRelationSetHelper; + Reference< XAccessibleRelationSet > xRelSet; + Reference< XAccessible > xParent; + if ( m_aEntryPath.size() > 1 ) // not a root entry + xParent = implGetParentAccessible(); + if ( xParent.is() ) + { + utl::AccessibleRelationSetHelper* pRelationSetHelper = new utl::AccessibleRelationSetHelper; + Sequence< Reference< XInterface > > aSequence(1); + aSequence[0] = xParent; + pRelationSetHelper->AddRelation( + AccessibleRelation( AccessibleRelationType::NODE_CHILD_OF, aSequence ) ); + xRelSet = pRelationSetHelper; + } + return xRelSet; } // ----------------------------------------------------------------------------- Reference< XAccessibleStateSet > SAL_CALL AccessibleListBoxEntry::getAccessibleStateSet( ) throw (RuntimeException) |