summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/report
diff options
context:
space:
mode:
authorTom Verbeek <tv@openoffice.org>2002-05-29 11:18:46 +0000
committerTom Verbeek <tv@openoffice.org>2002-05-29 11:18:46 +0000
commit34de18ce5707a3856dc44da829e94f5d235a05a3 (patch)
treee2c9113c7c9df6947162b9409f16584fd7e31c89 /wizards/com/sun/star/wizards/report
parenta02d32f0f1b890877fff9e2dfaebc5ef3055faa1 (diff)
#99085# modify startup services to support Interface XJobExecutor
Diffstat (limited to 'wizards/com/sun/star/wizards/report')
-rw-r--r--wizards/com/sun/star/wizards/report/CallReportWizard.java24
-rw-r--r--wizards/com/sun/star/wizards/report/MANIFEST.MF2
2 files changed, 7 insertions, 19 deletions
diff --git a/wizards/com/sun/star/wizards/report/CallReportWizard.java b/wizards/com/sun/star/wizards/report/CallReportWizard.java
index e998f02e2ba7..9f67d7e0c62a 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.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: tv $ $Date: 2002-05-28 15:21:55 $
+ * last change: $Author: tv $ $Date: 2002-05-29 12:18:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -70,7 +70,7 @@ import com.sun.star.lang.XSingleServiceFactory;
import com.sun.star.uno.Type;
-import com.sun.star.awt.XDialog;
+import com.sun.star.task.XJobExecutor;
import com.sun.star.uno.XInterface;
import com.sun.star.uno.UnoRuntime;
@@ -172,7 +172,7 @@ public class CallReportWizard {
/** This class implements the component. At least the interfaces XServiceInfo,
* XTypeProvider, and XInitialization should be provided by the service.
*/
- public static class ReportWizardImplementation implements XInitialization, XTypeProvider, XServiceInfo, XDialog
+ public static class ReportWizardImplementation implements XInitialization, XTypeProvider, XServiceInfo, XJobExecutor
{
/** The constructor of the inner class has a XMultiServiceFactory parameter.
@@ -182,34 +182,24 @@ public class CallReportWizard {
public ReportWizardImplementation(XMultiServiceFactory xmultiservicefactoryInitialization)
{
xmultiservicefactory = xmultiservicefactoryInitialization;
- this.execute();
- //System.err.println("ReportWizard wird gestartet!");
}
- public void setTitle( /*IN*/String Title ){}
- public String getTitle( ) {
- return "";
- }
- public short execute( )
+ public void trigger(String sEvent)
{
try
{
XComponentLoader xcomponentloader = ( XComponentLoader ) UnoRuntime.queryInterface(XComponentLoader.class, xmultiservicefactory.createInstance("com.sun.star.frame.Desktop" ));
//ConnectToOfficeDatabase(xcomponentloader);
- //System.err.println("ReportWizard wird gestartet!(2)");
- ReportWizard.startReportWizard(xmultiservicefactory);
+ ReportWizard.startReportWizard(xmultiservicefactory);
}
catch( Exception exception )
{
System.err.println( exception );
- return 0;
}
- return 1;
}
- public void endExecute( ){}
/** The service name, that must be used to get an instance of this service.
*/
@@ -305,7 +295,7 @@ public class CallReportWizard {
try
{
typeReturn = new Type[] {
- new Type( XDialog.class ) ,
+ new Type( XJobExecutor.class ) ,
new Type( XTypeProvider.class ),
new Type( XServiceInfo.class ),
new Type( XInitialization.class )
diff --git a/wizards/com/sun/star/wizards/report/MANIFEST.MF b/wizards/com/sun/star/wizards/report/MANIFEST.MF
index 2c008ea2c335..a1d5917847c8 100644
--- a/wizards/com/sun/star/wizards/report/MANIFEST.MF
+++ b/wizards/com/sun/star/wizards/report/MANIFEST.MF
@@ -1,3 +1 @@
-Manifest-Version: 1.0
-Solar-Version: 642b(Build:7985)
RegistrationClassName: com.sun.star.wizards.report.CallReportWizard