Tag: cws_src680_dbwizard4 User: bc Date: 05/03/17 08:37:26 Modified: /dba/dbaccess/source/core/dataaccess/ documentdefinition.cxx, documentdefinition.hxx
Log: #44562#'fillReportData' modified File Changes: Directory: /dba/dbaccess/source/core/dataaccess/ ================================================ File [changed]: documentdefinition.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/documentdefinition.cxx?r1=1.20&r2=1.20.4.1 Delta lines: +36 -30 --------------------- --- documentdefinition.cxx 17 Feb 2005 11:04:03 -0000 1.20 +++ documentdefinition.cxx 17 Mar 2005 16:37:23 -0000 1.20.4.1 @@ -2,9 +2,9 @@ * * $RCSfile: documentdefinition.cxx,v $ * - * $Revision: 1.20 $ + * $Revision: 1.20.4.1 $ * - * last change: $Author: vg $ $Date: 2005/02/17 11:04:03 $ + * last change: $Author: bc $ $Date: 2005/03/17 16:37:23 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -612,6 +612,8 @@ ( ( aOpenCommand.Mode == OpenMode::ALL ) || ( aOpenCommand.Mode == OpenMode::FOLDERS ) || ( aOpenCommand.Mode == OpenMode::DOCUMENTS ) ); + if ( xConnection.is() ) + m_xLastKnownConnection = xConnection; if ( bOpenFolder ) { @@ -1275,11 +1277,15 @@ if ( !m_bForm && _bFill && m_pImpl->m_aProps.bAsTemplate && !m_bOpenInDesign ) // open a report in alive mode, so we need to fill it { setModelReadOnly(sal_False); - Sequence<Any> aArgs(1); + Sequence<Any> aArgs(2); PropertyValue aValue; aValue.Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TextDocument")); aValue.Value <<= getComponent(); aArgs[0] <<= aValue; + aValue.Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ActiveConnection")); + aValue.Value <<= m_xLastKnownConnection; + aArgs[1] <<= aValue; + Reference< XJobExecutor > xExecuteable(m_xORB->createInstanceWithArguments(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.wizards.report.CallReportWizard")),aArgs),UNO_QUERY); if ( xExecuteable.is() ) xExecuteable->trigger(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("fill"))); File [changed]: documentdefinition.hxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/documentdefinition.hxx?r1=1.11&r2=1.11.50.1 Delta lines: +12 -10 --------------------- --- documentdefinition.hxx 21 Jan 2005 17:04:48 -0000 1.11 +++ documentdefinition.hxx 17 Mar 2005 16:37:23 -0000 1.11.50.1 @@ -2,9 +2,9 @@ * * $RCSfile: documentdefinition.hxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.11.50.1 $ * - * last change: $Author: kz $ $Date: 2005/01/21 17:04:48 $ + * last change: $Author: bc $ $Date: 2005/03/17 16:37:23 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -123,6 +123,8 @@ ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedObject> m_xEmbeddedObject; ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStateChangeListener > m_xListener; ::com::sun::star::uno::Reference< ::com::sun::star::frame::XComponentLoader > m_xFrameLoader; + ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > m_xLastKnownConnection; + OInterceptor* m_pInterceptor; sal_Bool m_bForm; // <TRUE/> if it is a form sal_Bool m_bOpenInDesign; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
