summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/report
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-08-02 16:20:16 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-08-02 16:20:16 +0000
commite43057548c4783a3fe2a8bffb7ee927170990822 (patch)
treee8acce138dfd3836b8b4d0e9a1995a5702c7cee8 /wizards/com/sun/star/wizards/report
parentc4959cbcc9458811ca1aedeb112967622f7e8c55 (diff)
INTEGRATION: CWS insight01 (1.27.10); FILE MERGED
2004/07/22 10:44:37 oj 1.27.10.2: #i30199# remove the event from report doc, will now be filled from outside 2004/07/19 14:09:12 bc 1.27.10.1: *** empty log message ***
Diffstat (limited to 'wizards/com/sun/star/wizards/report')
-rw-r--r--wizards/com/sun/star/wizards/report/Dataimport.java35
1 files changed, 23 insertions, 12 deletions
diff --git a/wizards/com/sun/star/wizards/report/Dataimport.java b/wizards/com/sun/star/wizards/report/Dataimport.java
index a85090724f20..138b958280c5 100644
--- a/wizards/com/sun/star/wizards/report/Dataimport.java
+++ b/wizards/com/sun/star/wizards/report/Dataimport.java
@@ -2,9 +2,9 @@
*
* $RCSfile: Dataimport.java,v $
*
-* $Revision: 1.27 $
+* $Revision: 1.28 $
*
-* last change: $Author: kz $ $Date: 2004-05-19 12:46:48 $
+* last change: $Author: hr $ $Date: 2004-08-02 17:20:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -135,8 +135,8 @@ public class Dataimport extends UnoDialog2 { // extends ReportWizard
xMSF = com.sun.star.wizards.common.Desktop.connect(ConnectStr);
if (xMSF != null)
System.out.println("Connected to " + ConnectStr);
- Dataimport CurDataimport = new Dataimport(xMSF);
- CurDataimport.createReport(xMSF);
+// Dataimport CurDataimport = new Dataimport(xMSF);
+// CurDataimport.createReport(xMSF);
} catch (Exception e) {
e.printStackTrace(System.out);
} catch (java.lang.Exception javaexception) {
@@ -190,6 +190,21 @@ public class Dataimport extends UnoDialog2 { // extends ReportWizard
{
dialog = x;
}*/
+
+ // TODO: the dialog has to be in a thread again, but before the deadlock has to be fixed which otherwise appears
+ try {
+ if (reconnectToDatabase(xMSF)) {
+ modifyFontWeight("lblProgressDBConnection", com.sun.star.awt.FontWeight.NORMAL);
+ modifyFontWeight("lblProgressDataImport", com.sun.star.awt.FontWeight.BOLD);
+ insertDatabaseDatatoReportDocument(xMSF);
+ }
+ xComponent.dispose();
+ CurReportDocument.CurDBMetaData.disposeDBMetaData();
+ } catch (ThreadDeath td) {
+ System.out.println("could not stop thread");
+ xComponent.dispose();
+ }
+/*
Thread ProgressThread = new Thread(new Runnable() {
public void run() {
try {
@@ -208,17 +223,13 @@ public class Dataimport extends UnoDialog2 { // extends ReportWizard
});
ProgressThread.start();
- // try {
- // ProgressThread.join();
- // }
- // catch(InterruptedException e){
- // System.out.println("could not join Threads");
- // }
+ */
}
- public void createReport(final XMultiServiceFactory xMSF) {
+
+ public void createReport(final XMultiServiceFactory xMSF,XTextDocument _textDocument) {
try {
- CurReportDocument = new ReportDocument(xMSF, false, true, oResource);
+ CurReportDocument = new ReportDocument(xMSF, _textDocument,false, oResource);
int iWidth = CurReportDocument.xFrame.getComponentWindow().getPosSize().Width;
showProgressDisplay(xMSF, true);
importReportData(xMSF, this, CurReportDocument);