Kaydet (Commit) 09bd32f4 authored tarafından Kurt Zenker's avatar Kurt Zenker

INTEGRATION: CWS dba30b (1.78.126); FILE MERGED

2008/04/15 22:12:45 fs 1.78.126.2: RESYNC: (1.78-1.79); FILE MERGED
2008/03/16 14:05:17 fs 1.78.126.1: some exception handling re-factoring
üst 1d152f4f
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite * OpenOffice.org - a multi-platform office productivity suite
* *
* $RCSfile: dsbrowserDnD.cxx,v $ * $RCSfile: dsbrowserDnD.cxx,v $
* $Revision: 1.79 $ * $Revision: 1.80 $
* *
* This file is part of OpenOffice.org. * This file is part of OpenOffice.org.
* *
...@@ -31,52 +31,28 @@ ...@@ -31,52 +31,28 @@
// MARKER(update_precomp.py): autogen include statement, do not remove // MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_dbaccess.hxx" #include "precompiled_dbaccess.hxx"
#ifndef _SBA_UNODATBR_HXX_ #include "dbexchange.hxx"
#include "dbtreelistbox.hxx"
#include "dbtreemodel.hxx"
#include "dbtreeview.hxx"
#include "dbu_brw.hrc"
#include "dbustrings.hrc"
#include "QEnumTypes.hxx"
#include "UITools.hxx"
#include "unodatbr.hxx" #include "unodatbr.hxx"
#endif
#ifndef _COM_SUN_STAR_SDB_COMMANDTYPE_HPP_ /** === begin UNO includes === **/
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/sdb/CommandType.hpp> #include <com/sun/star/sdb/CommandType.hpp>
#endif
#ifndef _COM_SUN_STAR_SDBC_XCONNECTION_HPP_
#include <com/sun/star/sdbc/XConnection.hpp> #include <com/sun/star/sdbc/XConnection.hpp>
#endif /** === end UNO includes === **/
#ifndef DBAUI_DBTREEMODEL_HXX
#include "dbtreemodel.hxx"
#endif
#ifndef DBACCESS_UI_DBTREEVIEW_HXX
#include "dbtreeview.hxx"
#endif
#ifndef DBACCESS_SHARED_DBUSTRINGS_HRC
#include "dbustrings.hrc"
#endif
#ifndef _DBU_BRW_HRC_
#include "dbu_brw.hrc"
#endif
#ifndef _DBHELPER_DBEXCEPTION_HXX_
#include <connectivity/dbexception.hxx> #include <connectivity/dbexception.hxx>
#endif
#ifndef _CONNECTIVITY_DBTOOLS_HXX_
#include <connectivity/dbtools.hxx> #include <connectivity/dbtools.hxx>
#endif #include <cppuhelper/exc_hlp.hxx>
#ifndef DBAUI_DBEXCHANGE_HXX
#include "dbexchange.hxx"
#endif
#ifndef DBAUI_ENUMTYPES_HXX
#include "QEnumTypes.hxx"
#endif
#ifndef DBAUI_TOOLS_HXX
#include "UITools.hxx"
#endif
#ifndef _SVX_DATACCESSDESCRIPTOR_HXX_
#include <svx/dataaccessdescriptor.hxx> #include <svx/dataaccessdescriptor.hxx>
#endif #include <tools/diagnose_ex.h>
#ifndef DBAUI_DBTREELISTBOX_HXX
#include "dbtreelistbox.hxx"
#endif
#ifndef _COM_SUN_STAR_FRAME_XSTORABLE_HPP_
#include <com/sun/star/frame/XStorable.hpp>
#endif
#include <functional> #include <functional>
// ......................................................................... // .........................................................................
namespace dbaui namespace dbaui
...@@ -124,13 +100,13 @@ namespace dbaui ...@@ -124,13 +100,13 @@ namespace dbaui
// the owner ship goes to ODataClipboards // the owner ship goes to ODataClipboards
return pData; return pData;
} }
catch(SQLException& e) catch(const SQLException& )
{ {
showError(SQLExceptionInfo(e)); showError( SQLExceptionInfo( ::cppu::getCaughtException() ) );
} }
catch(Exception&) catch( const Exception& )
{ {
DBG_ERROR("SbaTableQueryBrowser::implCopyObject: caught a generic exception!"); DBG_UNHANDLED_EXCEPTION();
} }
return NULL; return NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment