update dev300-m58
[ooovba.git] / sw / source / core / access / accnotextframe.hxx
blob203f1355889bba2383b02c75ee742ef47729c89a
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: accnotextframe.hxx,v $
10 * $Revision: 1.9 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _ACCNOTEXTFRAME_HXX
31 #define _ACCNOTEXTFRAME_HXX
32 #include "accframebase.hxx"
33 #include <com/sun/star/accessibility/XAccessibleImage.hpp>
35 class SwFlyFrm;
36 class SwNoTxtNode;
38 class SwAccessibleNoTextFrame : public SwAccessibleFrameBase,
39 public ::com::sun::star::accessibility::XAccessibleImage
41 SwDepend aDepend;
42 // --> OD 2009-07-14 #i73249#
43 ::rtl::OUString msTitle;
44 // <--
45 ::rtl::OUString msDesc;
47 protected:
49 virtual ~SwAccessibleNoTextFrame();
51 const SwNoTxtNode *GetNoTxtNode() const;
53 public:
55 SwAccessibleNoTextFrame( SwAccessibleMap* pInitMap,
56 sal_Int16 nInitRole,
57 const SwFlyFrm *pFlyFrm );
59 virtual void Modify( SfxPoolItem *pOld, SfxPoolItem *pNew);
61 //===== XAccessibleContext ==============================================
63 // --> OD 2009-07-14 #i73249#
64 /// Return the object's current name.
65 virtual ::rtl::OUString SAL_CALL
66 getAccessibleName (void)
67 throw (::com::sun::star::uno::RuntimeException);
68 // <--
70 /// Return this object's description.
71 virtual ::rtl::OUString SAL_CALL
72 getAccessibleDescription (void)
73 throw (com::sun::star::uno::RuntimeException);
75 //===== XInterface ======================================================
77 // XInterface methods need to be implemented to disambiguate
78 // between those inherited through SwAcessibleContext and
79 // XAccessibleImage.
81 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
82 const ::com::sun::star::uno::Type& aType )
83 throw (::com::sun::star::uno::RuntimeException);
85 virtual void SAL_CALL acquire( ) throw ()
86 { SwAccessibleContext::acquire(); };
88 virtual void SAL_CALL release( ) throw ()
89 { SwAccessibleContext::release(); };
91 //====== XTypeProvider ====================================================
92 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException);
94 //===== XAccessibleImage ================================================
96 virtual ::rtl::OUString SAL_CALL
97 getAccessibleImageDescription( )
98 throw ( ::com::sun::star::uno::RuntimeException );
100 virtual sal_Int32 SAL_CALL
101 getAccessibleImageHeight( )
102 throw ( ::com::sun::star::uno::RuntimeException );
104 virtual sal_Int32 SAL_CALL
105 getAccessibleImageWidth( )
106 throw ( ::com::sun::star::uno::RuntimeException );
108 // The object is not visible an longer and should be destroyed
109 virtual void Dispose( sal_Bool bRecursive = sal_False );
113 #endif