Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 : #ifndef _ACCNOTEXTFRAME_HXX
20 : #define _ACCNOTEXTFRAME_HXX
21 : #include "accframebase.hxx"
22 : #include <com/sun/star/accessibility/XAccessibleImage.hpp>
23 :
24 : class SwFlyFrm;
25 : class SwNoTxtNode;
26 :
27 : class SwAccessibleNoTextFrame : public SwAccessibleFrameBase,
28 : public ::com::sun::star::accessibility::XAccessibleImage
29 : {
30 : SwDepend aDepend;
31 : OUString msTitle; // #i73249#
32 : OUString msDesc;
33 :
34 : protected:
35 :
36 : virtual ~SwAccessibleNoTextFrame();
37 :
38 : const SwNoTxtNode *GetNoTxtNode() const;
39 :
40 : virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew);
41 :
42 : public:
43 :
44 : SwAccessibleNoTextFrame( SwAccessibleMap* pInitMap,
45 : sal_Int16 nInitRole,
46 : const SwFlyFrm *pFlyFrm );
47 :
48 : // XAccessibleContext
49 :
50 : // #i73249# - Return the object's current name.
51 : virtual OUString SAL_CALL
52 : getAccessibleName (void)
53 : throw (::com::sun::star::uno::RuntimeException);
54 :
55 : /// Return this object's description.
56 : virtual OUString SAL_CALL
57 : getAccessibleDescription (void)
58 : throw (com::sun::star::uno::RuntimeException);
59 :
60 : // XInterface methods need to be implemented to disambiguate
61 : // between those inherited through SwAcessibleContext and
62 : // XAccessibleImage.
63 :
64 : virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
65 : const ::com::sun::star::uno::Type& aType )
66 : throw (::com::sun::star::uno::RuntimeException);
67 :
68 191 : virtual void SAL_CALL acquire( ) throw ()
69 191 : { SwAccessibleContext::acquire(); };
70 :
71 191 : virtual void SAL_CALL release( ) throw ()
72 191 : { SwAccessibleContext::release(); };
73 :
74 : // XTypeProvider
75 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException);
76 :
77 : // XAccessibleImage
78 : virtual OUString SAL_CALL
79 : getAccessibleImageDescription( )
80 : throw ( ::com::sun::star::uno::RuntimeException );
81 :
82 : virtual sal_Int32 SAL_CALL
83 : getAccessibleImageHeight( )
84 : throw ( ::com::sun::star::uno::RuntimeException );
85 :
86 : virtual sal_Int32 SAL_CALL
87 : getAccessibleImageWidth( )
88 : throw ( ::com::sun::star::uno::RuntimeException );
89 :
90 : // The object is not visible an longer and should be destroyed
91 : virtual void Dispose( sal_Bool bRecursive = sal_False );
92 : };
93 :
94 :
95 : #endif
96 :
97 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|