Add getPart(s) to lokandroid too.

I.e. make lokandroid match
4d15212ef8
This commit is contained in:
Andrzej Hunt
2014-07-13 08:05:00 +02:00
parent dde00f1f8a
commit b7742fd8b8
2 changed files with 11 additions and 3 deletions

View File

@@ -16,7 +16,8 @@ public class Document {
private final long handle;
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 getDocumentWidth();

View File

@@ -75,11 +75,18 @@ extern "C" SAL_JNI_EXPORT void JNICALL Java_org_libreoffice_kit_Document_setPart
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)
{
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