summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/app/AppDetailPageHelper.cxx41
-rw-r--r--dbaccess/source/ui/app/AppDetailPageHelper.hxx9
2 files changed, 14 insertions, 36 deletions
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
index 7b0dcb1592f4..632a5bc88c86 100644
--- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx
+++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: AppDetailPageHelper.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: pjunck $ $Date: 2004-10-22 12:00:02 $
+ * last change: $Author: kz $ $Date: 2005-01-21 17:06:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -584,36 +584,11 @@ void OAppDetailPageHelper::createTablesPage(const Reference< XConnection>& _xCon
}
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!");
- }
+ SvLBoxEntry* pEntry = m_pLists[E_TABLE]->First();
+ if ( pEntry )
+ m_pLists[E_TABLE]->Expand(pEntry);
m_pLists[E_TABLE]->SelectAll(FALSE);
}
@@ -851,12 +826,12 @@ SvLBoxEntry* OAppDetailPageHelper::elementAdded(ElementType _eType,const ::rtl::
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");
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.hxx b/dbaccess/source/ui/app/AppDetailPageHelper.hxx
index 93d24f79e6c5..e6ed0e79e638 100644
--- a/dbaccess/source/ui/app/AppDetailPageHelper.hxx
+++ b/dbaccess/source/ui/app/AppDetailPageHelper.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: AppDetailPageHelper.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: pjunck $ $Date: 2004-10-22 12:00:15 $
+ * last change: $Author: kz $ $Date: 2005-01-21 17:06:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -366,12 +366,15 @@ namespace dbaui
,const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConn = NULL);
/** removes an element from the detail page.
+ @param _eType
+ The type where the entry shold be appended.
@param _rName
The name of the element to be removed.
@param _rxConn
If we remove a table, the connection must be set.
*/
- void elementRemoved(const ::rtl::OUString& _rName
+ void elementRemoved(ElementType _eType
+ ,const ::rtl::OUString& _rName
,const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConn);