22#include <toolkit/awt/vclxwindows.hxx>
26#include <com/sun/star/accessibility/AccessibleStateType.hpp>
27#include <com/sun/star/accessibility/AccessibleEventId.hpp>
28#include <com/sun/star/awt/ScrollBarOrientation.hpp>
29#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
49 switch ( rVclWindowEvent.
GetId() )
51 case VclEventId::ScrollbarScroll:
53 NotifyAccessibleEvent( AccessibleEventId::VALUE_CHANGED,
Any(),
Any() );
57 VCLXAccessibleComponent::ProcessWindowEvent( rVclWindowEvent );
64 VCLXAccessibleComponent::FillAccessibleStateSet( rStateSet );
71 if ( pVCLXScrollBar->
getOrientation() == ScrollBarOrientation::HORIZONTAL )
72 rStateSet |= AccessibleStateType::HORIZONTAL;
73 else if ( pVCLXScrollBar->
getOrientation() == ScrollBarOrientation::VERTICAL )
74 rStateSet |= AccessibleStateType::VERTICAL;
84 return "com.sun.star.comp.toolkit.AccessibleScrollBar";
90 return {
"com.sun.star.awt.AccessibleScrollBar" };
100 OExternalLockGuard aGuard(
this );
108 OExternalLockGuard aGuard(
this );
111 throw IndexOutOfBoundsException();
113 bool bReturn =
false;
120 case 0: eScrollType = ScrollType::LineUp;
break;
121 case 1: eScrollType = ScrollType::LineDown;
break;
122 case 2: eScrollType = ScrollType::PageUp;
break;
123 case 3: eScrollType = ScrollType::PageDown;
break;
124 default: eScrollType = ScrollType::DontKnow;
break;
126 if ( pScrollBar->DoScrollAction( eScrollType ) )
136 OExternalLockGuard aGuard(
this );
139 throw IndexOutOfBoundsException();
141 OUString sDescription;
158 OExternalLockGuard aGuard(
this );
161 throw IndexOutOfBoundsException();
163 return Reference< XAccessibleKeyBinding >();
172 OExternalLockGuard aGuard(
this );
177 if ( pVCLXScrollBar )
178 aValue <<= pVCLXScrollBar->
getValue();
186 OExternalLockGuard aGuard(
this );
188 bool bReturn =
false;
191 if ( pVCLXScrollBar )
193 sal_Int32
nValue = 0, nValueMin = 0, nValueMax = 0;
194 OSL_VERIFY( aNumber >>=
nValue );
200 else if (
nValue > nValueMax )
213 OExternalLockGuard aGuard(
this );
218 if ( pVCLXScrollBar )
227 OExternalLockGuard aGuard(
this );
230 aValue <<= sal_Int32(0);
237 OExternalLockGuard aGuard(
this );
245 OExternalLockGuard aGuard(
this );
249 if ( pVCLXScrollBar )
251 if ( pVCLXScrollBar->
getOrientation() == ScrollBarOrientation::HORIZONTAL )
253 else if ( pVCLXScrollBar->
getOrientation() == ScrollBarOrientation::VERTICAL )
OUString AccResId(TranslateId aId)
constexpr OUStringLiteral RID_STR_ACC_ACTION_INCBLOCK
constexpr OUStringLiteral RID_STR_ACC_ACTION_DECLINE
constexpr OUStringLiteral RID_STR_ACC_ACTION_INCLINE
constexpr OUStringLiteral RID_STR_ACC_ACTION_DECBLOCK