Class BatchHandlerAdapter
java.lang.Object
org.openoffice.da.comp.writer2xhtml.BatchHandlerAdapter
- All Implemented Interfaces:
BatchHandler
The uno interface provides an XBatchHandler implementation, the java
interface requires a BatchHandler implementation. This simple class
implements the latter using an instance of the former.
-
Constructor Summary
ConstructorsConstructorDescriptionBatchHandlerAdapter
(org.openoffice.da.writer2xhtml.XBatchHandler unoHandler) -
Method Summary
Modifier and TypeMethodDescriptionboolean
cancel()
Notification that the conversion may be cancelled.void
Notification that the conversion has finishedvoid
endDirectory
(String sName, boolean bSuccess) Notification that a directory conversion has finishedvoid
Notification that a file conversion has finishedvoid
Notification that the conversion is startedvoid
startDirectory
(String sName) Notification that a directory conversion startsvoid
Notification that a file conversion starts
-
Constructor Details
-
BatchHandlerAdapter
public BatchHandlerAdapter(org.openoffice.da.writer2xhtml.XBatchHandler unoHandler)
-
-
Method Details
-
startConversion
public void startConversion()Description copied from interface:BatchHandler
Notification that the conversion is started- Specified by:
startConversion
in interfaceBatchHandler
-
endConversion
public void endConversion()Description copied from interface:BatchHandler
Notification that the conversion has finished- Specified by:
endConversion
in interfaceBatchHandler
-
startDirectory
Description copied from interface:BatchHandler
Notification that a directory conversion starts- Specified by:
startDirectory
in interfaceBatchHandler
- Parameters:
sName
- the name of the directory to convert
-
endDirectory
Description copied from interface:BatchHandler
Notification that a directory conversion has finished- Specified by:
endDirectory
in interfaceBatchHandler
- Parameters:
sName
- the name of the directorybSuccess
- true if the conversion was successful (this only means that the index page was created with success, not that the conversion of files and subdirectories was successful)
-
startFile
Description copied from interface:BatchHandler
Notification that a file conversion starts- Specified by:
startFile
in interfaceBatchHandler
- Parameters:
sName
- the name of the file to convert
-
endFile
Description copied from interface:BatchHandler
Notification that a file conversion has finished- Specified by:
endFile
in interfaceBatchHandler
- Parameters:
sName
- the name of the filebSuccess
- true if the conversion of this file was successful
-
cancel
public boolean cancel()Description copied from interface:BatchHandler
Notification that the conversion may be cancelled. TheBatchConverter
fires this event once per document. Cancelling the conversion does not delete files that was already converted- Specified by:
cancel
in interfaceBatchHandler
- Returns:
- true if the handler wants to cancel the conversion
-