22#include <com/sun/star/accessibility/AccessibleRole.hpp>
23#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
40 bool bFocused =
false;
42 if ( IsHighlighted() && !IsChildHighlighted() )
51 bool bPopupMenuOpen =
false;
57 bPopupMenuOpen =
true;
60 return bPopupMenuOpen;
69 return "com.sun.star.comp.toolkit.AccessibleMenu";
75 return {
"com.sun.star.awt.AccessibleMenu" };
84 OExternalLockGuard aGuard(
this );
86 return GetChildCount();
92 OExternalLockGuard aGuard(
this );
94 if ( i < 0 || i >= GetChildCount() )
95 throw IndexOutOfBoundsException();
103 OExternalLockGuard aGuard(
this );
105 return AccessibleRole::MENU;
114 OExternalLockGuard aGuard(
this );
116 return GetChildAt( rPoint );
125 OExternalLockGuard aGuard(
this );
127 if ( nChildIndex < 0 || nChildIndex >= GetChildCount() )
128 throw IndexOutOfBoundsException();
130 SelectChild( nChildIndex );
136 OExternalLockGuard aGuard(
this );
138 if ( nChildIndex < 0 || nChildIndex >= GetChildCount() )
139 throw IndexOutOfBoundsException();
141 return IsChildSelected( nChildIndex );
147 OExternalLockGuard aGuard(
this );
161 OExternalLockGuard aGuard(
this );
172 if ( IsChildSelected(
i ) )
181 OExternalLockGuard aGuard(
this );
184 throw IndexOutOfBoundsException();
188 for ( sal_Int64
i = 0, j = 0,
nCount = GetChildCount();
i <
nCount;
i++ )
190 if ( IsChildSelected(
i ) && ( j++ == nSelectedChildIndex ) )
192 xChild = GetChild(
i );
203 OExternalLockGuard aGuard(
this );
205 if ( nChildIndex < 0 || nChildIndex >= GetChildCount() )
206 throw IndexOutOfBoundsException();
214 OExternalLockGuard aGuard(
this );
216 if ( nIndex < 0 || nIndex >= getAccessibleActionCount() )
217 throw IndexOutOfBoundsException();