diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-08-02 16:20:00 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-08-02 16:20:00 +0000 |
commit | c4959cbcc9458811ca1aedeb112967622f7e8c55 (patch) | |
tree | 30231242eee12d5a52fc7c25c782fadbd61e932f /wizards/com/sun/star/wizards/report | |
parent | 02c671f991632681d023e395f1f9cb92cfc10fb9 (diff) |
INTEGRATION: CWS insight01 (1.16.10); FILE MERGED
2004/07/22 10:44:36 oj 1.16.10.1: #i30199# remove the event from report doc, will now be filled from outside
Diffstat (limited to 'wizards/com/sun/star/wizards/report')
-rw-r--r-- | wizards/com/sun/star/wizards/report/CallReportWizard.java | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/wizards/com/sun/star/wizards/report/CallReportWizard.java b/wizards/com/sun/star/wizards/report/CallReportWizard.java index c0ae38a8b64f..5f509a7e3dfa 100644 --- a/wizards/com/sun/star/wizards/report/CallReportWizard.java +++ b/wizards/com/sun/star/wizards/report/CallReportWizard.java @@ -2,9 +2,9 @@ * * $RCSfile: CallReportWizard.java,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: kz $ $Date: 2004-05-19 12:46:08 $ + * last change: $Author: hr $ $Date: 2004-08-02 17:20:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -63,6 +63,8 @@ package com.sun.star.wizards.report; import com.sun.star.beans.PropertyValue; import com.sun.star.uno.Type; +import com.sun.star.uno.UnoRuntime; +import com.sun.star.text.XTextDocument; import com.sun.star.wizards.common.Properties; @@ -145,8 +147,19 @@ public class CallReportWizard { bWizardstartedalready = false; } else if (sEvent.compareTo("fill") == 0){ - Dataimport CurDataimport = new Dataimport(xmultiservicefactory); - CurDataimport.createReport(xmultiservicefactory); + Dataimport CurDataimport = new Dataimport(xmultiservicefactory); + XTextDocument xTextDocument = null; + if ( databaseproperties != null ) + { + for( int i=0;i < databaseproperties.length;++i) + { + if ( databaseproperties[i].Name.equals("TextDocument") ) + xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, databaseproperties[i].Value); + + } + if ( xTextDocument != null ) + CurDataimport.createReport(xmultiservicefactory,xTextDocument); + } } } catch( Exception exception ){ |