1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _ACCHEADERFOOTER_HXX
28 #define _ACCHEADERFOOTER_HXX
29 #ifndef _ACCCONTEXT_HXX
30 #include "acccontext.hxx"
31 #endif
32 
33 class SwHeaderFrm;
34 class SwFooterFrm;
35 
36 class SwAccessibleHeaderFooter : public	SwAccessibleContext
37 {
38 
39 protected:
40 
41 	virtual ~SwAccessibleHeaderFooter();
42 
43 public:
44 
45     SwAccessibleHeaderFooter( SwAccessibleMap* pInitMap,
46                               const SwHeaderFrm* pHdFrm );
47     SwAccessibleHeaderFooter( SwAccessibleMap* pInitMap,
48                               const SwFooterFrm* pFtFrm );
49 
50 
51 	//=====  XAccessibleContext  ==============================================
52 
53     ///	Return this object's description.
54 	virtual ::rtl::OUString SAL_CALL
55     	getAccessibleDescription (void)
56         throw (com::sun::star::uno::RuntimeException);
57 
58 	//=====  XServiceInfo  ====================================================
59 
60     /**	Returns an identifier for the implementation of this object.
61     */
62 	virtual ::rtl::OUString SAL_CALL
63     	getImplementationName (void)
64         throw (::com::sun::star::uno::RuntimeException);
65 
66     /**	Return whether the specified service is supported by this class.
67     */
68     virtual sal_Bool SAL_CALL
69     	supportsService (const ::rtl::OUString& sServiceName)
70         throw (::com::sun::star::uno::RuntimeException);
71 
72     /** Returns a list of all supported services.  In this case that is just
73     	the AccessibleContext service.
74     */
75 	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL
76     	getSupportedServiceNames (void)
77         throw (::com::sun::star::uno::RuntimeException);
78 
79 	//=====  XTypeProvider  ====================================================
80     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId(  ) throw(::com::sun::star::uno::RuntimeException);
81 };
82 
83 
84 #endif
85 
86