diff options
Diffstat (limited to 'accessibility/source/standard')
-rw-r--r-- | accessibility/source/standard/vclxaccessibletoolboxitem.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx index f9008b4d04e3..fdc79fa14c88 100644 --- a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx +++ b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: vclxaccessibletoolboxitem.cxx,v $ - * $Revision: 1.3 $ + * $Revision: 1.4 $ * * This file is part of OpenOffice.org. * @@ -54,6 +54,8 @@ #include <cppuhelper/typeprovider.hxx> #include <comphelper/sequence.hxx> +#include <com/sun/star/accessibility/XAccessibleSelection.hpp> + // class VCLXAccessibleToolBoxItem ------------------------------------------ using namespace ::com::sun::star::accessibility; @@ -552,7 +554,10 @@ Reference< XAccessible > SAL_CALL VCLXAccessibleToolBoxItem::getAccessibleAtPoin // ----------------------------------------------------------------------------- void SAL_CALL VCLXAccessibleToolBoxItem::grabFocus( ) throw (RuntimeException) { - // no focus for each item + Reference < XAccessibleSelection > rxAccessibleSelection ( getAccessibleParent(), UNO_QUERY ); + if ( rxAccessibleSelection.is() ) { + rxAccessibleSelection -> selectAccessibleChild ( getAccessibleIndexInParent() ); + } } // ----------------------------------------------------------------------------- sal_Int32 SAL_CALL VCLXAccessibleToolBoxItem::getForeground( ) throw (RuntimeException) |