diff options
author | Kurt Zenker <kz@openoffice.org> | 2006-10-04 19:09:22 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2006-10-04 19:09:22 +0000 |
commit | ed13695f2bfa8d91ae323331392eb7b22b8633b2 (patch) | |
tree | cbae49e2c0f611a2b32f59a183414bc22e06da0a /wizards/com | |
parent | 166e35da222fae674afbe7a739372e06fcb4865a (diff) |
INTEGRATION: CWS qwizardspp4 (1.7.36); FILE MERGED
2006/07/25 14:16:33 tv 1.7.36.2: RESYNC: (1.7-1.8); FILE MERGED
2006/07/17 15:52:23 tv 1.7.36.1: #i38801# #i42034# Writer Wizards can now be closed with ESC and closer
Diffstat (limited to 'wizards/com')
-rw-r--r-- | wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.java | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.java b/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.java index e1cdecd66ca3..72cc60f41306 100644 --- a/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.java +++ b/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.java @@ -143,20 +143,22 @@ public class FaxWizardDialogImpl extends FaxWizardDialog { //disable the document, so that the user cannot change anything: myFaxDoc.xFrame.getComponentWindow().setEnable(false); - //show the Wizard dialog: - xWindow.setVisible(true); + executeDialog(myFaxDoc.xFrame); + removeTerminateListener(); + closeDocument(); + running = false; } catch (Exception exception) { removeTerminateListener(); exception.printStackTrace(System.out); + running=false; + return; } } public void cancelWizard() { - xWindow.setVisible(false); - closeDocument(); - removeTerminateListener(); + xDialog.endExecute(); running = false; } @@ -193,9 +195,6 @@ public class FaxWizardDialogImpl extends FaxWizardDialog { bSaveSuccess = OfficeDocument.store(xMSF, xTextDocument, sPath, "writer8_template", false, "Template could not be saved to" + sPath); if (bSaveSuccess) { saveConfiguration(); - xWindow.setVisible(false); - closeDocument(); - //myFaxDoc.xTextDocument.unlockControllers(); XInteractionHandler xIH = (XInteractionHandler) UnoRuntime.queryInterface(XInteractionHandler.class, xMSF.createInstance("com.sun.star.comp.uui.UUIInteractionHandler")); PropertyValue loadValues[] = new PropertyValue[4]; loadValues[0] = new PropertyValue(); @@ -228,7 +227,7 @@ public class FaxWizardDialogImpl extends FaxWizardDialog { e.printStackTrace(); } finally { - removeTerminateListener(); + xDialog.endExecute(); running = false; } @@ -236,7 +235,7 @@ public class FaxWizardDialogImpl extends FaxWizardDialog { public void closeDocument() { try { - xComponent.dispose(); + //xComponent.dispose(); XCloseable xCloseable = (XCloseable) UnoRuntime.queryInterface(XCloseable.class, myFaxDoc.xFrame); xCloseable.close(false); } catch (CloseVetoException e) { |