summaryrefslogtreecommitdiff
path: root/android/Bootstrap
diff options
context:
space:
mode:
authorMert Tümer <merttumer7@gmail.com>2018-03-14 19:19:56 +0300
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-03-15 00:28:31 +0100
commite5bc7fa4e83b33fc3eee343e560a4f8cb91eacd6 (patch)
treeb58bf53390777dfd79ab36c62cd2d437625ad114 /android/Bootstrap
parentb951cd126d0bcc950c71c069c7d2f4c210c4bcaf (diff)
tdf#96796 - Added clipboard actions for the Android Viewer
Change-Id: I52e134532ab70e765b6ccd929f189be84f9c9a90 Signed-off-by: Mert Tümer <merttumer7@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/51286 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'android/Bootstrap')
-rw-r--r--android/Bootstrap/src/org/libreoffice/kit/Document.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/android/Bootstrap/src/org/libreoffice/kit/Document.java b/android/Bootstrap/src/org/libreoffice/kit/Document.java
index 6a1f402970ea..f0c5e7a6f99a 100644
--- a/android/Bootstrap/src/org/libreoffice/kit/Document.java
+++ b/android/Bootstrap/src/org/libreoffice/kit/Document.java
@@ -232,6 +232,21 @@ public class Document {
public native void setGraphicSelection(int type, int x, int y);
/**
+ * Get selected text
+ * @param mimeType
+ * @return
+ */
+ public native String getTextSelection(String mimeType);
+
+ /**
+ * paste
+ * @param mimeType
+ * @param data
+ * @return
+ */
+ public native boolean paste(String mimeType, String data);
+
+ /**
* Reset current (any kind of) selection.
*/
public native void resetSelection();