Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef _ACCNOTEXTFRAME_HXX
29 : : #define _ACCNOTEXTFRAME_HXX
30 : : #include "accframebase.hxx"
31 : : #include <com/sun/star/accessibility/XAccessibleImage.hpp>
32 : :
33 : : class SwFlyFrm;
34 : : class SwNoTxtNode;
35 : :
36 : : class SwAccessibleNoTextFrame : public SwAccessibleFrameBase,
37 : : public ::com::sun::star::accessibility::XAccessibleImage
38 : : {
39 : : SwDepend aDepend;
40 : : ::rtl::OUString msTitle; // #i73249#
41 : : ::rtl::OUString msDesc;
42 : :
43 : : protected:
44 : :
45 : : virtual ~SwAccessibleNoTextFrame();
46 : :
47 : : const SwNoTxtNode *GetNoTxtNode() const;
48 : :
49 : : virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew);
50 : :
51 : : public:
52 : :
53 : : SwAccessibleNoTextFrame( SwAccessibleMap* pInitMap,
54 : : sal_Int16 nInitRole,
55 : : const SwFlyFrm *pFlyFrm );
56 : :
57 : : //===== XAccessibleContext ==============================================
58 : :
59 : : // #i73249# - Return the object's current name.
60 : : virtual ::rtl::OUString SAL_CALL
61 : : getAccessibleName (void)
62 : : throw (::com::sun::star::uno::RuntimeException);
63 : :
64 : : /// Return this object's description.
65 : : virtual ::rtl::OUString SAL_CALL
66 : : getAccessibleDescription (void)
67 : : throw (com::sun::star::uno::RuntimeException);
68 : :
69 : : //===== XInterface ======================================================
70 : :
71 : : // XInterface methods need to be implemented to disambiguate
72 : : // between those inherited through SwAcessibleContext and
73 : : // XAccessibleImage.
74 : :
75 : : virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
76 : : const ::com::sun::star::uno::Type& aType )
77 : : throw (::com::sun::star::uno::RuntimeException);
78 : :
79 : 382 : virtual void SAL_CALL acquire( ) throw ()
80 : 382 : { SwAccessibleContext::acquire(); };
81 : :
82 : 382 : virtual void SAL_CALL release( ) throw ()
83 : 382 : { SwAccessibleContext::release(); };
84 : :
85 : : //====== XTypeProvider ====================================================
86 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException);
87 : :
88 : : //===== XAccessibleImage ================================================
89 : :
90 : : virtual ::rtl::OUString SAL_CALL
91 : : getAccessibleImageDescription( )
92 : : throw ( ::com::sun::star::uno::RuntimeException );
93 : :
94 : : virtual sal_Int32 SAL_CALL
95 : : getAccessibleImageHeight( )
96 : : throw ( ::com::sun::star::uno::RuntimeException );
97 : :
98 : : virtual sal_Int32 SAL_CALL
99 : : getAccessibleImageWidth( )
100 : : throw ( ::com::sun::star::uno::RuntimeException );
101 : :
102 : : // The object is not visible an longer and should be destroyed
103 : : virtual void Dispose( sal_Bool bRecursive = sal_False );
104 : : };
105 : :
106 : :
107 : : #endif
108 : :
109 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|