vclxaccessiblemenubar.cxx (0841af79) vclxaccessiblemenubar.cxx (15466770)
1/**************************************************************
1/**************************************************************
2 *
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
10 *
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
19 *
20 *************************************************************/
21
22
23
24// MARKER(update_precomp.py): autogen include statement, do not remove
25#include "precompiled_accessibility.hxx"
26#include <accessibility/standard/vclxaccessiblemenubar.hxx>
27

--- 32 unchanged lines hidden (view full) ---

60 if ( m_pWindow )
61 m_pWindow->RemoveEventListener( LINK( this, VCLXAccessibleMenuBar, WindowEventListener ) );
62}
63
64// -----------------------------------------------------------------------------
65
66sal_Bool VCLXAccessibleMenuBar::IsFocused()
67{
20 *************************************************************/
21
22
23
24// MARKER(update_precomp.py): autogen include statement, do not remove
25#include "precompiled_accessibility.hxx"
26#include <accessibility/standard/vclxaccessiblemenubar.hxx>
27

--- 32 unchanged lines hidden (view full) ---

60 if ( m_pWindow )
61 m_pWindow->RemoveEventListener( LINK( this, VCLXAccessibleMenuBar, WindowEventListener ) );
62}
63
64// -----------------------------------------------------------------------------
65
66sal_Bool VCLXAccessibleMenuBar::IsFocused()
67{
68 sal_Bool bFocused = sal_False;
68 sal_Bool bFocused = sal_False;
69
69
70 if ( m_pWindow && m_pWindow->HasFocus() && !IsChildHighlighted() )
71 bFocused = sal_True;
70 if ( m_pWindow && m_pWindow->HasFocus() && !IsChildHighlighted() )
71 bFocused = sal_True;
72
72
73 return bFocused;
73 return bFocused;
74}
75
76// -----------------------------------------------------------------------------
77
78IMPL_LINK( VCLXAccessibleMenuBar, WindowEventListener, VclSimpleEvent*, pEvent )
79{
80 DBG_ASSERT( pEvent && pEvent->ISA( VclWindowEvent ), "VCLXAccessibleMenuBar::WindowEventListener: unknown window event!" );
81 if ( pEvent && pEvent->ISA( VclWindowEvent ) )
82 {
83 DBG_ASSERT( ((VclWindowEvent*)pEvent)->GetWindow(), "VCLXAccessibleMenuBar::WindowEventListener: no window!" );
74}
75
76// -----------------------------------------------------------------------------
77
78IMPL_LINK( VCLXAccessibleMenuBar, WindowEventListener, VclSimpleEvent*, pEvent )
79{
80 DBG_ASSERT( pEvent && pEvent->ISA( VclWindowEvent ), "VCLXAccessibleMenuBar::WindowEventListener: unknown window event!" );
81 if ( pEvent && pEvent->ISA( VclWindowEvent ) )
82 {
83 DBG_ASSERT( ((VclWindowEvent*)pEvent)->GetWindow(), "VCLXAccessibleMenuBar::WindowEventListener: no window!" );
84 if ( !((VclWindowEvent*)pEvent)->GetWindow()->IsAccessibilityEventsSuppressed() || ( pEvent->GetId() == VCLEVENT_OBJECT_DYING ) )
84 if ( !((VclWindowEvent*)pEvent)->GetWindow()->IsAccessibilityEventsSuppressed() || ( pEvent->GetId() == VCLEVENT_OBJECT_DYING ) )
85 {
85 {
86 ProcessWindowEvent( *(VclWindowEvent*)pEvent );
86 ProcessWindowEvent( *(VclWindowEvent*)pEvent );
87 }
88 }
89 return 0;
90}
91
92// -----------------------------------------------------------------------------
93
94void VCLXAccessibleMenuBar::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )

--- 113 unchanged lines hidden ---
87 }
88 }
89 return 0;
90}
91
92// -----------------------------------------------------------------------------
93
94void VCLXAccessibleMenuBar::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )

--- 113 unchanged lines hidden ---