diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-08-10 22:16:24 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-08-10 23:00:43 +0200 |
commit | 81f1c259275a43308636d8e9a4c48e67eadaae60 (patch) | |
tree | adb17049f62525d38c85fd3235a5b2e6ce32a628 /android | |
parent | Sync oox -> writerfilter alias for wordprocessingml (diff) | |
download | core-81f1c259275a43308636d8e9a4c48e67eadaae60.tar.gz core-81f1c259275a43308636d8e9a4c48e67eadaae60.zip |
LOKit android: add support for setPartMode and getPartName
Change-Id: Idd8bd4d4b148e88c7badd06fefb7cfcfc24ec9ea
Diffstat (limited to 'android')
-rw-r--r-- | android/Bootstrap/src/org/libreoffice/kit/Document.java | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/android/Bootstrap/src/org/libreoffice/kit/Document.java b/android/Bootstrap/src/org/libreoffice/kit/Document.java index 124f768ac184..d0d30f106d06 100644 --- a/android/Bootstrap/src/org/libreoffice/kit/Document.java +++ b/android/Bootstrap/src/org/libreoffice/kit/Document.java @@ -12,21 +12,35 @@ package org.libreoffice.kit; import java.nio.ByteBuffer; public class Document { + public static final int PART_MODE_DEFAULT = 0; + public static final int PART_MODE_SLIDE = 1; + public static final int PART_MODE_NOTES = 2; + public static final int PART_MODE_SLIDENOTES = 3; + public static final int PART_MODE_EMBEDDEDOBJ = 4; private final long handle; - public native void setPart(int part); + public Document(long handle) { + this.handle = handle; + } + public native int getPart(); + + public native void setPart(int partIndex); + public native int getParts(); + + public native String getPartName(int partIndex); + + public native void setPartMode(int partMode); + public native long getDocumentHeight(); + public native long getDocumentWidth(); private native int getDocumentTypeNative(); - private native void paintTileNative(ByteBuffer buffer, int canvasWidth, int canvasHeight, int tilePositionX, int tilePositionY, int tileWidth, int tileHeight); - public Document(long handle) { - this.handle = handle; - } + private native void paintTileNative(ByteBuffer buffer, int canvasWidth, int canvasHeight, int tilePositionX, int tilePositionY, int tileWidth, int tileHeight); public int getDocumentType() { return getDocumentTypeNative(); |