1 /*************************************************************************
2  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3  *
4  * Copyright 2000, 2010 Oracle and/or its affiliates.
5  *
6  * OpenOffice.org - a multi-platform office productivity suite
7  *
8  * This file is part of OpenOffice.org.
9  *
10  * OpenOffice.org is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU Lesser General Public License version 3
12  * only, as published by the Free Software Foundation.
13  *
14  * OpenOffice.org is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU Lesser General Public License version 3 for more details
18  * (a copy is included in the LICENSE file that accompanied this code).
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * version 3 along with OpenOffice.org.  If not, see
22  * <http://www.openoffice.org/license.html>
23  * for a copy of the LGPLv3 License.
24  *
25  ************************************************************************/
26 
27 #ifndef ACC_ACCESSIBLETOOLPANELTABBAR_HXX
28 #define ACC_ACCESSIBLETOOLPANELTABBAR_HXX
29 
30 /** === begin UNO includes === **/
31 /** === end UNO includes === **/
32 
33 #include <cppuhelper/implbase1.hxx>
34 #include <toolkit/awt/vclxaccessiblecomponent.hxx>
35 
36 #include <boost/scoped_ptr.hpp>
37 
38 namespace svt
39 {
40     class IToolPanelDeck;
41     class PanelTabBar;
42 }
43 
44 //......................................................................................................................
45 namespace accessibility
46 {
47 //......................................................................................................................
48 
49 	//==================================================================================================================
50 	//= AccessibleToolPanelTabBar
51 	//==================================================================================================================
52     class AccessibleToolPanelTabBar_Impl;
53     typedef VCLXAccessibleComponent   AccessibleToolPanelTabBar_Base;
54     class AccessibleToolPanelTabBar : public AccessibleToolPanelTabBar_Base
55 	{
56     public:
57         AccessibleToolPanelTabBar(
58             const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& i_rAccessibleParent,
59             ::svt::IToolPanelDeck& i_rPanelDeck,
60             ::svt::PanelTabBar& i_rTabBar
61         );
62 
63         using AccessibleToolPanelTabBar_Base::NotifyAccessibleEvent;
64 
65     protected:
66         virtual ~AccessibleToolPanelTabBar();
67 
68         // XAccessibleContext
69 		virtual sal_Int32 SAL_CALL getAccessibleChildCount(  ) throw (::com::sun::star::uno::RuntimeException);
70 		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);
71 		virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleParent(  ) throw (::com::sun::star::uno::RuntimeException);
72 		virtual sal_Int16 SAL_CALL getAccessibleRole(  ) throw (::com::sun::star::uno::RuntimeException);
73 
74 		// XAccessibleComponent
75 		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);
76 
77         // OComponentHelper
78 	    virtual void SAL_CALL disposing();
79 
80         // VCLXAccessibleComponent
81         virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > GetChildAccessible( const VclWindowEvent& i_rVclWindowEvent );
82         virtual void FillAccessibleStateSet( ::utl::AccessibleStateSetHelper& i_rStateSet );
83 
84     private:
85         ::boost::scoped_ptr< AccessibleToolPanelTabBar_Impl > m_pImpl;
86 	};
87 
88 //......................................................................................................................
89 } // namespace accessibility
90 //......................................................................................................................
91 
92 #endif // ACC_ACCESSIBLETOOLPANELTABBAR_HXX
93