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 _ACCFOOTNOTE_HXX
28 #define _ACCFOOTNOTE_HXX
29 
30 #include <sal/types.h>
31 
32 #include <acccontext.hxx>
33 
34 class SwAccessibleMap;
35 class SwFtnFrm;
36 
37 class SwAccessibleFootnote : public SwAccessibleContext
38 {
39 
40 protected:
41 
42 	virtual ~SwAccessibleFootnote();
43 
44 public:
45 
46     SwAccessibleFootnote( SwAccessibleMap* pInitMap,
47 						  sal_Bool bIsEndnote,
48 						  sal_Int32 nFootEndNote,
49 						  const SwFtnFrm *pFtnFrm );
50 
51 
52 	//=====  XAccessibleContext  ==============================================
53 
54     ///	Return this object's description.
55 	virtual ::rtl::OUString SAL_CALL
56     	getAccessibleDescription (void)
57         throw (com::sun::star::uno::RuntimeException);
58 
59 	//=====  XServiceInfo  ====================================================
60 
61     /**	Returns an identifier for the implementation of this object.
62     */
63 	virtual ::rtl::OUString SAL_CALL
64     	getImplementationName (void)
65         throw (::com::sun::star::uno::RuntimeException);
66 
67     /**	Return whether the specified service is supported by this class.
68     */
69     virtual sal_Bool SAL_CALL
70     	supportsService (const ::rtl::OUString& sServiceName)
71         throw (::com::sun::star::uno::RuntimeException);
72 
73     /** Returns a list of all supported services.  In this case that is just
74     	the AccessibleContext service.
75     */
76 	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL
77     	getSupportedServiceNames (void)
78         throw (::com::sun::star::uno::RuntimeException);
79 
80 	//=====  XTypeProvider  ====================================================
81     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId(  ) throw(::com::sun::star::uno::RuntimeException);
82 
83 	static sal_Bool IsEndnote( const SwFtnFrm *pFrm );
84 };
85 
86 
87 #endif
88 
89