merge the formfield patch from ooo-build
[ooovba.git] / sw / source / core / access / acctextframe.hxx
blob27c84b3fdb79680c6568a835b0f2aa78464001f9
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: acctextframe.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 _ACCTEXTFRAME_HXX
31 #define _ACCTEXTFRAME_HXX
32 #include "accframebase.hxx"
34 class SwFlyFrm;
35 namespace utl { class AccessibleRelationSetHelper; }
36 namespace com { namespace star {
37 namespace accessibility { struct AccessibleRelation; }
38 } }
40 class SwAccessibleTextFrame : public SwAccessibleFrameBase
42 private:
43 // --> OD 2009-07-14 #i73249#
44 ::rtl::OUString msTitle;
45 ::rtl::OUString msDesc;
46 // <--
48 protected:
50 virtual ~SwAccessibleTextFrame();
52 public:
54 SwAccessibleTextFrame( SwAccessibleMap* pInitMap, const SwFlyFrm* pFlyFrm );
56 virtual void Modify( SfxPoolItem *pOld, SfxPoolItem *pNew);
59 //===== XAccessibleContext ==============================================
61 // --> OD 2009-07-14 #i73249#
62 /// Return the object's current name.
63 virtual ::rtl::OUString SAL_CALL
64 getAccessibleName (void)
65 throw (::com::sun::star::uno::RuntimeException);
66 // <--
67 /// Return this object's description.
68 virtual ::rtl::OUString SAL_CALL
69 getAccessibleDescription (void)
70 throw (com::sun::star::uno::RuntimeException);
72 //===== XServiceInfo ====================================================
74 /** Returns an identifier for the implementation of this object.
76 virtual ::rtl::OUString SAL_CALL
77 getImplementationName (void)
78 throw (::com::sun::star::uno::RuntimeException);
80 /** Return whether the specified service is supported by this class.
82 virtual sal_Bool SAL_CALL
83 supportsService (const ::rtl::OUString& sServiceName)
84 throw (::com::sun::star::uno::RuntimeException);
86 /** Returns a list of all supported services. In this case that is just
87 the AccessibleContext service.
89 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL
90 getSupportedServiceNames (void)
91 throw (::com::sun::star::uno::RuntimeException);
93 //====== XTypeProvider ====================================================
94 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException);
97 //===== XAccessibleContext::getAccessibleRelationSet ====================
99 // text frame may have accessible relations to their
100 // predocesor/successor frames
102 private:
103 // helper methods for getAccessibleRelationSet:
104 SwFlyFrm* getFlyFrm() const;
106 com::sun::star::accessibility::AccessibleRelation makeRelation(
107 sal_Int16 nType, const SwFlyFrm* pFrm );
109 public:
111 virtual ::com::sun::star::uno::Reference<
112 ::com::sun::star::accessibility::XAccessibleRelationSet> SAL_CALL
113 getAccessibleRelationSet (void)
114 throw (::com::sun::star::uno::RuntimeException);
118 #endif