Apache OpenOffice (AOO) Bugzilla – Issue 34062
state change events for SHOWING not reliably sent for menus
Last modified: 2008-02-11 08:24:53 UTC
The accessibility implementation for menus does not sent state change events for SHOWING reliably. This is mostly because when it receives VCLEVENT_MENU_ACTIVATE, the menus are not yet visible, so this event seem not to be the appropriate VCL trigger.
Added accessibility keyword .
re-targeted to OOo 3.0
accepted
As discussed with OBR I set the target to OOo 2.x.
set target OOo 2.4
TBE->PL: VCLEVENT_MENU_ACTIVATE and VCLEVENT_MENU_DEACTIVATE don't seem to be the appropriate events, e.g. VCLEVENT_MENU_ACTIVATE is fired before the menu and all its items are visible. As discussed, can you please provide me some menu events for showing and hiding. The showing event should be fired after the menu and its items are visible. The hiding event should be fired after the menu and its items are hidden, that means no more visible.
pl->tbe: please use the new VCLEVENT_MENU_SHOW and VCLEVENT_MENU_HIDE in CWS tbe32
TBE->OBR: The accessibility implementation for menues is now listening for the vcl events VCLEVENT_MENU_SHOW and VCLEVENT_MENU_HIDE. As discussed, state changed events are sent for VISIBLE instead of SHOWING.
fixed on CWS tbe32 The following files are affected: vcl/inc/vcl/vclevent.hxx 1.2.202.1 vcl/source/window/menu.cxx 1.155.56.1 toolkit/source/awt/vclxmenu.cxx 1.11.158.1 accessibility/inc/accessibility/standard/accessiblemenubasecomponent.hxx 1.2.16.1 accessiblemenucomponent.hxx 1.2.16.1 accessiblemenuitemcomponent.hxx 1.2.16.1 accessibility/source/standard/accessiblemenubasecomponent.cxx 1.2.16.1 accessiblemenucomponent.cxx 1.2.16.1 accessiblemenuitemcomponent.cxx 1.2.16.1
tested with event logging enabled
TBE->OBR: Please verify in CWS tbe32.
I have added the -DAccessBridgeLogging=event parameter to the selected Java VM (in Tools - Options - Java) on Windows and launched the office with guistdio.com tool: all those "showing state out of sync" debug messages for menus/menu items/separators are gone and I get state change events for 'visible' from all items in a sub-menu that opens or closes : nice work !
Verified again in OOH680_m6 (OOo 2.4) and SRC680_m256 (CVS head).