xref: /aoo42x/main/sw/source/core/access/acctable.hxx (revision 29a5db61)
11d2dbeb0SAndrew Rist /**************************************************************
21d2dbeb0SAndrew Rist  *
31d2dbeb0SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
41d2dbeb0SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
51d2dbeb0SAndrew Rist  * distributed with this work for additional information
61d2dbeb0SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
71d2dbeb0SAndrew Rist  * to you under the Apache License, Version 2.0 (the
81d2dbeb0SAndrew Rist  * "License"); you may not use this file except in compliance
91d2dbeb0SAndrew Rist  * with the License.  You may obtain a copy of the License at
101d2dbeb0SAndrew Rist  *
111d2dbeb0SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
121d2dbeb0SAndrew Rist  *
131d2dbeb0SAndrew Rist  * Unless required by applicable law or agreed to in writing,
141d2dbeb0SAndrew Rist  * software distributed under the License is distributed on an
151d2dbeb0SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
161d2dbeb0SAndrew Rist  * KIND, either express or implied.  See the License for the
171d2dbeb0SAndrew Rist  * specific language governing permissions and limitations
181d2dbeb0SAndrew Rist  * under the License.
191d2dbeb0SAndrew Rist  *
201d2dbeb0SAndrew Rist  *************************************************************/
211d2dbeb0SAndrew Rist 
221d2dbeb0SAndrew Rist 
23cdf0e10cSrcweir #ifndef _ACCTABLE_HXX
24cdf0e10cSrcweir #define _ACCTABLE_HXX
25cdf0e10cSrcweir #include <com/sun/star/accessibility/XAccessibleTable.hpp>
26ca62e2c2SSteve Yin #ifndef _COM_SUN_STAR_ACCESSIBILITY_XAccessibleTableSelection_HPP_
27ca62e2c2SSteve Yin #include <com/sun/star/accessibility/XAccessibleTableSelection.hpp>
28ca62e2c2SSteve Yin #endif
29ca62e2c2SSteve Yin #include <vector>
30cdf0e10cSrcweir #include <com/sun/star/accessibility/XAccessibleSelection.hpp>
31cdf0e10cSrcweir 
32cdf0e10cSrcweir #include <acccontext.hxx>
33cdf0e10cSrcweir 
34cdf0e10cSrcweir class SwTabFrm;
35cdf0e10cSrcweir class SwAccessibleTableData_Impl;
36cdf0e10cSrcweir class SwTableBox;
37cdf0e10cSrcweir class SwSelBoxes;
38cdf0e10cSrcweir 
39cdf0e10cSrcweir namespace sw { namespace access {
40cdf0e10cSrcweir     class SwAccessibleChild;
41cdf0e10cSrcweir } }
42cdf0e10cSrcweir 
43cdf0e10cSrcweir class SwAccessibleTable :
44cdf0e10cSrcweir 		public SwAccessibleContext,
45cdf0e10cSrcweir 		public ::com::sun::star::accessibility::XAccessibleTable,
46cdf0e10cSrcweir         public ::com::sun::star::accessibility::XAccessibleSelection,
47ca62e2c2SSteve Yin 		public	 ::com::sun::star::accessibility::XAccessibleTableSelection,
48cdf0e10cSrcweir 		public SwClient
49cdf0e10cSrcweir {
50cdf0e10cSrcweir 	SwAccessibleTableData_Impl *mpTableData;	// the table's data, prot by Sol-Mutex
51cdf0e10cSrcweir 	::rtl::OUString	sDesc;
52cdf0e10cSrcweir 	const SwSelBoxes *GetSelBoxes() const;
53cdf0e10cSrcweir 
54cdf0e10cSrcweir 	void FireTableChangeEvent( const SwAccessibleTableData_Impl& rTableData );
55cdf0e10cSrcweir 
56cdf0e10cSrcweir     /** get the SwTableBox* for the given child */
57cdf0e10cSrcweir     const SwTableBox* GetTableBox( sal_Int32 ) const;
58cdf0e10cSrcweir 
59cdf0e10cSrcweir 	sal_Bool IsChildSelected( sal_Int32 nChildIndex ) const;
60cdf0e10cSrcweir 
61cdf0e10cSrcweir 	sal_Int32 GetIndexOfSelectedChild( sal_Int32 nSelectedChildIndex ) const;
62cdf0e10cSrcweir 
63cdf0e10cSrcweir protected:
64cdf0e10cSrcweir 
65cdf0e10cSrcweir 	// Set states for getAccessibleStateSet.
66cdf0e10cSrcweir 	// This drived class additinaly sets MULTISELECTABLE(+)
67cdf0e10cSrcweir 	virtual void GetStates( ::utl::AccessibleStateSetHelper& rStateSet );
68cdf0e10cSrcweir 
69cdf0e10cSrcweir 	virtual ~SwAccessibleTable();
70cdf0e10cSrcweir 
71cdf0e10cSrcweir     // --> OD 2007-06-27 #i77106#
SetDesc(::rtl::OUString sNewDesc)72cdf0e10cSrcweir     inline void SetDesc( ::rtl::OUString sNewDesc )
73cdf0e10cSrcweir     {
74cdf0e10cSrcweir         sDesc = sNewDesc;
75cdf0e10cSrcweir     }
76cdf0e10cSrcweir 
77cdf0e10cSrcweir     // --> OD 2007-06-28 #i77106#
78cdf0e10cSrcweir     virtual SwAccessibleTableData_Impl* CreateNewTableData();
79cdf0e10cSrcweir     // <--
80cdf0e10cSrcweir 
81cdf0e10cSrcweir 	// force update of table data
82cdf0e10cSrcweir     void UpdateTableData();
83cdf0e10cSrcweir 
84cdf0e10cSrcweir 	// remove the current table data
85cdf0e10cSrcweir 	void ClearTableData();
86cdf0e10cSrcweir 
87cdf0e10cSrcweir 	// get table data, update if necessary
88cdf0e10cSrcweir 	inline SwAccessibleTableData_Impl& GetTableData();
89cdf0e10cSrcweir 
90*29a5db61Smseidel 	// Is table data available?
HasTableData() const91cdf0e10cSrcweir     sal_Bool HasTableData() const { return (mpTableData != 0); }
92cdf0e10cSrcweir 
93ca62e2c2SSteve Yin 	void SetTableData(SwAccessibleTableData_Impl* mpNewTableData)  ;
94cdf0e10cSrcweir 	virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew);
95cdf0e10cSrcweir 
96cdf0e10cSrcweir public:
97cdf0e10cSrcweir 
98cdf0e10cSrcweir     SwAccessibleTable( SwAccessibleMap* pInitMap, const SwTabFrm* pTableFrm );
99cdf0e10cSrcweir 
100cdf0e10cSrcweir 	//=====  XInterface  ======================================================
101cdf0e10cSrcweir 
102cdf0e10cSrcweir     // (XInterface methods need to be implemented to disambigouate
103cdf0e10cSrcweir     // between those inherited through SwAcessibleContext and
104cdf0e10cSrcweir     // XAccessibleTable).
105cdf0e10cSrcweir 
106cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
107cdf0e10cSrcweir         const ::com::sun::star::uno::Type& aType )
108cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
109cdf0e10cSrcweir 
acquire()110cdf0e10cSrcweir     virtual void SAL_CALL acquire(  ) throw ()
111cdf0e10cSrcweir         { SwAccessibleContext::acquire(); };
112cdf0e10cSrcweir 
release()113cdf0e10cSrcweir     virtual void SAL_CALL release(  ) throw ()
114cdf0e10cSrcweir         { SwAccessibleContext::release(); };
115cdf0e10cSrcweir 
116cdf0e10cSrcweir 	//====== XTypeProvider ====================================================
117cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw(::com::sun::star::uno::RuntimeException);
118cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId(  ) throw(::com::sun::star::uno::RuntimeException);
119cdf0e10cSrcweir 
120cdf0e10cSrcweir 	//=====  XAccessibleContext  ==============================================
121cdf0e10cSrcweir 
122cdf0e10cSrcweir     ///	Return this object's description.
123cdf0e10cSrcweir 	virtual ::rtl::OUString SAL_CALL
124cdf0e10cSrcweir     	getAccessibleDescription (void)
125cdf0e10cSrcweir         throw (com::sun::star::uno::RuntimeException);
126cdf0e10cSrcweir 
127cdf0e10cSrcweir 	//=====  XAccessibleTable  ================================================
128cdf0e10cSrcweir 
129cdf0e10cSrcweir     virtual sal_Int32 SAL_CALL getAccessibleRowCount()
130cdf0e10cSrcweir 		throw (::com::sun::star::uno::RuntimeException);
131cdf0e10cSrcweir     virtual sal_Int32 SAL_CALL getAccessibleColumnCount(  )
132cdf0e10cSrcweir 		throw (::com::sun::star::uno::RuntimeException);
133cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getAccessibleRowDescription(
134cdf0e10cSrcweir 			sal_Int32 nRow )
135cdf0e10cSrcweir 		throw (::com::sun::star::lang::IndexOutOfBoundsException,
136cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException);
137cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getAccessibleColumnDescription(
138cdf0e10cSrcweir 			sal_Int32 nColumn )
139cdf0e10cSrcweir 		throw (::com::sun::star::lang::IndexOutOfBoundsException,
140cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException);
141cdf0e10cSrcweir     virtual sal_Int32 SAL_CALL getAccessibleRowExtentAt(
142cdf0e10cSrcweir 			sal_Int32 nRow, sal_Int32 nColumn )
143cdf0e10cSrcweir 		throw (::com::sun::star::lang::IndexOutOfBoundsException,
144cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException);
145cdf0e10cSrcweir     virtual sal_Int32 SAL_CALL getAccessibleColumnExtentAt(
146cdf0e10cSrcweir 		   	sal_Int32 nRow, sal_Int32 nColumn )
147cdf0e10cSrcweir 		throw (::com::sun::star::lang::IndexOutOfBoundsException,
148cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException);
149cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
150cdf0e10cSrcweir 				::com::sun::star::accessibility::XAccessibleTable >
151cdf0e10cSrcweir 		SAL_CALL getAccessibleRowHeaders(  )
152cdf0e10cSrcweir 	   	throw (::com::sun::star::uno::RuntimeException);
153cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
154cdf0e10cSrcweir 				::com::sun::star::accessibility::XAccessibleTable >
155cdf0e10cSrcweir 		SAL_CALL getAccessibleColumnHeaders(  )
156cdf0e10cSrcweir 		throw (::com::sun::star::uno::RuntimeException);
157cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL
158cdf0e10cSrcweir 		getSelectedAccessibleRows(  )
159cdf0e10cSrcweir 		throw (::com::sun::star::uno::RuntimeException);
160cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL
161cdf0e10cSrcweir 		getSelectedAccessibleColumns(  )
162cdf0e10cSrcweir 		throw (::com::sun::star::uno::RuntimeException);
163cdf0e10cSrcweir     virtual sal_Bool SAL_CALL isAccessibleRowSelected( sal_Int32 nRow )
164cdf0e10cSrcweir 		throw (::com::sun::star::lang::IndexOutOfBoundsException,
165cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException);
166cdf0e10cSrcweir     virtual sal_Bool SAL_CALL isAccessibleColumnSelected( sal_Int32 nColumn )
167cdf0e10cSrcweir 		throw (::com::sun::star::lang::IndexOutOfBoundsException,
168cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException);
169cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
170cdf0e10cSrcweir 		::com::sun::star::accessibility::XAccessible > SAL_CALL
171cdf0e10cSrcweir 		getAccessibleCellAt( sal_Int32 nRow, sal_Int32 nColumn )
172cdf0e10cSrcweir 		throw (::com::sun::star::lang::IndexOutOfBoundsException,
173cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException);
174cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
175cdf0e10cSrcweir 		::com::sun::star::accessibility::XAccessible > SAL_CALL
176cdf0e10cSrcweir 		getAccessibleCaption(  )
177cdf0e10cSrcweir 		throw (::com::sun::star::uno::RuntimeException);
178cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
179cdf0e10cSrcweir 		::com::sun::star::accessibility::XAccessible > SAL_CALL
180cdf0e10cSrcweir 		getAccessibleSummary(  )
181cdf0e10cSrcweir 		throw (::com::sun::star::uno::RuntimeException);
182cdf0e10cSrcweir     virtual sal_Bool SAL_CALL isAccessibleSelected(
183cdf0e10cSrcweir 			sal_Int32 nRow, sal_Int32 nColumn )
184cdf0e10cSrcweir 		throw (::com::sun::star::lang::IndexOutOfBoundsException,
185cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException);
186cdf0e10cSrcweir     virtual sal_Int32 SAL_CALL getAccessibleIndex(
187cdf0e10cSrcweir 			sal_Int32 nRow, sal_Int32 nColumn )
188cdf0e10cSrcweir 		throw (::com::sun::star::lang::IndexOutOfBoundsException,
189cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException);
190cdf0e10cSrcweir     virtual sal_Int32 SAL_CALL getAccessibleRow( sal_Int32 nChildIndex )
191cdf0e10cSrcweir 		throw (::com::sun::star::lang::IndexOutOfBoundsException,
192cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException);
193cdf0e10cSrcweir     virtual sal_Int32 SAL_CALL getAccessibleColumn( sal_Int32 nChildIndex )
194cdf0e10cSrcweir 		throw (::com::sun::star::lang::IndexOutOfBoundsException,
195cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException);
196ca62e2c2SSteve Yin 	//=====  XAccessibleTableSelection  ============================================
197ca62e2c2SSteve Yin 	virtual sal_Bool SAL_CALL selectRow( sal_Int32 row )
198ca62e2c2SSteve Yin 		throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) ;
199ca62e2c2SSteve Yin     virtual sal_Bool SAL_CALL selectColumn( sal_Int32 column )
200ca62e2c2SSteve Yin 		throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) ;
201ca62e2c2SSteve Yin     virtual sal_Bool SAL_CALL unselectRow( sal_Int32 row )
202ca62e2c2SSteve Yin 		throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) ;
203ca62e2c2SSteve Yin     virtual sal_Bool SAL_CALL unselectColumn( sal_Int32 column )
204ca62e2c2SSteve Yin 		throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) ;
205cdf0e10cSrcweir 	//=====  XServiceInfo  ====================================================
206cdf0e10cSrcweir 
207cdf0e10cSrcweir     /**	Returns an identifier for the implementation of this object.
208cdf0e10cSrcweir     */
209cdf0e10cSrcweir 	virtual ::rtl::OUString SAL_CALL
210cdf0e10cSrcweir     	getImplementationName (void)
211cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
212cdf0e10cSrcweir 
213cdf0e10cSrcweir     /**	Return whether the specified service is supported by this class.
214cdf0e10cSrcweir     */
215cdf0e10cSrcweir     virtual sal_Bool SAL_CALL
216cdf0e10cSrcweir     	supportsService (const ::rtl::OUString& sServiceName)
217cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
218cdf0e10cSrcweir 
219cdf0e10cSrcweir     /** Returns a list of all supported services.  In this case that is just
220cdf0e10cSrcweir     	the AccessibleContext service.
221cdf0e10cSrcweir     */
222cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL
223cdf0e10cSrcweir     	getSupportedServiceNames (void)
224cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
225cdf0e10cSrcweir 
226cdf0e10cSrcweir 	//===== C++ interface ======================================================
227cdf0e10cSrcweir 
228cdf0e10cSrcweir 	// The object has been moved by the layout
229cdf0e10cSrcweir 	virtual void InvalidatePosOrSize( const SwRect& rOldBox );
230cdf0e10cSrcweir 
231cdf0e10cSrcweir 	// The object is not visible an longer and should be destroyed
232cdf0e10cSrcweir 	virtual void Dispose( sal_Bool bRecursive = sal_False );
233cdf0e10cSrcweir 
234cdf0e10cSrcweir     virtual void DisposeChild( const sw::access::SwAccessibleChild& rFrmOrObj,
235cdf0e10cSrcweir                                sal_Bool bRecursive );
236cdf0e10cSrcweir     virtual void InvalidateChildPosOrSize( const sw::access::SwAccessibleChild& rFrmOrObj,
237cdf0e10cSrcweir                                            const SwRect& rFrm );
238cdf0e10cSrcweir 
239cdf0e10cSrcweir 	//=====  XAccessibleSelection  ============================================
240cdf0e10cSrcweir 
241cdf0e10cSrcweir     virtual void SAL_CALL selectAccessibleChild(
242cdf0e10cSrcweir         sal_Int32 nChildIndex )
243cdf0e10cSrcweir         throw ( ::com::sun::star::lang::IndexOutOfBoundsException,
244cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException );
245cdf0e10cSrcweir 
246cdf0e10cSrcweir     virtual sal_Bool SAL_CALL isAccessibleChildSelected(
247cdf0e10cSrcweir         sal_Int32 nChildIndex )
248cdf0e10cSrcweir         throw ( ::com::sun::star::lang::IndexOutOfBoundsException,
249cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException );
250cdf0e10cSrcweir 
251cdf0e10cSrcweir     virtual void SAL_CALL clearAccessibleSelection(  )
252cdf0e10cSrcweir         throw ( ::com::sun::star::uno::RuntimeException );
253cdf0e10cSrcweir 
254cdf0e10cSrcweir     virtual void SAL_CALL selectAllAccessibleChildren(  )
255cdf0e10cSrcweir         throw ( ::com::sun::star::uno::RuntimeException );
256cdf0e10cSrcweir 
257cdf0e10cSrcweir     virtual sal_Int32 SAL_CALL getSelectedAccessibleChildCount(  )
258cdf0e10cSrcweir         throw ( ::com::sun::star::uno::RuntimeException );
259cdf0e10cSrcweir 
260cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild(
261cdf0e10cSrcweir         sal_Int32 nSelectedChildIndex )
262cdf0e10cSrcweir         throw ( ::com::sun::star::lang::IndexOutOfBoundsException,
263cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
264cdf0e10cSrcweir 
265cdf0e10cSrcweir     // --> OD 2004-11-16 #111714# - index has to be treated as global child index.
266cdf0e10cSrcweir     virtual void SAL_CALL deselectAccessibleChild(
267cdf0e10cSrcweir         sal_Int32 nChildIndex )
268cdf0e10cSrcweir         throw ( ::com::sun::star::lang::IndexOutOfBoundsException,
269cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException );
270cdf0e10cSrcweir 
271ca62e2c2SSteve Yin 	//=====  XAccessibleComponent  ============================================
272ca62e2c2SSteve Yin 	sal_Int32 SAL_CALL getBackground()
273ca62e2c2SSteve Yin 		throw (::com::sun::star::uno::RuntimeException);
274ca62e2c2SSteve Yin 	typedef std::vector<const SwAccessibleContext*> VEC_CELL;
275ca62e2c2SSteve Yin 	VEC_CELL m_vecCellAdd;
276ca62e2c2SSteve Yin 	VEC_CELL m_vecCellRemove;
277ca62e2c2SSteve Yin 	void FireSelectionEvent( );
278ca62e2c2SSteve Yin 	void ClearSelectionCellCache();
279ca62e2c2SSteve Yin 	void AddSelectionCell(const SwAccessibleContext* ,sal_Bool bAddOrRemove);
280cdf0e10cSrcweir };
281cdf0e10cSrcweir 
GetTableData()282cdf0e10cSrcweir inline SwAccessibleTableData_Impl& SwAccessibleTable::GetTableData()
283cdf0e10cSrcweir {
284cdf0e10cSrcweir 	if( !mpTableData )
285cdf0e10cSrcweir 		UpdateTableData();
286cdf0e10cSrcweir 	return *mpTableData;
287cdf0e10cSrcweir }
288cdf0e10cSrcweir 
289cdf0e10cSrcweir // --> OD 2007-06-28 #i77106#
290cdf0e10cSrcweir // subclass to represent table column headers
291cdf0e10cSrcweir class SwAccessibleTableColHeaders : public SwAccessibleTable
292cdf0e10cSrcweir {
293cdf0e10cSrcweir protected:
294cdf0e10cSrcweir 
~SwAccessibleTableColHeaders()295cdf0e10cSrcweir     virtual ~SwAccessibleTableColHeaders()
296cdf0e10cSrcweir     {}
297cdf0e10cSrcweir 
298cdf0e10cSrcweir     virtual SwAccessibleTableData_Impl* CreateNewTableData();
299cdf0e10cSrcweir     virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew);
300cdf0e10cSrcweir 
301cdf0e10cSrcweir public:
302cdf0e10cSrcweir 
303cdf0e10cSrcweir     SwAccessibleTableColHeaders( SwAccessibleMap *pMap, const SwTabFrm *pTabFrm );
304cdf0e10cSrcweir 
305cdf0e10cSrcweir     //=====  XInterface  ======================================================
306cdf0e10cSrcweir 
307cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
308cdf0e10cSrcweir         const ::com::sun::star::uno::Type& aType )
309cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
310cdf0e10cSrcweir 
acquire()311cdf0e10cSrcweir     virtual void SAL_CALL acquire(  ) throw ()
312cdf0e10cSrcweir         { SwAccessibleContext::acquire(); };
313cdf0e10cSrcweir 
release()314cdf0e10cSrcweir     virtual void SAL_CALL release(  ) throw ()
315cdf0e10cSrcweir         { SwAccessibleContext::release(); };
316cdf0e10cSrcweir 
317cdf0e10cSrcweir     //=====  XAccessibleContext  ==============================================
318cdf0e10cSrcweir 
319cdf0e10cSrcweir     /// Return the number of currently visible children.
320cdf0e10cSrcweir     virtual sal_Int32 SAL_CALL getAccessibleChildCount (void)
321cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
322cdf0e10cSrcweir 
323cdf0e10cSrcweir     /// Return the specified child or NULL if index is invalid.
324cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL
325cdf0e10cSrcweir         getAccessibleChild (sal_Int32 nIndex)
326cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException,
327cdf0e10cSrcweir                 ::com::sun::star::lang::IndexOutOfBoundsException);
328cdf0e10cSrcweir 
329cdf0e10cSrcweir     //=====  XAccessibleTable  ================================================
330cdf0e10cSrcweir 
331cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
332cdf0e10cSrcweir                 ::com::sun::star::accessibility::XAccessibleTable >
333cdf0e10cSrcweir         SAL_CALL getAccessibleRowHeaders(  )
334cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
335cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
336cdf0e10cSrcweir                 ::com::sun::star::accessibility::XAccessibleTable >
337cdf0e10cSrcweir         SAL_CALL getAccessibleColumnHeaders(  )
338cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
339cdf0e10cSrcweir 
340cdf0e10cSrcweir     //=====  XServiceInfo  ====================================================
341cdf0e10cSrcweir 
342cdf0e10cSrcweir     /** Returns an identifier for the implementation of this object.
343cdf0e10cSrcweir     */
344cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL
345cdf0e10cSrcweir         getImplementationName (void)
346cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
347cdf0e10cSrcweir 
348cdf0e10cSrcweir };
349cdf0e10cSrcweir // <--
350cdf0e10cSrcweir #endif
351