Kaydet (Commit) 782cc4cc authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

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
üst afe8f7b1
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: dbexchange.cxx,v $ * $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 * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -133,17 +133,17 @@ namespace dbaui ...@@ -133,17 +133,17 @@ namespace dbaui
const Reference< XConnection >& _rxConnection, const Reference< XConnection >& _rxConnection,
const Reference< XNumberFormatter >& _rxFormatter, const Reference< XNumberFormatter >& _rxFormatter,
const Reference< XMultiServiceFactory >& _rxORB) const Reference< XMultiServiceFactory >& _rxORB)
:ODataAccessObjectTransferable( _rDatasource, _nCommandType, _rCommand, _rxConnection ) :ODataAccessObjectTransferable( _rDatasource,::rtl::OUString(), _nCommandType, _rCommand, _rxConnection )
,m_pHtml(NULL) ,m_pHtml(NULL)
,m_pRtf(NULL) ,m_pRtf(NULL)
{ {
osl_incrementInterlockedCount( &m_refCount ); osl_incrementInterlockedCount( &m_refCount );
lcl_addListener(_rxConnection,this); lcl_addListener(_rxConnection,this);
m_pHtml = new OHTMLImportExport( _rxORB, _rxFormatter); m_pHtml = new OHTMLImportExport(getDescriptor(), _rxORB, _rxFormatter);
m_aEventListeners.push_back(m_pHtml); 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); m_aEventListeners.push_back(m_pRtf);
osl_decrementInterlockedCount( &m_refCount ); osl_decrementInterlockedCount( &m_refCount );
} }
...@@ -155,14 +155,14 @@ namespace dbaui ...@@ -155,14 +155,14 @@ namespace dbaui
const ::rtl::OUString& _rCommand, const ::rtl::OUString& _rCommand,
const Reference< XNumberFormatter >& _rxFormatter, const Reference< XNumberFormatter >& _rxFormatter,
const Reference< XMultiServiceFactory >& _rxORB) const Reference< XMultiServiceFactory >& _rxORB)
:ODataAccessObjectTransferable( _rDatasource, _nCommandType, _rCommand) :ODataAccessObjectTransferable( _rDatasource, ::rtl::OUString(),_nCommandType, _rCommand)
,m_pHtml(NULL) ,m_pHtml(NULL)
,m_pRtf(NULL) ,m_pRtf(NULL)
{ {
m_pHtml = new OHTMLImportExport(_rxORB, _rxFormatter); m_pHtml = new OHTMLImportExport(getDescriptor(),_rxORB, _rxFormatter);
m_aEventListeners.push_back(m_pHtml); 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); m_aEventListeners.push_back(m_pRtf);
} }
...@@ -195,7 +195,7 @@ namespace dbaui ...@@ -195,7 +195,7 @@ namespace dbaui
if (nUserObjectId == SOT_FORMAT_RTF || nUserObjectId == SOT_FORMATSTR_ID_HTML || nUserObjectId == SOT_FORMATSTR_ID_HTML_SIMPLE) if (nUserObjectId == SOT_FORMAT_RTF || nUserObjectId == SOT_FORMATSTR_ID_HTML || nUserObjectId == SOT_FORMATSTR_ID_HTML_SIMPLE)
{ {
ODatabaseImportExport* pExport = reinterpret_cast<ODatabaseImportExport*>(pUserObject); ODatabaseImportExport* pExport = reinterpret_cast<ODatabaseImportExport*>(pUserObject);
if(pExport) if ( pExport && rxOStm.Is() )
{ {
pExport->setStream(&rxOStm); pExport->setStream(&rxOStm);
return pExport->Write(); return pExport->Write();
......
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