diff options
author | Ocke Janssen <oj@openoffice.org> | 2002-11-26 11:45:47 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2002-11-26 11:45:47 +0000 |
commit | f80154549662ae794e7ca1722372a487d8ca4f86 (patch) | |
tree | 2cf38c578ccf9cc6c4a0f121e646da40fc76fef5 /dbaccess/source/ui/querydesign/TableWindowAccess.cxx | |
parent | 49f328db45356a53a621e4633cd5e7a37a41fbc2 (diff) |
#105538# return 2 children now fixedtext and listbox
Diffstat (limited to 'dbaccess/source/ui/querydesign/TableWindowAccess.cxx')
-rw-r--r-- | dbaccess/source/ui/querydesign/TableWindowAccess.cxx | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/dbaccess/source/ui/querydesign/TableWindowAccess.cxx b/dbaccess/source/ui/querydesign/TableWindowAccess.cxx index cf4b925ab252..ac30ee26073d 100644 --- a/dbaccess/source/ui/querydesign/TableWindowAccess.cxx +++ b/dbaccess/source/ui/querydesign/TableWindowAccess.cxx @@ -2,9 +2,9 @@ * * $RCSfile: TableWindowAccess.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: oj $ $Date: 2002-11-26 07:46:11 $ + * last change: $Author: oj $ $Date: 2002-11-26 12:45:47 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -154,7 +154,7 @@ namespace dbaui // XAccessibleContext sal_Int32 SAL_CALL OTableWindowAccess::getAccessibleChildCount( ) throw (RuntimeException) { - return 1; + return 2; } // ----------------------------------------------------------------------------- Reference< XAccessible > SAL_CALL OTableWindowAccess::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException,RuntimeException) @@ -162,15 +162,9 @@ namespace dbaui ::osl::MutexGuard aGuard( m_aMutex ); Reference< XAccessible > aRet; if(i == 0 && m_pTable) - { - if ( !m_pTable->GetListBox()->GetAccessibleDescription().Len() ) - { - String sTitle = String(ModuleRes(STR_TBL_TITLE)); - sTitle.SearchAndReplace('#',getAccessibleName().getStr()); - m_pTable->GetListBox()->SetAccessibleDescription(sTitle); - } + aRet = m_pTable->GetTitleCtrl()->GetAccessible(); + else if(i == 1 && m_pTable) aRet = m_pTable->GetListBox()->GetAccessible(); - } else throw IndexOutOfBoundsException(); return aRet; |