diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-09-08 13:19:42 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-09-08 13:19:42 +0000 |
commit | aff55ac0609e67b325fc086c6f40d62043d403cf (patch) | |
tree | 675686829cf1d11db727a96dd4a812b9f8cf6a50 /wizards/com | |
parent | 662768b9b192f07f82547083ab84fd299dfea2f8 (diff) |
INTEGRATION: CWS qwizards2 (1.2.2); FILE MERGED
2004/08/24 09:49:52 rpiterman 1.2.2.1: bugfix
Issue number: i33085 i33212
Diffstat (limited to 'wizards/com')
-rw-r--r-- | wizards/com/sun/star/wizards/web/export/AbstractExporter.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/web/export/AbstractExporter.java b/wizards/com/sun/star/wizards/web/export/AbstractExporter.java index dd5469fa6314..a485eaa372c3 100644 --- a/wizards/com/sun/star/wizards/web/export/AbstractExporter.java +++ b/wizards/com/sun/star/wizards/web/export/AbstractExporter.java @@ -14,6 +14,7 @@ import com.sun.star.io.IOException; import com.sun.star.lang.XComponent; import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.uno.UnoRuntime; +import com.sun.star.util.XCloseable; import com.sun.star.wizards.common.Desktop; import com.sun.star.wizards.common.FileAccess; import com.sun.star.wizards.common.Properties; @@ -93,9 +94,16 @@ public abstract class AbstractExporter implements Exporter { } protected void closeDocument(Object doc,XMultiServiceFactory xmsf) { - OfficeDocument.dispose( + /*OfficeDocument.dispose( xmsf, - (XComponent) UnoRuntime.queryInterface(XComponent.class, doc)); + (XComponent) UnoRuntime.queryInterface(XComponent.class, doc));*/ + try { + XCloseable xc = (XCloseable)UnoRuntime.queryInterface(XCloseable.class, doc); + xc.close(false); + } + catch (Exception ex) { + ex.printStackTrace(); + } } private void pageCount(CGDocument doc, Object document) { |