diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2009-09-17 17:24:45 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2009-09-17 17:24:45 +0000 |
commit | f2dcf93f81814785fc362c256692822c282c5a42 (patch) | |
tree | b6cfaac141c43f475d3e027e946dc2d2ae23e222 /accessibility | |
parent | bbe92a255fbc7ce2e84fbc69e215d1950982056a (diff) |
CWS-TOOLING: integrate CWS a11y32
2009-09-08 11:46:26 +0200 tl r275921 : #i74816# use hi-contrast for all but for printer; namely use it for virtual devices as well
2009-08-25 10:14:46 +0200 tl r275337 : CWS-TOOLING: rebase CWS a11y32 to trunk@274622 (milestone: DEV300:m54)
2009-08-17 11:13:19 +0200 ab r275036 : #i71360# Added attribute support for misspelled
2009-07-24 14:28:11 +0200 tl r274306 : #i48354# fixed hierarchy order in SvHeaderTabListBox
2009-07-24 13:47:40 +0200 mav r274305 : #i102870# let roadmap control behave as a monolite tabstop control
2009-07-24 13:47:06 +0200 mav r274304 : #i102870# let roadmap control behave as a monolite tabstop control
2009-07-24 13:46:33 +0200 mav r274303 : #i102870# let roadmap control behave as a monolite tabstop control
2009-07-24 09:41:16 +0200 tl r274289 : #i74816# fixed evaluation of high-contrast-mode
2009-07-22 15:46:50 +0200 tl r274246 : warning-free-code fix when build with debug=t
2009-07-22 15:28:59 +0200 tl r274243 : #i74816# fixed evaluation of high-contrast-mode
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/extended/accessibletablistbox.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/accessibility/source/extended/accessibletablistbox.cxx b/accessibility/source/extended/accessibletablistbox.cxx index b02d4db0a..439dff020 100644 --- a/accessibility/source/extended/accessibletablistbox.cxx +++ b/accessibility/source/extended/accessibletablistbox.cxx @@ -107,7 +107,7 @@ namespace accessibility sal_Int32 SAL_CALL AccessibleTabListBox::getAccessibleChildCount() throw ( uno::RuntimeException ) { - return 1; // no header, only table + return 2; // header and table } // ----------------------------------------------------------------------------- @@ -125,11 +125,17 @@ namespace accessibility ::osl::MutexGuard aGuard( getOslMutex() ); ensureIsAlive(); - if ( nChildIndex != 0 ) - // only one child + if ( nChildIndex < 0 || nChildIndex > 1 ) throw IndexOutOfBoundsException(); - Reference< XAccessible > xRet = implGetFixedChild( ::svt::BBINDEX_TABLE ); + Reference< XAccessible > xRet; + if (nChildIndex == 0) + { + //! so far the actual implementation object only supports column headers + xRet = implGetFixedChild( ::svt::BBINDEX_COLUMNHEADERBAR ); + } + else if (nChildIndex == 1) + xRet = implGetFixedChild( ::svt::BBINDEX_TABLE ); if ( !xRet.is() ) throw RuntimeException(); |