summaryrefslogtreecommitdiff
path: root/dbaccess/source
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-03-05 15:52:59 +0000
committerKurt Zenker <kz@openoffice.org>2008-03-05 15:52:59 +0000
commitc560490510767224d97e8326c2185aeb338e6217 (patch)
treeb86f126321f8c3c256c404e03b47dfe5c85973f2 /dbaccess/source
parentf24ea75ee0ea13d91fd9374cff123e10321787b9 (diff)
INTEGRATION: CWS dba30a (1.81.74); FILE MERGED
2008/02/05 21:38:27 fs 1.81.74.1: #i85879# cleanup the toolbar mess in the data source browser
Diffstat (limited to 'dbaccess/source')
-rw-r--r--dbaccess/source/ui/browser/genericcontroller.cxx32
1 files changed, 9 insertions, 23 deletions
diff --git a/dbaccess/source/ui/browser/genericcontroller.cxx b/dbaccess/source/ui/browser/genericcontroller.cxx
index dffd5976d4df..197e2afcdd3a 100644
--- a/dbaccess/source/ui/browser/genericcontroller.cxx
+++ b/dbaccess/source/ui/browser/genericcontroller.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: genericcontroller.cxx,v $
*
- * $Revision: 1.81 $
+ * $Revision: 1.82 $
*
- * last change: $Author: hr $ $Date: 2007-09-26 14:48:32 $
+ * last change: $Author: kz $ $Date: 2008-03-05 16:52:59 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -132,6 +132,7 @@
#include <algorithm>
#include <hash_map>
+using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::frame;
@@ -1065,28 +1066,13 @@ IMPL_LINK(OGenericUnoController, OnAsyncCloseTask, void*, EMPTYARG)
{
try
{
-/*AS // #104032# OJ
- URL aURL;
- aURL.Complete = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".uno:CloseDoc"));
- if (m_xUrlTransformer.is())
- m_xUrlTransformer->parseStrict(aURL);
- Reference< XDispatchProvider > xDispProv(m_xCurrentFrame, UNO_QUERY);
- Reference< XDispatch > xCloseDispatch;
- if (xDispProv.is())
- xCloseDispatch = xDispProv->queryDispatch(aURL, m_xCurrentFrame->getName(), FrameSearchFlag::SELF);
- OSL_ENSURE(xCloseDispatch.is(), "SbaTableQueryBrowser::OnAsyncCloseTask: could not get a dispatcher!");
- if ( xCloseDispatch.is() && xCloseDispatch != *this )
- {
- xCloseDispatch->dispatch(aURL, Sequence< PropertyValue >());
- }
- else*/
- {
- Reference< ::com::sun::star::util::XCloseable > xCloseable(m_xCurrentFrame,UNO_QUERY);
- if(xCloseable.is())
- xCloseable->close(sal_False); // false - holds the owner ship for this frame inside this object!
- }
+ Reference< util::XCloseable > xCloseable( m_xCurrentFrame, UNO_QUERY_THROW );
+ xCloseable->close( sal_False ); // false - holds the owner ship for this frame inside this object!
+ }
+ catch( const Exception& )
+ {
+ DBG_UNHANDLED_EXCEPTION();
}
- catch(const Exception&) {}
}
return 0L;
}