summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorThomas Benisch <tbe@openoffice.org>2002-12-12 17:08:22 +0000
committerThomas Benisch <tbe@openoffice.org>2002-12-12 17:08:22 +0000
commit84b9d8f4855a077957760c2659f740febe06346c (patch)
treeaaf062a2811fcbc1d4978fc718fee8a9375d70a0 /toolkit
parent43ab917d1cd94b81dac959f0b9e85a4248be7c3b (diff)
#105535# handle VCLEVENT_WINDOW_MENUBARADDED and VCLEVENT_WINDOW_MENUBARREMOVED
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxaccessiblecomponent.cxx39
1 files changed, 37 insertions, 2 deletions
diff --git a/toolkit/source/awt/vclxaccessiblecomponent.cxx b/toolkit/source/awt/vclxaccessiblecomponent.cxx
index a547bce711b6..5fd320a7ab02 100644
--- a/toolkit/source/awt/vclxaccessiblecomponent.cxx
+++ b/toolkit/source/awt/vclxaccessiblecomponent.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: vclxaccessiblecomponent.cxx,v $
*
- * $Revision: 1.41 $
+ * $Revision: 1.42 $
*
- * last change: $Author: tbe $ $Date: 2002-12-10 17:28:35 $
+ * last change: $Author: tbe $ $Date: 2002-12-12 18:08:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -107,6 +107,9 @@
#ifndef _SV_SVAPP_HXX
#include <vcl/svapp.hxx>
#endif
+#ifndef _SV_MENU_HXX
+#include <vcl/menu.hxx>
+#endif
#ifndef VCLEVENT_WINDOW_FRAMETITLECHANGED
#define VCLEVENT_WINDOW_FRAMETITLECHANGED 1018 // pData = XubString* = oldTitle
@@ -411,6 +414,38 @@ void VCLXAccessibleComponent::ProcessWindowEvent( const VclWindowEvent& rVclWind
NotifyAccessibleEvent( accessibility::AccessibleEventId::ACCESSIBLE_BOUNDRECT_EVENT, aOldValue, aNewValue );
}
break;
+ case VCLEVENT_WINDOW_MENUBARADDED:
+ {
+ MenuBar* pMenuBar = (MenuBar*) rVclWindowEvent.GetData();
+ if ( pMenuBar )
+ {
+ uno::Reference< accessibility::XAccessible > xChild( pMenuBar->GetAccessible() );
+ if ( xChild.is() )
+ {
+ aNewValue <<= xChild;
+ NotifyAccessibleEvent( accessibility::AccessibleEventId::ACCESSIBLE_CHILD_EVENT, aOldValue, aNewValue );
+ }
+ }
+ }
+ break;
+ case VCLEVENT_WINDOW_MENUBARREMOVED:
+ {
+ MenuBar* pMenuBar = (MenuBar*) rVclWindowEvent.GetData();
+ if ( pMenuBar )
+ {
+ uno::Reference< accessibility::XAccessible > xChild( pMenuBar->GetAccessible() );
+ if ( xChild.is() )
+ {
+ aOldValue <<= xChild;
+ NotifyAccessibleEvent( accessibility::AccessibleEventId::ACCESSIBLE_CHILD_EVENT, aOldValue, aNewValue );
+ }
+ }
+ }
+ break;
+ default:
+ {
+ }
+ break;
}
}