Kaydet (Commit) fe6937c2 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS tbe32 (1.2.16); FILE MERGED

2007/11/30 12:08:04 tbe 1.2.16.1: #i34062# state change events for SHOWING not reliably sent for menus
üst ee6a0f36
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: accessiblemenucomponent.cxx,v $ * $RCSfile: accessiblemenucomponent.cxx,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: hr $ $Date: 2007-06-27 15:36:19 $ * last change: $Author: vg $ $Date: 2008-01-28 14:14:47 $
* *
* 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.
...@@ -116,14 +116,14 @@ sal_Bool OAccessibleMenuComponent::IsEnabled() ...@@ -116,14 +116,14 @@ sal_Bool OAccessibleMenuComponent::IsEnabled()
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
sal_Bool OAccessibleMenuComponent::IsShowing() sal_Bool OAccessibleMenuComponent::IsVisible()
{ {
sal_Bool bShowing = sal_False; sal_Bool bVisible = sal_False;
if ( m_pMenu ) if ( m_pMenu )
bShowing = m_pMenu->IsMenuVisible(); bVisible = m_pMenu->IsMenuVisible();
return bShowing; return bVisible;
} }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
...@@ -141,10 +141,11 @@ void OAccessibleMenuComponent::FillAccessibleStateSet( utl::AccessibleStateSetHe ...@@ -141,10 +141,11 @@ void OAccessibleMenuComponent::FillAccessibleStateSet( utl::AccessibleStateSetHe
if ( IsFocused() ) if ( IsFocused() )
rStateSet.AddState( AccessibleStateType::FOCUSED ); rStateSet.AddState( AccessibleStateType::FOCUSED );
rStateSet.AddState( AccessibleStateType::VISIBLE ); if ( IsVisible() )
{
if ( IsShowing() ) rStateSet.AddState( AccessibleStateType::VISIBLE );
rStateSet.AddState( AccessibleStateType::SHOWING ); rStateSet.AddState( AccessibleStateType::SHOWING );
}
rStateSet.AddState( AccessibleStateType::OPAQUE ); rStateSet.AddState( AccessibleStateType::OPAQUE );
} }
......
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