summaryrefslogtreecommitdiff
path: root/android/source/src/java/org/libreoffice/TileProvider.java
diff options
context:
space:
mode:
Diffstat (limited to 'android/source/src/java/org/libreoffice/TileProvider.java')
-rw-r--r--android/source/src/java/org/libreoffice/TileProvider.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/android/source/src/java/org/libreoffice/TileProvider.java b/android/source/src/java/org/libreoffice/TileProvider.java
index a848b4ae98d0..1a20c8b080d0 100644
--- a/android/source/src/java/org/libreoffice/TileProvider.java
+++ b/android/source/src/java/org/libreoffice/TileProvider.java
@@ -23,14 +23,22 @@ public interface TileProvider {
/**
* Save the current document under the given path.
+ * @param takeOwnership Whether to take ownership of the new file,
+ * i.e. whether the current document is changed to the
+ * newly saved document (takeOwnership = true),
+ * as compared to just saving a copy of the current document
+ * or exporting to a different file format.
+ * Must be 'false' when using this method for export to e.g. PNG or PDF.
*/
- void saveDocumentAs(String filePath, String format);
+ void saveDocumentAs(String filePath, String format, boolean takeOwnership);
/**
* Saves the current document under the given path,
* using the default file format.
+ * @param takeOwnership (s. documentation for
+ * 'saveDocumentAs(String filePath, String format, boolean takeOwnership)')
*/
- void saveDocumentAs(String filePath);
+ void saveDocumentAs(String filePath, boolean takeOwnership);
/**
* Returns the page width in pixels.