summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-03-11 17:24:49 +0900
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-03-16 09:38:07 +0100
commitbd3771e1057ae90875d312faa4c30645627260e3 (patch)
treec1c979af13221e5ac03a8a6edc2b45754f16f981 /android
parentbcc3163a4a028526cd1dad86cc7a452d952d704f (diff)
android: add to JNI - setGraphicSelection, resetSelection
Change-Id: Ib81763148b077423d3903802b13a11b15ba3b0c1
Diffstat (limited to 'android')
-rw-r--r--android/Bootstrap/src/org/libreoffice/kit/Document.java21
1 files changed, 20 insertions, 1 deletions
diff --git a/android/Bootstrap/src/org/libreoffice/kit/Document.java b/android/Bootstrap/src/org/libreoffice/kit/Document.java
index 9ebfdfc7a7c4..0e0dd594cf58 100644
--- a/android/Bootstrap/src/org/libreoffice/kit/Document.java
+++ b/android/Bootstrap/src/org/libreoffice/kit/Document.java
@@ -50,6 +50,12 @@ public class Document {
public static final int SET_TEXT_SELECTION_END = 1;
public static final int SET_TEXT_SELECTION_RESET = 2;
+ /**
+ * Set graphic selection types
+ */
+ public static final int SET_GRAPHIC_SELECTION_START = 0;
+ public static final int SET_GRAPHIC_SELECTION_END = 1;
+
private final ByteBuffer handle;
private MessageCallback messageCallback = null;
@@ -127,7 +133,7 @@ public class Document {
public native void postMouseEvent(int type, int x, int y, int count);
/**
- * Change text selection
+ * Change text selection.
* @param type - text selection type
* @param x - x coordinate
* @param y - y coordinate
@@ -135,6 +141,19 @@ public class Document {
public native void setTextSelection(int type, int x, int y);
/**
+ * Change graphic selection.
+ * @param type - graphic selection type
+ * @param x - x coordinate
+ * @param y - y coordinate
+ */
+ public native void setGraphicSelection(int type, int x, int y);
+
+ /**
+ * Reset current (any kind of) selection.
+ */
+ public native void resetSelection();
+
+ /**
* Callback to retrieve messages from LOK
*/
public interface MessageCallback {