Kaydet (Commit) a1cbbd11 authored tarafından Ivo Hinkelmann's avatar Ivo Hinkelmann

INTEGRATION: CWS fwk83_SRC680 (1.51.160); FILE MERGED

2008/01/14 14:35:26 cd 1.51.160.1: #i70872# Added VCLEVENT_TOOLBOX_BUTTONCHANGED to notify accessibility implementation that an action happens to a toolbox button
üst 3f1afd17
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: toolbox2.cxx,v $ * $RCSfile: toolbox2.cxx,v $
* *
* $Revision: 1.52 $ * $Revision: 1.53 $
* *
* last change: $Author: rt $ $Date: 2008-01-29 16:18:21 $ * last change: $Author: ihi $ $Date: 2008-02-05 12:30:25 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -1569,6 +1569,9 @@ void ToolBox::SetItemText( USHORT nItemId, const XubString& rText ) ...@@ -1569,6 +1569,9 @@ void ToolBox::SetItemText( USHORT nItemId, const XubString& rText )
else else
pItem->maText = ImplConvertMenuString( rText ); pItem->maText = ImplConvertMenuString( rText );
// Notify button changed event to prepare accessibility bridge
ImplCallEventListeners( VCLEVENT_TOOLBOX_BUTTONSTATECHANGED, reinterpret_cast< void* >( nPos ) );
// Notify // Notify
ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMTEXTCHANGED, reinterpret_cast< void* >( nPos ) ); ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMTEXTCHANGED, reinterpret_cast< void* >( nPos ) );
} }
...@@ -1766,6 +1769,10 @@ void ToolBox::SetItemState( USHORT nItemId, TriState eState ) ...@@ -1766,6 +1769,10 @@ void ToolBox::SetItemState( USHORT nItemId, TriState eState )
pItem->meState = eState; pItem->meState = eState;
ImplUpdateItem( nPos ); ImplUpdateItem( nPos );
// Notify button changed event to prepare accessibility bridge
ImplCallEventListeners( VCLEVENT_TOOLBOX_BUTTONSTATECHANGED, reinterpret_cast< void* >( nPos ) );
// Notify // Notify
ImplCallEventListeners( VCLEVENT_TOOLBOX_CLICK, reinterpret_cast< void* >( nPos ) ); ImplCallEventListeners( VCLEVENT_TOOLBOX_CLICK, reinterpret_cast< void* >( nPos ) );
} }
...@@ -1808,6 +1815,9 @@ void ToolBox::EnableItem( USHORT nItemId, BOOL bEnable ) ...@@ -1808,6 +1815,9 @@ void ToolBox::EnableItem( USHORT nItemId, BOOL bEnable )
ImplUpdateInputEnable(); ImplUpdateInputEnable();
// Notify button changed event to prepare accessibility bridge
ImplCallEventListeners( VCLEVENT_TOOLBOX_BUTTONSTATECHANGED, reinterpret_cast< void* >( nPos ) );
ImplCallEventListeners( bEnable ? VCLEVENT_TOOLBOX_ITEMENABLED : VCLEVENT_TOOLBOX_ITEMDISABLED, reinterpret_cast< void* >( nPos ) ); ImplCallEventListeners( bEnable ? VCLEVENT_TOOLBOX_ITEMENABLED : VCLEVENT_TOOLBOX_ITEMDISABLED, reinterpret_cast< void* >( nPos ) );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment