Package writer2latex.api
Interface BatchHandler
-
- All Known Implementing Classes:
BatchHandlerAdapter,BatchHandlerImpl
public interface BatchHandlerThis is a call back interface to handle user interaction during a batch conversion with aBatchConverter
-
-
Method Summary
All Methods Instance Methods Abstract 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
void startConversion()
Notification that the conversion is started
-
endConversion
void endConversion()
Notification that the conversion has finished
-
startDirectory
void startDirectory(java.lang.String sName)
Notification that a directory conversion starts- Parameters:
sName- the name of the directory to convert
-
endDirectory
void endDirectory(java.lang.String sName, boolean bSuccess)Notification that a directory conversion has finished- 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
void startFile(java.lang.String sName)
Notification that a file conversion starts- Parameters:
sName- the name of the file to convert
-
endFile
void endFile(java.lang.String sName, boolean bSuccess)Notification that a file conversion has finished- Parameters:
sName- the name of the filebSuccess- true if the conversion of this file was successful
-
cancel
boolean cancel()
Notification that the conversion may be cancelled. TheBatchConverterfires this event once per document. Cancelling the conversion does not delete files that was already converted- Returns:
- true if the handler wants to cancel the conversion
-
-