summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2004-11-27 08:10:55 +0000
committerKurt Zenker <kz@openoffice.org>2004-11-27 08:10:55 +0000
commit39cb224b434f6c4c49b0de48b3edabfa35d7322a (patch)
tree6bd33ed6e0dd92a9673b53d84f3f9c8db7396b38 /wizards/com/sun/star/wizards
parent09e5411b74a108243e47f00239efc8d95476e8dc (diff)
INTEGRATION: CWS qwizardsbf1 (1.2.40); FILE MERGED
2004/09/17 16:31:43 rpiterman 1.2.40.1: docu and buetifying
Diffstat (limited to 'wizards/com/sun/star/wizards')
-rw-r--r--wizards/com/sun/star/wizards/web/export/CopyExporter.java5
-rw-r--r--wizards/com/sun/star/wizards/web/export/Exporter.java9
2 files changed, 12 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/web/export/CopyExporter.java b/wizards/com/sun/star/wizards/web/export/CopyExporter.java
index 36d1f27493fd..1fa2886b0cb0 100644
--- a/wizards/com/sun/star/wizards/web/export/CopyExporter.java
+++ b/wizards/com/sun/star/wizards/web/export/CopyExporter.java
@@ -27,6 +27,11 @@ public class CopyExporter extends AbstractExporter{
try {
task.advance(true);
+
+ /*
+ * this will open the document, and calculate the pages/slides number
+ * in it.
+ */
if (exporter.cp_PageType > 0) {
closeDocument(openDocument(source,xmsf),xmsf);
}
diff --git a/wizards/com/sun/star/wizards/web/export/Exporter.java b/wizards/com/sun/star/wizards/web/export/Exporter.java
index f704f9a5fb31..9d3da200abb4 100644
--- a/wizards/com/sun/star/wizards/web/export/Exporter.java
+++ b/wizards/com/sun/star/wizards/web/export/Exporter.java
@@ -2,9 +2,9 @@
*
* $RCSfile: Exporter.java,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: kz $ $Date: 2004-05-19 13:20:19 $
+ * last change: $Author: kz $ $Date: 2004-11-27 09:10:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -73,12 +73,17 @@ public interface Exporter {
* This method exports a document with a specified filter.<br/>
* The method is responsible for exporting the given source document
* to the given target directory.
+ * The exporter *must* also set the given CGDocument sizeBytes field to the
+ * size of the converted document, *if* the target document is
+ * of a binary format.
+ * always use source.urlFilename as destination filename.
* @param source is a CGDocument object.
* @param target contains the URL of a directory to which the
* file should be exported to.
* @param xmsf this is a basic multiServiceFactory.
* @param task - a task monitoring object. This should advance
* (call task.advacne(true) ) 3 times, while exporting.
+ *
*/
public boolean export(CGDocument source, String targetDirectory ,XMultiServiceFactory xmsf, Task task);