Class BatchHandlerAdapter
- java.lang.Object
-
- org.openoffice.da.comp.writer2xhtml.BatchHandlerAdapter
-
- All Implemented Interfaces:
BatchHandler
public class BatchHandlerAdapter extends java.lang.Object implements 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
Constructors Constructor Description BatchHandlerAdapter(org.openoffice.da.writer2xhtml.XBatchHandler unoHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel()Notification that the conversion may be cancelled.voidendConversion()Notification that the conversion has finishedvoidendDirectory(java.lang.String sName, boolean bSuccess)Notification that a directory conversion has finishedvoidendFile(java.lang.String sName, boolean bSuccess)Notification that a file conversion has finishedvoidstartConversion()Notification that the conversion is startedvoidstartDirectory(java.lang.String sName)Notification that a directory conversion startsvoidstartFile(java.lang.String sName)Notification that a file conversion starts
-
-
-
Method Detail
-
startConversion
public void startConversion()
Description copied from interface:BatchHandlerNotification that the conversion is started- Specified by:
startConversionin interfaceBatchHandler
-
endConversion
public void endConversion()
Description copied from interface:BatchHandlerNotification that the conversion has finished- Specified by:
endConversionin interfaceBatchHandler
-
startDirectory
public void startDirectory(java.lang.String sName)
Description copied from interface:BatchHandlerNotification that a directory conversion starts- Specified by:
startDirectoryin interfaceBatchHandler- Parameters:
sName- the name of the directory to convert
-
endDirectory
public void endDirectory(java.lang.String sName, boolean bSuccess)Description copied from interface:BatchHandlerNotification that a directory conversion has finished- Specified by:
endDirectoryin 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
public void startFile(java.lang.String sName)
Description copied from interface:BatchHandlerNotification that a file conversion starts- Specified by:
startFilein interfaceBatchHandler- Parameters:
sName- the name of the file to convert
-
endFile
public void endFile(java.lang.String sName, boolean bSuccess)Description copied from interface:BatchHandlerNotification that a file conversion has finished- Specified by:
endFilein 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:BatchHandlerNotification that the conversion may be cancelled. TheBatchConverterfires this event once per document. Cancelling the conversion does not delete files that was already converted- Specified by:
cancelin interfaceBatchHandler- Returns:
- true if the handler wants to cancel the conversion
-
-