Kaydet (Commit) b7742fd8 authored tarafından Andrzej Hunt's avatar Andrzej Hunt

Add getPart(s) to lokandroid too.

I.e. make lokandroid match
4d15212e
üst dde00f1f
...@@ -16,7 +16,8 @@ public class Document { ...@@ -16,7 +16,8 @@ public class Document {
private final long handle; private final long handle;
public native void setPart(int part); public native void setPart(int part);
public native int getNumberOfParts(); public native int getPart();
public native int getParts();
public native long getDocumentHeight(); public native long getDocumentHeight();
public native long getDocumentWidth(); public native long getDocumentWidth();
......
...@@ -75,11 +75,18 @@ extern "C" SAL_JNI_EXPORT void JNICALL Java_org_libreoffice_kit_Document_setPart ...@@ -75,11 +75,18 @@ extern "C" SAL_JNI_EXPORT void JNICALL Java_org_libreoffice_kit_Document_setPart
pDocument->pClass->setPart(pDocument, aPart); pDocument->pClass->setPart(pDocument, aPart);
} }
extern "C" SAL_JNI_EXPORT jint JNICALL Java_org_libreoffice_kit_Document_getNumberOfParts extern "C" SAL_JNI_EXPORT jint JNICALL Java_org_libreoffice_kit_Document_getPart
(JNIEnv* pEnv, jobject aObject) (JNIEnv* pEnv, jobject aObject)
{ {
LibreOfficeKitDocument* pDocument = getHandle<LibreOfficeKitDocument>(pEnv, aObject); LibreOfficeKitDocument* pDocument = getHandle<LibreOfficeKitDocument>(pEnv, aObject);
return (jint) pDocument->pClass->getNumberOfParts(pDocument); return (jint) pDocument->pClass->getPart(pDocument);
}
extern "C" SAL_JNI_EXPORT jint JNICALL Java_org_libreoffice_kit_Document_getParts
(JNIEnv* pEnv, jobject aObject)
{
LibreOfficeKitDocument* pDocument = getHandle<LibreOfficeKitDocument>(pEnv, aObject);
return (jint) pDocument->pClass->getParts(pDocument);
} }
extern "C" SAL_JNI_EXPORT jint JNICALL Java_org_libreoffice_kit_Document_getDocumentTypeNative extern "C" SAL_JNI_EXPORT jint JNICALL Java_org_libreoffice_kit_Document_getDocumentTypeNative
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment