summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-08-02 14:32:27 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-08-02 14:32:27 +0000
commit782cc4cc61ee71f8e5968c6a761738b9f64b11b5 (patch)
treebd72dcdda76b5c36492de862397d4ae10e64cb36 /dbaccess/source/ui
parentafe8f7b10199bb54534cdfca2b421d421326dd0a (diff)
INTEGRATION: CWS insight01 (1.21.28); FILE MERGED
2004/07/15 06:44:49 oj 1.21.28.4: check if stream is NULL 2004/06/03 09:09:26 oj 1.21.28.3: merge to m40 2004/06/01 08:49:36 oj 1.21.28.2: RESYNC: (1.21-1.22); FILE MERGED 2004/02/20 11:32:25 oj 1.21.28.1: #i25414# extend the datadescriptor for database location and connection resource
Diffstat (limited to 'dbaccess/source/ui')
-rw-r--r--dbaccess/source/ui/browser/dbexchange.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/dbaccess/source/ui/browser/dbexchange.cxx b/dbaccess/source/ui/browser/dbexchange.cxx
index b97ef03320b7..9d2324c394ce 100644
--- a/dbaccess/source/ui/browser/dbexchange.cxx
+++ b/dbaccess/source/ui/browser/dbexchange.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dbexchange.cxx,v $
*
- * $Revision: 1.22 $
+ * $Revision: 1.23 $
*
- * last change: $Author: rt $ $Date: 2004-03-02 12:43:34 $
+ * last change: $Author: hr $ $Date: 2004-08-02 15:32:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -133,17 +133,17 @@ namespace dbaui
const Reference< XConnection >& _rxConnection,
const Reference< XNumberFormatter >& _rxFormatter,
const Reference< XMultiServiceFactory >& _rxORB)
- :ODataAccessObjectTransferable( _rDatasource, _nCommandType, _rCommand, _rxConnection )
+ :ODataAccessObjectTransferable( _rDatasource,::rtl::OUString(), _nCommandType, _rCommand, _rxConnection )
,m_pHtml(NULL)
,m_pRtf(NULL)
{
osl_incrementInterlockedCount( &m_refCount );
lcl_addListener(_rxConnection,this);
- m_pHtml = new OHTMLImportExport( _rxORB, _rxFormatter);
+ m_pHtml = new OHTMLImportExport(getDescriptor(), _rxORB, _rxFormatter);
m_aEventListeners.push_back(m_pHtml);
- m_pRtf = new ORTFImportExport( _rxORB, _rxFormatter);
+ m_pRtf = new ORTFImportExport(getDescriptor(), _rxORB, _rxFormatter);
m_aEventListeners.push_back(m_pRtf);
osl_decrementInterlockedCount( &m_refCount );
}
@@ -155,14 +155,14 @@ namespace dbaui
const ::rtl::OUString& _rCommand,
const Reference< XNumberFormatter >& _rxFormatter,
const Reference< XMultiServiceFactory >& _rxORB)
- :ODataAccessObjectTransferable( _rDatasource, _nCommandType, _rCommand)
+ :ODataAccessObjectTransferable( _rDatasource, ::rtl::OUString(),_nCommandType, _rCommand)
,m_pHtml(NULL)
,m_pRtf(NULL)
{
- m_pHtml = new OHTMLImportExport(_rxORB, _rxFormatter);
+ m_pHtml = new OHTMLImportExport(getDescriptor(),_rxORB, _rxFormatter);
m_aEventListeners.push_back(m_pHtml);
- m_pRtf = new ORTFImportExport(_rxORB, _rxFormatter);
+ m_pRtf = new ORTFImportExport(getDescriptor(),_rxORB, _rxFormatter);
m_aEventListeners.push_back(m_pRtf);
}
@@ -195,7 +195,7 @@ namespace dbaui
if (nUserObjectId == SOT_FORMAT_RTF || nUserObjectId == SOT_FORMATSTR_ID_HTML || nUserObjectId == SOT_FORMATSTR_ID_HTML_SIMPLE)
{
ODatabaseImportExport* pExport = reinterpret_cast<ODatabaseImportExport*>(pUserObject);
- if(pExport)
+ if ( pExport && rxOStm.Is() )
{
pExport->setStream(&rxOStm);
return pExport->Write();