1*a462bbb7SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*a462bbb7SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*a462bbb7SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*a462bbb7SAndrew Rist  * distributed with this work for additional information
6*a462bbb7SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*a462bbb7SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*a462bbb7SAndrew Rist  * "License"); you may not use this file except in compliance
9*a462bbb7SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*a462bbb7SAndrew Rist  *
11*a462bbb7SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*a462bbb7SAndrew Rist  *
13*a462bbb7SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*a462bbb7SAndrew Rist  * software distributed under the License is distributed on an
15*a462bbb7SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*a462bbb7SAndrew Rist  * KIND, either express or implied.  See the License for the
17*a462bbb7SAndrew Rist  * specific language governing permissions and limitations
18*a462bbb7SAndrew Rist  * under the License.
19*a462bbb7SAndrew Rist  *
20*a462bbb7SAndrew Rist  *************************************************************/
21*a462bbb7SAndrew Rist 
22*a462bbb7SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef ACC_ACCESSIBLETOOLPANELTABBAR_HXX
25cdf0e10cSrcweir #define ACC_ACCESSIBLETOOLPANELTABBAR_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir /** === begin UNO includes === **/
28cdf0e10cSrcweir /** === end UNO includes === **/
29cdf0e10cSrcweir 
30cdf0e10cSrcweir #include <cppuhelper/implbase1.hxx>
31cdf0e10cSrcweir #include <toolkit/awt/vclxaccessiblecomponent.hxx>
32cdf0e10cSrcweir 
33cdf0e10cSrcweir #include <boost/scoped_ptr.hpp>
34cdf0e10cSrcweir 
35cdf0e10cSrcweir namespace svt
36cdf0e10cSrcweir {
37cdf0e10cSrcweir     class IToolPanelDeck;
38cdf0e10cSrcweir     class PanelTabBar;
39cdf0e10cSrcweir }
40cdf0e10cSrcweir 
41cdf0e10cSrcweir //......................................................................................................................
42cdf0e10cSrcweir namespace accessibility
43cdf0e10cSrcweir {
44cdf0e10cSrcweir //......................................................................................................................
45cdf0e10cSrcweir 
46cdf0e10cSrcweir 	//==================================================================================================================
47cdf0e10cSrcweir 	//= AccessibleToolPanelTabBar
48cdf0e10cSrcweir 	//==================================================================================================================
49cdf0e10cSrcweir     class AccessibleToolPanelTabBar_Impl;
50cdf0e10cSrcweir     typedef VCLXAccessibleComponent   AccessibleToolPanelTabBar_Base;
51cdf0e10cSrcweir     class AccessibleToolPanelTabBar : public AccessibleToolPanelTabBar_Base
52cdf0e10cSrcweir 	{
53cdf0e10cSrcweir     public:
54cdf0e10cSrcweir         AccessibleToolPanelTabBar(
55cdf0e10cSrcweir             const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& i_rAccessibleParent,
56cdf0e10cSrcweir             ::svt::IToolPanelDeck& i_rPanelDeck,
57cdf0e10cSrcweir             ::svt::PanelTabBar& i_rTabBar
58cdf0e10cSrcweir         );
59cdf0e10cSrcweir 
60cdf0e10cSrcweir         using AccessibleToolPanelTabBar_Base::NotifyAccessibleEvent;
61cdf0e10cSrcweir 
62cdf0e10cSrcweir     protected:
63cdf0e10cSrcweir         virtual ~AccessibleToolPanelTabBar();
64cdf0e10cSrcweir 
65cdf0e10cSrcweir         // XAccessibleContext
66cdf0e10cSrcweir 		virtual sal_Int32 SAL_CALL getAccessibleChildCount(  ) throw (::com::sun::star::uno::RuntimeException);
67cdf0e10cSrcweir 		virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
68cdf0e10cSrcweir 		virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleParent(  ) throw (::com::sun::star::uno::RuntimeException);
69cdf0e10cSrcweir 		virtual sal_Int16 SAL_CALL getAccessibleRole(  ) throw (::com::sun::star::uno::RuntimeException);
70cdf0e10cSrcweir 
71cdf0e10cSrcweir 		// XAccessibleComponent
72cdf0e10cSrcweir 		virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException);
73cdf0e10cSrcweir 
74cdf0e10cSrcweir         // OComponentHelper
75cdf0e10cSrcweir 	    virtual void SAL_CALL disposing();
76cdf0e10cSrcweir 
77cdf0e10cSrcweir         // VCLXAccessibleComponent
78cdf0e10cSrcweir         virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > GetChildAccessible( const VclWindowEvent& i_rVclWindowEvent );
79cdf0e10cSrcweir         virtual void FillAccessibleStateSet( ::utl::AccessibleStateSetHelper& i_rStateSet );
80cdf0e10cSrcweir 
81cdf0e10cSrcweir     private:
82cdf0e10cSrcweir         ::boost::scoped_ptr< AccessibleToolPanelTabBar_Impl > m_pImpl;
83cdf0e10cSrcweir 	};
84cdf0e10cSrcweir 
85cdf0e10cSrcweir //......................................................................................................................
86cdf0e10cSrcweir } // namespace accessibility
87cdf0e10cSrcweir //......................................................................................................................
88cdf0e10cSrcweir 
89cdf0e10cSrcweir #endif // ACC_ACCESSIBLETOOLPANELTABBAR_HXX
90