Tag: cws_src680_ooo64bit02 User: hr Date: 05/03/09 10:55:47 Modified: /dba/dbaccess/source/ui/app/ AppDetailPageHelper.cxx
Log: RESYNC: (1.4-1.5); FILE MERGED File Changes: Directory: /dba/dbaccess/source/ui/app/ ======================================= File [changed]: AppDetailPageHelper.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppDetailPageHelper.cxx?r1=1.4.48.1&r2=1.4.48.2 Delta lines: +9 -34 -------------------- --- AppDetailPageHelper.cxx 21 Jan 2005 15:04:21 -0000 1.4.48.1 +++ AppDetailPageHelper.cxx 9 Mar 2005 18:55:44 -0000 1.4.48.2 @@ -584,36 +584,11 @@ } if ( !m_pLists[E_TABLE]->GetEntryCount() ) { - try - { - Reference< XTablesSupplier > xTableSupp(_xConnection,UNO_QUERY); - Reference< XViewsSupplier > xViewSupp; - Reference< XNameAccess > xTables, xViews; - - xTables = xTableSupp->getTables(); - - // get the views supplier and the views - Sequence< ::rtl::OUString> sTables,sViews; - if ( xTables.is() ) - sTables = xTables->getElementNames(); - - xViewSupp.set(xTableSupp,UNO_QUERY); - if ( xViewSupp.is() ) - { - xViews = xViewSupp->getViews(); - if (xViews.is()) - sViews = xViews->getElementNames(); - } - static_cast<OTableTreeListBox*>(m_pLists[E_TABLE])->UpdateTableList(_xConnection->getMetaData(),sTables,sViews); + static_cast<OTableTreeListBox*>(m_pLists[E_TABLE])->UpdateTableList(_xConnection); SvLBoxEntry* pEntry = m_pLists[E_TABLE]->First(); if ( pEntry ) m_pLists[E_TABLE]->Expand(pEntry); - } - catch(Exception&) - { - OSL_ENSURE(0,"Exception catched!"); - } m_pLists[E_TABLE]->SelectAll(FALSE); } @@ -851,12 +826,12 @@ return pRet; } // ----------------------------------------------------------------------------- -void OAppDetailPageHelper::elementRemoved(const ::rtl::OUString& _rName, const Reference< XConnection >& _rxConn ) +void OAppDetailPageHelper::elementRemoved(ElementType _eType,const ::rtl::OUString& _rName, const Reference< XConnection >& _rxConn ) { DBTreeListBox* pTreeView = getCurrentView(); if ( pTreeView ) { - switch( getElementType() ) + switch( _eType ) { case E_TABLE: OSL_ENSURE(_rxConn.is(),"Connection is NULL! ->GPF"); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
