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 _ACCNOTEXTFRAME_HXX
28 #define _ACCNOTEXTFRAME_HXX
29 #include "accframebase.hxx"
30 #include <com/sun/star/accessibility/XAccessibleImage.hpp>
31 
32 class SwFlyFrm;
33 class SwNoTxtNode;
34 
35 class SwAccessibleNoTextFrame : public	SwAccessibleFrameBase,
36                                 public ::com::sun::star::accessibility::XAccessibleImage
37 {
38 	SwDepend		aDepend;
39     // --> OD 2009-07-14 #i73249#
40     ::rtl::OUString msTitle;
41     // <--
42     ::rtl::OUString msDesc;
43 
44 protected:
45 
46 	virtual ~SwAccessibleNoTextFrame();
47 
48 	const SwNoTxtNode *GetNoTxtNode() const;
49 
50 	virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew);
51 
52 public:
53 
54     SwAccessibleNoTextFrame( SwAccessibleMap* pInitMap,
55                              sal_Int16 nInitRole,
56 						     const SwFlyFrm *pFlyFrm );
57 
58 	//=====  XAccessibleContext  ==============================================
59 
60     // --> OD 2009-07-14 #i73249#
61     /// Return the object's current name.
62     virtual ::rtl::OUString SAL_CALL
63         getAccessibleName (void)
64         throw (::com::sun::star::uno::RuntimeException);
65     // <--
66 
67     /// Return this object's description.
68 	virtual ::rtl::OUString SAL_CALL
69     	getAccessibleDescription (void)
70         throw (com::sun::star::uno::RuntimeException);
71 
72 	//=====  XInterface  ======================================================
73 
74     // XInterface methods need to be implemented to disambiguate
75     // between those inherited through SwAcessibleContext and
76     // XAccessibleImage.
77 
78     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
79         const ::com::sun::star::uno::Type& aType )
80         throw (::com::sun::star::uno::RuntimeException);
81 
82     virtual void SAL_CALL acquire(  ) throw ()
83         { SwAccessibleContext::acquire(); };
84 
85     virtual void SAL_CALL release(  ) throw ()
86         { SwAccessibleContext::release(); };
87 
88 	//====== XTypeProvider ====================================================
89 	virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw(::com::sun::star::uno::RuntimeException);
90 
91 	//=====  XAccessibleImage  ================================================
92 
93     virtual ::rtl::OUString SAL_CALL
94         getAccessibleImageDescription(  )
95         throw ( ::com::sun::star::uno::RuntimeException );
96 
97     virtual sal_Int32 SAL_CALL
98         getAccessibleImageHeight(  )
99         throw ( ::com::sun::star::uno::RuntimeException );
100 
101     virtual sal_Int32 SAL_CALL
102         getAccessibleImageWidth(  )
103         throw ( ::com::sun::star::uno::RuntimeException );
104 
105 	// The object is not visible an longer and should be destroyed
106 	virtual void Dispose( sal_Bool bRecursive = sal_False );
107 };
108 
109 
110 #endif
111