1a462bbb7SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3a462bbb7SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4a462bbb7SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5a462bbb7SAndrew Rist  * distributed with this work for additional information
6a462bbb7SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7a462bbb7SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8a462bbb7SAndrew Rist  * "License"); you may not use this file except in compliance
9a462bbb7SAndrew Rist  * with the License.  You may obtain a copy of the License at
10a462bbb7SAndrew Rist  *
11a462bbb7SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12a462bbb7SAndrew Rist  *
13a462bbb7SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14a462bbb7SAndrew Rist  * software distributed under the License is distributed on an
15a462bbb7SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16a462bbb7SAndrew Rist  * KIND, either express or implied.  See the License for the
17a462bbb7SAndrew Rist  * specific language governing permissions and limitations
18a462bbb7SAndrew Rist  * under the License.
19a462bbb7SAndrew Rist  *
20a462bbb7SAndrew Rist  *************************************************************/
21a462bbb7SAndrew Rist 
22a462bbb7SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef ACCESSIBILITY_STANDARD_VCLXACCESSIBLESCROLLBAR_HXX
25cdf0e10cSrcweir #define ACCESSIBILITY_STANDARD_VCLXACCESSIBLESCROLLBAR_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <toolkit/awt/vclxaccessiblecomponent.hxx>
28cdf0e10cSrcweir 
29cdf0e10cSrcweir #ifndef _COM_SUN_STAR_ACCESSIBILITY_XACCESSIBLE_ACTION_HPP_
30cdf0e10cSrcweir #include <com/sun/star/accessibility/XAccessibleAction.hpp>
31cdf0e10cSrcweir #endif
32cdf0e10cSrcweir #include <com/sun/star/accessibility/XAccessibleValue.hpp>
33cdf0e10cSrcweir 
34cdf0e10cSrcweir #ifndef _CPPUHELPER_IMPLBASE2_HXX
35cdf0e10cSrcweir #include <cppuhelper/implbase2.hxx>
36cdf0e10cSrcweir #endif
37cdf0e10cSrcweir 
38cdf0e10cSrcweir 
39cdf0e10cSrcweir //	----------------------------------------------------
40cdf0e10cSrcweir //	class VCLXAccessibleScrollBar
41cdf0e10cSrcweir //	----------------------------------------------------
42cdf0e10cSrcweir 
43cdf0e10cSrcweir typedef ::cppu::ImplHelper2<
44cdf0e10cSrcweir 	::com::sun::star::accessibility::XAccessibleAction,
45cdf0e10cSrcweir 	::com::sun::star::accessibility::XAccessibleValue > VCLXAccessibleScrollBar_BASE;
46cdf0e10cSrcweir 
47cdf0e10cSrcweir class VCLXAccessibleScrollBar : public VCLXAccessibleComponent,
48cdf0e10cSrcweir 								public VCLXAccessibleScrollBar_BASE
49cdf0e10cSrcweir {
50cdf0e10cSrcweir protected:
51cdf0e10cSrcweir 	virtual ~VCLXAccessibleScrollBar();
52cdf0e10cSrcweir 
53cdf0e10cSrcweir     virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
54cdf0e10cSrcweir     virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet );
55cdf0e10cSrcweir 
56cdf0e10cSrcweir public:
57cdf0e10cSrcweir 	VCLXAccessibleScrollBar( VCLXWindow* pVCLXindow );
58cdf0e10cSrcweir 
59cdf0e10cSrcweir 	// XInterface
60cdf0e10cSrcweir 	DECLARE_XINTERFACE()
61cdf0e10cSrcweir 
62cdf0e10cSrcweir 	// XTypeProvider
63cdf0e10cSrcweir 	DECLARE_XTYPEPROVIDER()
64cdf0e10cSrcweir 
65cdf0e10cSrcweir 	// XServiceInfo
66cdf0e10cSrcweir 	virtual ::rtl::OUString SAL_CALL getImplementationName() throw (::com::sun::star::uno::RuntimeException);
67cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw (::com::sun::star::uno::RuntimeException);
68cdf0e10cSrcweir 
69cdf0e10cSrcweir 	// XAccessibleAction
70cdf0e10cSrcweir 	virtual sal_Int32 SAL_CALL getAccessibleActionCount( ) throw (::com::sun::star::uno::RuntimeException);
71cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL doAccessibleAction ( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
72cdf0e10cSrcweir 	virtual ::rtl::OUString SAL_CALL getAccessibleActionDescription ( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
73cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleKeyBinding > SAL_CALL getAccessibleActionKeyBinding( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
74cdf0e10cSrcweir 
75cdf0e10cSrcweir 	// XAccessibleValue
76cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL getCurrentValue(  ) throw (::com::sun::star::uno::RuntimeException);
77cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL setCurrentValue( const ::com::sun::star::uno::Any& aNumber ) throw (::com::sun::star::uno::RuntimeException);
78cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL getMaximumValue(  ) throw (::com::sun::star::uno::RuntimeException);
79cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL getMinimumValue(  ) throw (::com::sun::star::uno::RuntimeException);
80*21075d77SSteve Yin 
81*21075d77SSteve Yin 	// XAccessibleContext
82*21075d77SSteve Yin 	::rtl::OUString SAL_CALL getAccessibleName(  ) throw (::com::sun::star::uno::RuntimeException);
83*21075d77SSteve Yin 
84cdf0e10cSrcweir };
85cdf0e10cSrcweir 
86cdf0e10cSrcweir #endif // ACCESSIBILITY_STANDARD_VCLXACCESSIBLESCROLLBAR_HXX
87cdf0e10cSrcweir 
88