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 :
20 : #include <svtools/brwbox.hxx>
21 : #include <svtools/AccessibleBrowseBoxObjType.hxx>
22 : #include <tools/debug.hxx>
23 : #include <tools/multisel.hxx>
24 : #include "datwin.hxx"
25 : #include "brwimpl.hxx"
26 : #include <com/sun/star/accessibility/AccessibleStateType.hpp>
27 : #include <com/sun/star/accessibility/AccessibleRole.hpp>
28 : #include <toolkit/helper/vclunohelper.hxx>
29 :
30 : // Accessibility ==============================================================
31 :
32 : using namespace ::com::sun::star::uno;
33 : using ::com::sun::star::accessibility::XAccessible;
34 : using namespace ::com::sun::star::accessibility;
35 :
36 : // ============================================================================
37 : namespace svt
38 : {
39 : using namespace ::com::sun::star::lang;
40 : using namespace utl;
41 :
42 0 : Reference< XAccessible > getHeaderCell( BrowseBoxImpl::THeaderCellMap& _raHeaderCells,
43 : sal_Int32 _nPos,
44 : AccessibleBrowseBoxObjType _eType,
45 : const Reference< XAccessible >& _rParent,
46 : BrowseBox& _rBrowseBox,
47 : IAccessibleFactory& rFactory
48 : )
49 : {
50 0 : Reference< XAccessible > xRet;
51 0 : BrowseBoxImpl::THeaderCellMap::iterator aFind = _raHeaderCells.find( _nPos );
52 0 : if ( aFind == _raHeaderCells.end() )
53 : {
54 : Reference< XAccessible > xAccessible = rFactory.createAccessibleBrowseBoxHeaderCell(
55 : _nPos,
56 : _rParent,
57 : _rBrowseBox,
58 : NULL,
59 : _eType
60 0 : );
61 0 : aFind = _raHeaderCells.insert( BrowseBoxImpl::THeaderCellMap::value_type( _nPos, xAccessible ) ).first;
62 : }
63 0 : if ( aFind != _raHeaderCells.end() )
64 0 : xRet = aFind->second;
65 0 : return xRet;
66 : }
67 :
68 : // ============================================================================
69 : // ----------------------------------------------------------------------------
70 0 : Reference< XAccessible > BrowseBoxImpl::getAccessibleHeaderBar( AccessibleBrowseBoxObjType _eObjType )
71 : {
72 0 : if ( m_pAccessible && m_pAccessible->isAlive() )
73 0 : return m_pAccessible->getHeaderBar( _eObjType );
74 0 : return NULL;
75 : }
76 :
77 : // ----------------------------------------------------------------------------
78 0 : Reference< XAccessible > BrowseBoxImpl::getAccessibleTable( )
79 : {
80 0 : if ( m_pAccessible && m_pAccessible->isAlive() )
81 0 : return m_pAccessible->getTable( );
82 0 : return NULL;
83 : }
84 : }
85 :
86 : // ============================================================================
87 :
88 0 : Reference< XAccessible > BrowseBox::CreateAccessible()
89 : {
90 0 : Window* pParent = GetAccessibleParentWindow();
91 : DBG_ASSERT( pParent, "BrowseBox::CreateAccessible - parent not found" );
92 :
93 0 : if( pParent && !m_pImpl->m_pAccessible)
94 : {
95 0 : Reference< XAccessible > xAccParent = pParent->GetAccessible();
96 0 : if( xAccParent.is() )
97 : {
98 0 : m_pImpl->m_pAccessible = getAccessibleFactory().createAccessibleBrowseBox(
99 : xAccParent, *this
100 0 : );
101 0 : }
102 : }
103 :
104 0 : Reference< XAccessible > xAccessible;
105 0 : if ( m_pImpl->m_pAccessible )
106 0 : xAccessible = m_pImpl->m_pAccessible->getMyself();
107 :
108 0 : return xAccessible;
109 : }
110 : // -----------------------------------------------------------------------------
111 :
112 : // Children -------------------------------------------------------------------
113 :
114 0 : Reference< XAccessible > BrowseBox::CreateAccessibleCell( sal_Int32 _nRow, sal_uInt16 _nColumnPos )
115 : {
116 : // BBINDEX_TABLE must be the table
117 : OSL_ENSURE(m_pImpl->m_pAccessible,"Invalid call: Accessible is null");
118 :
119 0 : return m_pImpl->m_aFactoryAccess.getFactory().createAccessibleBrowseBoxTableCell(
120 : m_pImpl->getAccessibleTable(),
121 : *this,
122 : NULL,
123 : _nRow,
124 : _nColumnPos,
125 : OFFSET_DEFAULT
126 0 : );
127 : }
128 : // -----------------------------------------------------------------------------
129 :
130 0 : Reference< XAccessible > BrowseBox::CreateAccessibleRowHeader( sal_Int32 _nRow )
131 : {
132 : return svt::getHeaderCell(
133 0 : m_pImpl->m_aRowHeaderCellMap,
134 : _nRow,
135 : svt::BBTYPE_ROWHEADERCELL,
136 : m_pImpl->getAccessibleHeaderBar(svt::BBTYPE_ROWHEADERBAR),
137 : *this,
138 0 : m_pImpl->m_aFactoryAccess.getFactory()
139 0 : );
140 : }
141 : // -----------------------------------------------------------------------------
142 :
143 0 : Reference< XAccessible > BrowseBox::CreateAccessibleColumnHeader( sal_uInt16 _nColumnPos )
144 : {
145 : return svt::getHeaderCell(
146 0 : m_pImpl->m_aColHeaderCellMap,
147 : _nColumnPos,
148 : svt::BBTYPE_COLUMNHEADERCELL,
149 : m_pImpl->getAccessibleHeaderBar(svt::BBTYPE_COLUMNHEADERBAR),
150 : *this,
151 0 : m_pImpl->m_aFactoryAccess.getFactory()
152 0 : );
153 : }
154 : // -----------------------------------------------------------------------------
155 :
156 0 : sal_Int32 BrowseBox::GetAccessibleControlCount() const
157 : {
158 0 : return 0;
159 : }
160 : // -----------------------------------------------------------------------------
161 :
162 0 : Reference< XAccessible > BrowseBox::CreateAccessibleControl( sal_Int32 )
163 : {
164 : DBG_ASSERT( sal_False, "BrowseBox::CreateAccessibleControl: to be overwritten!" );
165 0 : return NULL;
166 : }
167 : // -----------------------------------------------------------------------------
168 :
169 : // Conversions ----------------------------------------------------------------
170 :
171 0 : sal_Bool BrowseBox::ConvertPointToCellAddress(
172 : sal_Int32& rnRow, sal_uInt16& rnColumnPos, const Point& rPoint )
173 : {
174 : //! TODO has to be checked
175 0 : rnRow = GetRowAtYPosPixel(rPoint.Y());
176 0 : rnColumnPos = GetColumnAtXPosPixel(rPoint.X());
177 0 : return rnRow != BROWSER_INVALIDID && rnColumnPos != BROWSER_INVALIDID;
178 : }
179 : // -----------------------------------------------------------------------------
180 :
181 0 : sal_Bool BrowseBox::ConvertPointToRowHeader( sal_Int32& rnRow, const Point& rPoint )
182 : {
183 0 : rnRow = GetRowAtYPosPixel(rPoint.Y());
184 : // sal_uInt16 nColumnId = GetColumnAtXPosPixel(rPoint.X());
185 0 : return rnRow != BROWSER_INVALIDID;// && nColumnId == 0;
186 : }
187 : // -----------------------------------------------------------------------------
188 :
189 0 : sal_Bool BrowseBox::ConvertPointToColumnHeader( sal_uInt16& _rnColumnPos, const Point& _rPoint )
190 : {
191 0 : _rnColumnPos = GetColumnAtXPosPixel(_rPoint.X());
192 0 : return _rnColumnPos != BROWSER_INVALIDID;
193 : }
194 : // -----------------------------------------------------------------------------
195 :
196 0 : sal_Bool BrowseBox::ConvertPointToControlIndex( sal_Int32& _rnIndex, const Point& _rPoint )
197 : {
198 : //! TODO has to be checked
199 0 : sal_Int32 nRow = 0;
200 0 : sal_uInt16 nColumn = 0;
201 0 : sal_Bool bRet = ConvertPointToCellAddress(nRow,nColumn,_rPoint);
202 0 : if ( bRet )
203 0 : _rnIndex = nRow * ColCount() + nColumn;
204 :
205 0 : return bRet;
206 : }
207 : // -----------------------------------------------------------------------------
208 :
209 : // Object data and state ------------------------------------------------------
210 :
211 0 : OUString BrowseBox::GetAccessibleObjectName( ::svt::AccessibleBrowseBoxObjType eObjType,sal_Int32 ) const
212 : {
213 0 : OUString aRetText;
214 0 : switch( eObjType )
215 : {
216 : case ::svt::BBTYPE_BROWSEBOX:
217 0 : aRetText = OUString( "BrowseBox" );
218 0 : break;
219 : case ::svt::BBTYPE_TABLE:
220 0 : aRetText = OUString( "Table" );
221 0 : break;
222 : case ::svt::BBTYPE_ROWHEADERBAR:
223 0 : aRetText = OUString( "RowHeaderBar" );
224 0 : break;
225 : case ::svt::BBTYPE_COLUMNHEADERBAR:
226 0 : aRetText = OUString( "ColumnHeaderBar" );
227 0 : break;
228 : case ::svt::BBTYPE_TABLECELL:
229 0 : aRetText = OUString( "TableCell" );
230 : #if OSL_DEBUG_LEVEL > 1
231 : aRetText += " [";
232 : aRetText += OUString::valueOf(sal_Int32(GetCurRow()));
233 : aRetText += ",";
234 : aRetText += OUString::valueOf(sal_Int32(GetCurColumnId()));
235 : aRetText += "]";
236 : #endif
237 0 : break;
238 : case ::svt::BBTYPE_ROWHEADERCELL:
239 0 : aRetText = OUString( "RowHeaderCell" );
240 : #if OSL_DEBUG_LEVEL > 1
241 : aRetText += " [";
242 : aRetText += OUString::valueOf(sal_Int32(GetCurRow()));
243 : aRetText += ",";
244 : aRetText += OUString::valueOf(sal_Int32(GetCurColumnId()));
245 : aRetText += "]";
246 : #endif
247 0 : break;
248 : case ::svt::BBTYPE_COLUMNHEADERCELL:
249 0 : aRetText = OUString( "ColumnHeaderCell" );
250 : #if OSL_DEBUG_LEVEL > 1
251 : aRetText += " [";
252 : aRetText += OUString::valueOf(sal_Int32(GetCurRow()));
253 : aRetText += ",";
254 : aRetText += OUString::valueOf(sal_Int32(GetCurColumnId()));
255 : aRetText += "]";
256 : #endif
257 0 : break;
258 : default:
259 : OSL_FAIL("BrowseBox::GetAccessibleName: invalid enum!");
260 : }
261 0 : return aRetText;
262 : }
263 : // -----------------------------------------------------------------------------
264 :
265 0 : OUString BrowseBox::GetAccessibleObjectDescription( ::svt::AccessibleBrowseBoxObjType eObjType,sal_Int32 ) const
266 : {
267 0 : OUString aRetText;
268 0 : switch( eObjType )
269 : {
270 : case ::svt::BBTYPE_BROWSEBOX:
271 0 : aRetText = OUString( "BrowseBox description" );
272 0 : break;
273 : case ::svt::BBTYPE_TABLE:
274 : // aRetText = OUString( "TABLE description" );
275 0 : break;
276 : case ::svt::BBTYPE_ROWHEADERBAR:
277 : // aRetText = OUString( "ROWHEADERBAR description" );
278 0 : break;
279 : case ::svt::BBTYPE_COLUMNHEADERBAR:
280 : // aRetText = OUString( "COLUMNHEADERBAR description" );
281 0 : break;
282 : case ::svt::BBTYPE_TABLECELL:
283 : // aRetText = OUString( "TABLECELL description" );
284 0 : break;
285 : case ::svt::BBTYPE_ROWHEADERCELL:
286 : // aRetText = OUString( "ROWHEADERCELL description" );
287 0 : break;
288 : case ::svt::BBTYPE_COLUMNHEADERCELL:
289 : // aRetText = OUString( "COLUMNHEADERCELL description" );
290 0 : break;
291 : case ::svt::BBTYPE_CHECKBOXCELL:
292 0 : break;
293 : }
294 0 : return aRetText;
295 : }
296 : // -----------------------------------------------------------------------------
297 :
298 0 : OUString BrowseBox::GetRowDescription( sal_Int32 ) const
299 : {
300 0 : return OUString();
301 : }
302 : // -----------------------------------------------------------------------------
303 :
304 0 : OUString BrowseBox::GetColumnDescription( sal_uInt16 _nColumn ) const
305 : {
306 0 : return OUString( GetColumnTitle( GetColumnId( _nColumn ) ) );
307 : }
308 :
309 : // -----------------------------------------------------------------------------
310 :
311 0 : void BrowseBox::FillAccessibleStateSet(
312 : ::utl::AccessibleStateSetHelper& rStateSet,
313 : ::svt::AccessibleBrowseBoxObjType eObjType ) const
314 : {
315 0 : switch( eObjType )
316 : {
317 : case ::svt::BBTYPE_BROWSEBOX:
318 : case ::svt::BBTYPE_TABLE:
319 :
320 0 : rStateSet.AddState( AccessibleStateType::FOCUSABLE );
321 0 : if ( HasFocus() )
322 0 : rStateSet.AddState( AccessibleStateType::FOCUSED );
323 0 : if ( IsActive() )
324 0 : rStateSet.AddState( AccessibleStateType::ACTIVE );
325 0 : if ( GetUpdateMode() )
326 0 : rStateSet.AddState( AccessibleStateType::EDITABLE );
327 0 : if ( IsEnabled() )
328 : {
329 0 : rStateSet.AddState( AccessibleStateType::ENABLED );
330 0 : rStateSet.AddState( AccessibleStateType::SENSITIVE );
331 : }
332 0 : if ( IsReallyVisible() )
333 0 : rStateSet.AddState( AccessibleStateType::VISIBLE );
334 0 : if ( eObjType == ::svt::BBTYPE_TABLE )
335 0 : rStateSet.AddState( AccessibleStateType::MANAGES_DESCENDANTS );
336 :
337 0 : break;
338 : case ::svt::BBTYPE_ROWHEADERBAR:
339 0 : rStateSet.AddState( AccessibleStateType::FOCUSABLE );
340 0 : rStateSet.AddState( AccessibleStateType::VISIBLE );
341 0 : if ( GetSelectRowCount() )
342 0 : rStateSet.AddState( AccessibleStateType::FOCUSED );
343 0 : rStateSet.AddState( AccessibleStateType::MANAGES_DESCENDANTS );
344 0 : break;
345 : case ::svt::BBTYPE_COLUMNHEADERBAR:
346 0 : rStateSet.AddState( AccessibleStateType::FOCUSABLE );
347 0 : rStateSet.AddState( AccessibleStateType::VISIBLE );
348 0 : if ( GetSelectColumnCount() )
349 0 : rStateSet.AddState( AccessibleStateType::FOCUSED );
350 0 : rStateSet.AddState( AccessibleStateType::MANAGES_DESCENDANTS );
351 0 : break;
352 : case ::svt::BBTYPE_TABLECELL:
353 : {
354 0 : sal_Int32 nRow = GetCurRow();
355 0 : sal_uInt16 nColumn = GetCurColumnId();
356 0 : if ( IsFieldVisible(nRow,nColumn) )
357 0 : rStateSet.AddState( AccessibleStateType::VISIBLE );
358 0 : if ( !IsFrozen( nColumn ) )
359 0 : rStateSet.AddState( AccessibleStateType::FOCUSABLE );
360 0 : rStateSet.AddState( AccessibleStateType::TRANSIENT );
361 : }
362 0 : break;
363 : case ::svt::BBTYPE_ROWHEADERCELL:
364 : case ::svt::BBTYPE_COLUMNHEADERCELL:
365 : case ::svt::BBTYPE_CHECKBOXCELL:
366 : OSL_FAIL("Illegal call here!");
367 0 : break;
368 : }
369 0 : }
370 : // -----------------------------------------------------------------------
371 0 : void BrowseBox::FillAccessibleStateSetForCell( ::utl::AccessibleStateSetHelper& _rStateSet,
372 : sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const
373 : {
374 : //! TODO check if the state is valid for table cells
375 0 : if ( IsCellVisible( _nRow, _nColumnPos ) )
376 0 : _rStateSet.AddState( AccessibleStateType::VISIBLE );
377 0 : if ( GetCurrRow() == _nRow && GetCurrColumn() == _nColumnPos )
378 0 : _rStateSet.AddState( AccessibleStateType::FOCUSED );
379 : else // only transient when column is not focused
380 0 : _rStateSet.AddState( AccessibleStateType::TRANSIENT );
381 0 : }
382 : // -----------------------------------------------------------------------------
383 :
384 0 : void BrowseBox::GrabTableFocus()
385 : {
386 0 : GrabFocus();
387 0 : }
388 : // -----------------------------------------------------------------------------
389 0 : String BrowseBox::GetCellText(long, sal_uInt16 ) const
390 : {
391 : DBG_ASSERT(0,"This method has to be implemented by the derived classes! BUG!!");
392 0 : return String();
393 : }
394 :
395 : // -----------------------------------------------------------------------------
396 0 : void BrowseBox::commitHeaderBarEvent(sal_Int16 nEventId,
397 : const Any& rNewValue, const Any& rOldValue, sal_Bool _bColumnHeaderBar )
398 : {
399 0 : if ( isAccessibleAlive() )
400 0 : m_pImpl->m_pAccessible->commitHeaderBarEvent( nEventId,
401 0 : rNewValue, rOldValue, _bColumnHeaderBar );
402 0 : }
403 :
404 : // -----------------------------------------------------------------------------
405 0 : void BrowseBox::commitTableEvent( sal_Int16 _nEventId, const Any& _rNewValue, const Any& _rOldValue )
406 : {
407 0 : if ( isAccessibleAlive() )
408 0 : m_pImpl->m_pAccessible->commitTableEvent( _nEventId, _rNewValue, _rOldValue );
409 0 : }
410 : // -----------------------------------------------------------------------------
411 0 : void BrowseBox::commitBrowseBoxEvent( sal_Int16 _nEventId, const Any& _rNewValue, const Any& _rOldValue )
412 : {
413 0 : if ( isAccessibleAlive() )
414 0 : m_pImpl->m_pAccessible->commitEvent( _nEventId, _rNewValue, _rOldValue);
415 0 : }
416 :
417 : // -----------------------------------------------------------------------------
418 0 : ::svt::IAccessibleFactory& BrowseBox::getAccessibleFactory()
419 : {
420 0 : return m_pImpl->m_aFactoryAccess.getFactory();
421 : }
422 :
423 : // -----------------------------------------------------------------------------
424 48 : sal_Bool BrowseBox::isAccessibleAlive( ) const
425 : {
426 48 : return ( NULL != m_pImpl->m_pAccessible ) && m_pImpl->m_pAccessible->isAlive();
427 : }
428 : // -----------------------------------------------------------------------------
429 : // IAccessibleTableProvider
430 : // -----------------------------------------------------------------------------
431 0 : sal_Int32 BrowseBox::GetCurrRow() const
432 : {
433 0 : return GetCurRow();
434 : }
435 : // -----------------------------------------------------------------------------
436 0 : sal_uInt16 BrowseBox::GetCurrColumn() const
437 : {
438 0 : return GetColumnPos( GetCurColumnId() );
439 : }
440 : // -----------------------------------------------------------------------------
441 0 : sal_Bool BrowseBox::HasRowHeader() const
442 : {
443 0 : return ( GetColumnId( 0 ) == HandleColumnId ); // HandleColumn == RowHeader
444 : }
445 : // -----------------------------------------------------------------------------
446 0 : sal_Bool BrowseBox::IsCellFocusable() const
447 : {
448 0 : return sal_True;
449 : }
450 : // -----------------------------------------------------------------------------
451 0 : sal_Bool BrowseBox::GoToCell( sal_Int32 _nRow, sal_uInt16 _nColumn )
452 : {
453 0 : return GoToRowColumnId( _nRow, GetColumnId( _nColumn ) );
454 : }
455 : // -----------------------------------------------------------------------------
456 0 : void BrowseBox::SelectColumn( sal_uInt16 _nColumn, sal_Bool _bSelect )
457 : {
458 0 : SelectColumnPos( _nColumn, _bSelect );
459 0 : }
460 : // -----------------------------------------------------------------------------
461 0 : sal_Bool BrowseBox::IsColumnSelected( long _nColumn ) const
462 : {
463 0 : return ( pColSel && (0 <= _nColumn) && (_nColumn <= 0xFFF) ) ?
464 0 : pColSel->IsSelected( static_cast< sal_uInt16 >( _nColumn ) ) :
465 0 : sal_False;
466 : }
467 : // -----------------------------------------------------------------------------
468 0 : sal_Int32 BrowseBox::GetSelectedRowCount() const
469 : {
470 0 : return GetSelectRowCount();
471 : }
472 : // -----------------------------------------------------------------------------
473 23 : sal_Int32 BrowseBox::GetSelectedColumnCount() const
474 : {
475 23 : const MultiSelection* pColumnSel = GetColumnSelection();
476 23 : return pColumnSel ? pColumnSel->GetSelectCount() : 0;
477 : }
478 : // -----------------------------------------------------------------------------
479 0 : void BrowseBox::GetAllSelectedRows( ::com::sun::star::uno::Sequence< sal_Int32 >& _rRows ) const
480 : {
481 0 : sal_Int32 nCount = GetSelectRowCount();
482 0 : if( nCount )
483 : {
484 0 : _rRows.realloc( nCount );
485 0 : _rRows[ 0 ] = const_cast< BrowseBox* >( this )->FirstSelectedRow();
486 0 : for( sal_Int32 nIndex = 1; nIndex < nCount; ++nIndex )
487 0 : _rRows[ nIndex ] = const_cast< BrowseBox* >( this )->NextSelectedRow();
488 : DBG_ASSERT( const_cast< BrowseBox* >( this )->NextSelectedRow() == BROWSER_ENDOFSELECTION,
489 : "BrowseBox::GetAllSelectedRows - too many selected rows found" );
490 : }
491 0 : }
492 : // -----------------------------------------------------------------------------
493 0 : void BrowseBox::GetAllSelectedColumns( ::com::sun::star::uno::Sequence< sal_Int32 >& _rColumns ) const
494 : {
495 0 : const MultiSelection* pColumnSel = GetColumnSelection();
496 0 : sal_Int32 nCount = GetSelectedColumnCount();
497 0 : if( pColumnSel && nCount )
498 : {
499 0 : _rColumns.realloc( nCount );
500 :
501 0 : sal_Int32 nIndex = 0;
502 0 : sal_uInt32 nRangeCount = pColumnSel->GetRangeCount();
503 0 : for( sal_uInt32 nRange = 0; nRange < nRangeCount; ++nRange )
504 : {
505 0 : const Range& rRange = pColumnSel->GetRange( nRange );
506 : // loop has to include aRange.Max()
507 0 : for( sal_Int32 nCol = rRange.Min(); nCol <= rRange.Max(); ++nCol )
508 : {
509 : DBG_ASSERT( nIndex < nCount,
510 : "GetAllSelectedColumns - range overflow" );
511 0 : _rColumns[ nIndex ] = nCol;
512 0 : ++nIndex;
513 : }
514 : }
515 : }
516 0 : }
517 : // -----------------------------------------------------------------------------
518 0 : sal_Bool BrowseBox::IsCellVisible( sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const
519 : {
520 0 : return IsFieldVisible( _nRow, GetColumnId( _nColumnPos ) );
521 : }
522 : // -----------------------------------------------------------------------------
523 0 : String BrowseBox::GetAccessibleCellText(long _nRow, sal_uInt16 _nColPos) const
524 : {
525 0 : return GetCellText( _nRow, GetColumnId( _nColPos ) );
526 : }
527 :
528 : // -----------------------------------------------------------------------------
529 0 : sal_Bool BrowseBox::GetGlyphBoundRects( const Point& rOrigin, const String& rStr, int nIndex, int nLen, int nBase, MetricVector& rVector )
530 : {
531 0 : return Control::GetGlyphBoundRects( rOrigin, rStr, nIndex, nLen, nBase, rVector );
532 : }
533 : // -----------------------------------------------------------------------------
534 0 : Rectangle BrowseBox::GetWindowExtentsRelative( Window *pRelativeWindow ) const
535 : {
536 0 : return Control::GetWindowExtentsRelative( pRelativeWindow );
537 : }
538 : // -----------------------------------------------------------------------------
539 0 : void BrowseBox::GrabFocus()
540 : {
541 0 : Control::GrabFocus();
542 0 : }
543 : // -----------------------------------------------------------------------------
544 0 : Reference< XAccessible > BrowseBox::GetAccessible( sal_Bool bCreate )
545 : {
546 0 : return Control::GetAccessible( bCreate );
547 : }
548 : // -----------------------------------------------------------------------------
549 0 : Window* BrowseBox::GetAccessibleParentWindow() const
550 : {
551 0 : return Control::GetAccessibleParentWindow();
552 : }
553 : // -----------------------------------------------------------------------------
554 0 : Window* BrowseBox::GetWindowInstance()
555 : {
556 0 : return this;
557 465 : }
558 :
559 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|