Add getPart(s) to lokandroid too.
I.e. make lokandroid match
4d15212ef8
This commit is contained in:
@@ -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();
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user