diff options
Diffstat (limited to 'android/source/src/java/org/libreoffice/LOKitShell.java')
-rw-r--r-- | android/source/src/java/org/libreoffice/LOKitShell.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/android/source/src/java/org/libreoffice/LOKitShell.java b/android/source/src/java/org/libreoffice/LOKitShell.java index 35a8fd009dc2..7b7525722250 100644 --- a/android/source/src/java/org/libreoffice/LOKitShell.java +++ b/android/source/src/java/org/libreoffice/LOKitShell.java @@ -106,8 +106,16 @@ public class LOKitShell { LOKitShell.sendEvent(new LOEvent(LOEvent.CHANGE_PART, part)); } - public static void sendLoadEvent(String inputFile) { - LOKitShell.sendEvent(new LOEvent(LOEvent.LOAD, inputFile)); + public static void sendLoadEvent(String inputFilePath) { + LOKitShell.sendEvent(new LOEvent(inputFilePath, LOEvent.LOAD)); + } + + public static void sendNewDocumentLoadEvent(String newDocumentPath, String newDocumentType) { + LOKitShell.sendEvent(new LOEvent(newDocumentPath, newDocumentType, LOEvent.LOAD_NEW)); + } + + public static void sendSaveAsEvent(String filePath, String fileFormat) { + LOKitShell.sendEvent(new LOEvent(filePath, fileFormat, LOEvent.SAVE_AS)); } public static void sendResumeEvent(String inputFile, int partIndex) { |