summaryrefslogtreecommitdiff
path: root/accessibility/source/standard
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-04-15 12:05:22 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-04-15 12:05:22 +0000
commitf32a54ad35a6d27af2e4229fa3d62ae711528740 (patch)
treea221fb6d872d0fac304ceeec849ae98b390d675c /accessibility/source/standard
parent3b22654409b85ba849f06bd7131df092fd488cfe (diff)
INTEGRATION: CWS aqua11y01 (1.2.26); FILE MERGED
2008/03/11 14:48:40 fne 1.2.26.1: #i82877# make toolbox respond to focus changes through a11y
Diffstat (limited to 'accessibility/source/standard')
-rw-r--r--accessibility/source/standard/vclxaccessibletoolboxitem.cxx9
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)