diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2006-04-07 12:52:14 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2006-04-07 12:52:14 +0000 |
commit | a2c31e57fcdd6894d2f12f15895250f1b1f54df6 (patch) | |
tree | cf24f633ece734e9749b6c5c96a6c4f2d7414038 /wizards | |
parent | 485660198949e07fcda9ab8b13af978d4e97b03d (diff) |
INTEGRATION: CWS dbwizardpp3 (1.2.214); FILE MERGED
2006/03/29 15:30:09 bc 1.2.214.2: #i63772#failing of pdf export now raises error messagebox
2006/03/27 10:48:02 tv 1.2.214.1: expanded tabs to spaces
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/web/export/FilterExporter.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/wizards/com/sun/star/wizards/web/export/FilterExporter.java b/wizards/com/sun/star/wizards/web/export/FilterExporter.java index 8c13a0e54cf0..1cefb1969820 100644 --- a/wizards/com/sun/star/wizards/web/export/FilterExporter.java +++ b/wizards/com/sun/star/wizards/web/export/FilterExporter.java @@ -10,6 +10,8 @@ import com.sun.star.io.IOException; import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.wizards.common.Properties; import com.sun.star.wizards.ui.event.Task; +import com.sun.star.wizards.web.ErrorHandler; +import com.sun.star.wizards.web.ProcessErrors; import com.sun.star.wizards.web.data.CGDocument; import com.sun.star.wizards.web.data.CGExporter; @@ -19,7 +21,7 @@ import com.sun.star.wizards.web.data.CGExporter; * An exporter which is configured with a filter name, and * uses the specified filter to export documents. */ -public class FilterExporter extends AbstractExporter { +public class FilterExporter extends AbstractExporter implements ProcessErrors { protected String filterName; protected Properties props = new Properties(); @@ -27,12 +29,7 @@ public class FilterExporter extends AbstractExporter { /* (non-Javadoc) * @see com.sun.star.wizards.web.export.Exporter#export(java.lang.Object, java.io.File, com.sun.star.wizards.web.data.CGSettings, com.sun.star.lang.XMultiServiceFactory) */ - public boolean export( - CGDocument source, - String target, - XMultiServiceFactory xmsf, - Task task - ) { + public boolean export( CGDocument source, String target, XMultiServiceFactory xmsf, Task task) throws IOException { boolean result = true; Object document = null; @@ -45,14 +42,17 @@ public class FilterExporter extends AbstractExporter { } catch (IOException iox) { + iox.printStackTrace(System.out); result = false; + throw iox; } finally { closeDocument(document,xmsf); calcFileSize(source,target,xmsf); task.advance(true); } - return true; + return result; + } /* (non-Javadoc) |