diff options
author | Oliver Bolte <obo@openoffice.org> | 2008-07-22 06:35:42 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2008-07-22 06:35:42 +0000 |
commit | 55e77895f08ee654a9071a83f753677571d62ba5 (patch) | |
tree | 4ddda2505e64ee57b62b726f52a3dd02d0a2897a /accessibility/source/standard | |
parent | INTEGRATION: CWS pba11y01 (1.6.4); FILE MERGED (diff) | |
download | core-55e77895f08ee654a9071a83f753677571d62ba5.tar.gz core-55e77895f08ee654a9071a83f753677571d62ba5.zip |
INTEGRATION: CWS pba11y01 (1.3.16); FILE MERGED
2008/06/17 09:20:54 pb 1.3.16.1: fix: #i70941# action 'activate' added
Diffstat (limited to 'accessibility/source/standard')
-rw-r--r-- | accessibility/source/standard/vclxaccessibleedit.cxx | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/accessibility/source/standard/vclxaccessibleedit.cxx b/accessibility/source/standard/vclxaccessibleedit.cxx index 63f7068b7ba2..06dd0e1e094c 100644 --- a/accessibility/source/standard/vclxaccessibleedit.cxx +++ b/accessibility/source/standard/vclxaccessibleedit.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: vclxaccessibleedit.cxx,v $ - * $Revision: 1.3 $ + * $Revision: 1.4 $ * * This file is part of OpenOffice.org. * @@ -253,7 +253,8 @@ sal_Int32 VCLXAccessibleEdit::getAccessibleActionCount( ) throw (RuntimeExceptio { OExternalLockGuard aGuard( this ); - return 0; + // There is one action: activate + return 1; } // ----------------------------------------------------------------------------- @@ -265,7 +266,15 @@ sal_Bool VCLXAccessibleEdit::doAccessibleAction ( sal_Int32 nIndex ) throw (Inde if ( nIndex < 0 || nIndex >= getAccessibleActionCount() ) throw IndexOutOfBoundsException(); - return sal_False; + sal_Bool bDoAction = sal_False; + Window* pWindow = GetWindow(); + if ( pWindow ) + { + pWindow->GrabFocus(); + bDoAction = sal_True; + } + + return bDoAction; } // ----------------------------------------------------------------------------- @@ -277,7 +286,8 @@ sal_Bool VCLXAccessibleEdit::doAccessibleAction ( sal_Int32 nIndex ) throw (Inde if ( nIndex < 0 || nIndex >= getAccessibleActionCount() ) throw IndexOutOfBoundsException(); - return ::rtl::OUString(); + static const ::rtl::OUString sAction( RTL_CONSTASCII_USTRINGPARAM( "activate" ) ); + return sAction; } // ----------------------------------------------------------------------------- |