User: kz Date: 05/01/21 09:06:21 Modified: /dba/dbaccess/source/ui/app/ AppDetailPageHelper.cxx
Log: INTEGRATION: CWS dba22 (1.4.28); FILE MERGED 2004/12/13 14:26:25 oj 1.4.28.1: #i38891# add listeners and hold them 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&r2=1.5 Delta lines: +6 -31 -------------------- --- AppDetailPageHelper.cxx 22 Oct 2004 12:00:02 -0000 1.4 +++ AppDetailPageHelper.cxx 21 Jan 2005 17:06:18 -0000 1.5 @@ -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]
