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
This commit is contained in:
parent
3b22654409
commit
f32a54ad35
1 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue