25#include <com/sun/star/accessibility/AccessibleEventId.hpp>
26#include <com/sun/star/accessibility/AccessibleRole.hpp>
27#include <com/sun/star/accessibility/AccessibleStateType.hpp>
28#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
52 ,m_nItemPos( nItemPos )
64 OExternalLockGuard aGuard(
this );
66 bool bEnabled =
false;
92 if ( pComp && pComp->getAccessibleRole() == AccessibleRole::MENU && !pComp->
IsPopupMenuOpen() )
116 if ( pComp && pComp->getAccessibleRole() == AccessibleRole::MENU && !pComp->
IsPopupMenuOpen() )
166 Any aOldValue, aNewValue;
168 aNewValue <<= sAccessibleName;
170 NotifyAccessibleEvent( AccessibleEventId::NAME_CHANGED, aOldValue, aNewValue );
182 if (
sName.isEmpty() )
186 if (
m_pParent->GetAccelKey( nItemId ).GetName().getLength() )
197 Any aOldValue, aNewValue;
198 if ( OCommonAccessibleText::implInitTextChangedEvent(
m_sItemText, sItemText, aOldValue, aNewValue ) )
201 NotifyAccessibleEvent( AccessibleEventId::TEXT_CHANGED, aOldValue, aNewValue );
221 rStateSet |= AccessibleStateType::ENABLED;
222 rStateSet |= AccessibleStateType::SENSITIVE;
227 rStateSet |= AccessibleStateType::SHOWING;
229 rStateSet |= AccessibleStateType::VISIBLE;
231 rStateSet |= AccessibleStateType::OPAQUE;
240 awt::Rectangle aBounds( 0, 0, 0, 0 );
258 Reference< XAccessibleComponent > xParentComponent( xParent->getAccessibleContext(), UNO_QUERY );
259 if ( xParentComponent.is() )
261 awt::Point aParentScreenLoc = xParentComponent->getLocationOnScreen();
264 aBounds.X += aWindowScreenLoc.X - aParentScreenLoc.X;
265 aBounds.Y += aWindowScreenLoc.Y - aParentScreenLoc.Y;
293 OExternalLockGuard aGuard(
this );
301 OExternalLockGuard aGuard(
this );
304 throw IndexOutOfBoundsException();
312 OExternalLockGuard aGuard(
this );
320 OExternalLockGuard aGuard(
this );
328 OExternalLockGuard aGuard(
this );
330 return AccessibleRole::UNKNOWN;
336 OExternalLockGuard aGuard(
this );
338 OUString sDescription;
348 OExternalLockGuard aGuard(
this );
356 OExternalLockGuard aGuard(
this );
364 OExternalLockGuard aGuard(
this );
375 OExternalLockGuard aGuard(
this );
389 OExternalLockGuard aGuard(
this );
391 sal_Int32 nColor = 0;
395 Reference< XAccessibleComponent > xParentComp( xParent->getAccessibleContext(), UNO_QUERY );
396 if ( xParentComp.is() )
397 nColor = xParentComp->getForeground();
406 OExternalLockGuard aGuard(
this );
408 sal_Int32 nColor = 0;
412 Reference< XAccessibleComponent > xParentComp( xParent->getAccessibleContext(), UNO_QUERY );
413 if ( xParentComp.is() )
414 nColor = xParentComp->getBackground();
426 OExternalLockGuard aGuard(
this );
428 Reference< awt::XFont > xFont;
432 Reference< XAccessibleExtendedComponent > xParentComp( xParent->getAccessibleContext(), UNO_QUERY );
433 if ( xParentComp.is() )
434 xFont = xParentComp->getFont();
443 OExternalLockGuard aGuard(
this );
451 OExternalLockGuard aGuard(
this );
465 if(
m_pParent->GetMenuFlags() & MenuFlags::HideDisabledEntries)
const LanguageTag & GetLanguageTag() const
const MouseSettings & GetMouseSettings() const
void SetMouseSettings(const MouseSettings &rSet)
static const AllSettings & GetSettings()
const css::lang::Locale & getLocale(bool bResolveSystem=true) const
sal_Int32 GetMenuDelay() const
void SetMenuDelay(sal_Int32 nDelay)
tools::Rectangle GetWindowExtentsAbsolute() const
const AllSettings & GetSettings() const
void SetSettings(const AllSettings &rSettings)
css::awt::Point AWTPoint(const ::Point &rVCLPoint)
css::awt::Rectangle AWTRectangle(const ::tools::Rectangle &rVCLRect)
VCL_DLLPUBLIC OUString removeMnemonicFromString(OUString const &rStr, sal_Int32 &rMnemonicPos)