25#include <com/sun/star/accessibility/AccessibleRole.hpp>
26#include <com/sun/star/accessibility/AccessibleStateType.hpp>
27#include <com/sun/star/awt/XDevice.hpp>
28#include <com/sun/star/awt/XVclWindowPeer.hpp>
29#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
68 rStateSet |= AccessibleStateType::ENABLED;
69 rStateSet |= AccessibleStateType::SENSITIVE;
72 rStateSet |= AccessibleStateType::FOCUSABLE;
75 rStateSet |= AccessibleStateType::FOCUSED;
79 rStateSet |= AccessibleStateType::VISIBLE;
80 rStateSet |= AccessibleStateType::SHOWING;
83 rStateSet |= AccessibleStateType::OPAQUE;
92 awt::Rectangle aBounds( 0, 0, 0, 0 );
107 Reference< XAccessibleComponent > xParentComponent( xParent->getAccessibleContext(), UNO_QUERY );
108 if ( xParentComponent.is() )
110 awt::Point aParentScreenLoc = xParentComponent->getLocationOnScreen();
113 aBounds.X -= aParentScreenLoc.X;
114 aBounds.Y -= aParentScreenLoc.Y;
129 OExternalLockGuard aGuard(
this );
131 return GetChildCount();
137 OExternalLockGuard aGuard(
this );
139 if ( i < 0 || i >= GetChildCount() )
140 throw IndexOutOfBoundsException();
142 return GetChild(
i );
148 OExternalLockGuard aGuard(
this );
169 OExternalLockGuard aGuard(
this );
171 return AccessibleRole::UNKNOWN;
177 OExternalLockGuard aGuard(
this );
179 OUString sDescription;
193 OExternalLockGuard aGuard(
this );
201 OExternalLockGuard aGuard(
this );
209 OExternalLockGuard aGuard(
this );
220 OExternalLockGuard aGuard(
this );
222 return GetChildAt( rPoint );
228 OExternalLockGuard aGuard(
this );
248 OExternalLockGuard aGuard(
this );
261 OExternalLockGuard aGuard(
this );
266 return sal_Int32(nColor);
272 OExternalLockGuard aGuard(
this );
283 OExternalLockGuard aGuard(
this );
285 Reference< awt::XFont > xFont;
297 pVCLXFont->Init( *xDev, rStyleSettings.
GetMenuFont() );
309 OExternalLockGuard aGuard(
this );
317 OExternalLockGuard aGuard(
this );
328 OExternalLockGuard aGuard(
this );
330 if ( nChildIndex < 0 || nChildIndex >= GetChildCount() )
331 throw IndexOutOfBoundsException();
333 SelectChild( nChildIndex );
339 OExternalLockGuard aGuard(
this );
341 if ( nChildIndex < 0 || nChildIndex >= GetChildCount() )
342 throw IndexOutOfBoundsException();
344 return IsChildSelected( nChildIndex );
350 OExternalLockGuard aGuard(
this );
364 OExternalLockGuard aGuard(
this );
370 if ( IsChildSelected(
i ) )
380 OExternalLockGuard aGuard(
this );
383 throw IndexOutOfBoundsException();
387 for ( sal_Int64
i = 0, j = 0,
nCount = GetChildCount();
i <
nCount;
i++ )
389 if ( IsChildSelected(
i ) && ( j++ == nSelectedChildIndex ) )
391 xChild = GetChild(
i );
402 OExternalLockGuard aGuard(
this );
404 if ( nChildIndex < 0 || nChildIndex >= GetChildCount() )
405 throw IndexOutOfBoundsException();
const LanguageTag & GetLanguageTag() const
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
const css::lang::Locale & getLocale(bool bResolveSystem=true) const
const vcl::Font & GetMenuFont() const
const Color & GetMenuTextColor() const
tools::Rectangle GetWindowExtentsAbsolute() const
vcl::Window * GetAccessibleParentWindow() const
virtual css::uno::Reference< css::awt::XVclWindowPeer > GetComponentInterface(bool bCreate=true)
css::uno::Reference< css::accessibility::XAccessible > GetAccessible(bool bCreate=true)
OUString GetAccessibleDescription() const
css::awt::Point AWTPoint(const ::Point &rVCLPoint)
css::awt::Rectangle AWTRectangle(const ::tools::Rectangle &rVCLRect)