diff options
author | Behrend Cornelius <bc@openoffice.org> | 2002-08-16 15:17:08 +0000 |
---|---|---|
committer | Behrend Cornelius <bc@openoffice.org> | 2002-08-16 15:17:08 +0000 |
commit | a704e9279bfa3cb7c3a09f5d0e79d46e8abf8a9f (patch) | |
tree | b05fff994ea5a014a51f6f56dbe812626ea40923 /wizards/com/sun/star/wizards/report/CallReportWizard.java | |
parent | 86c303c6d9cd62fae2f4d263756a3cdc782dc88d (diff) |
#102348# boolean flag "bWizardalreadystarted" entered
Diffstat (limited to 'wizards/com/sun/star/wizards/report/CallReportWizard.java')
-rw-r--r-- | wizards/com/sun/star/wizards/report/CallReportWizard.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/wizards/com/sun/star/wizards/report/CallReportWizard.java b/wizards/com/sun/star/wizards/report/CallReportWizard.java index d5c725a778cc..29fb886b68c7 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.14 $ + * $Revision: 1.15 $ * - * last change: $Author: bc $ $Date: 2002-08-12 15:54:00 $ + * last change: $Author: bc $ $Date: 2002-08-16 16:17:08 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -126,6 +126,7 @@ import java.util.*; * @author Bertram Nolte */ public class CallReportWizard { + static boolean bWizardstartedalready; /** Gives a factory for creating the service. * This method is called by the <code>JavaLoader</code> @@ -188,8 +189,11 @@ public class CallReportWizard { try{ XComponentLoader xcomponentloader = (XComponentLoader) UnoRuntime.queryInterface(XComponentLoader.class, xmultiservicefactory.createInstance("com.sun.star.frame.Desktop")); if (sEvent.compareTo("start") == 0) { - ReportWizard CurReportWizard = new ReportWizard(); - CurReportWizard.startReportWizard(xmultiservicefactory, null); + if (bWizardstartedalready != true){ + ReportWizard CurReportWizard = new ReportWizard(); + CurReportWizard.startReportWizard(xmultiservicefactory, null); + } + bWizardstartedalready = false; } else if (sEvent.compareTo("fill") == 0){ Dataimport CurDataimport = new Dataimport(); @@ -220,6 +224,7 @@ public class CallReportWizard { { ReportWizard CurReportWizard = new ReportWizard(); CurReportWizard.startReportWizard(xmultiservicefactory,object); + bWizardstartedalready = true; // xmultiservicefactory = (XMultiservicefactory) UnoRuntime.queryInterface(XMultiServiceFactory.class, object[0]); } |