diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-03-12 18:16:51 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-16 09:38:10 +0100 |
commit | 5df6cd16a2604163ee8e19edadba48de65ba205e (patch) | |
tree | f343572b2513c10f05a41f9455ac78e351a7472f /desktop | |
parent | e6f7b8823af239a69bc108cce82629c03e41039a (diff) |
android: Make the Bold button actually work - switches to typing in bold.
Change-Id: I48da0f3cc918bda1cdb396b4ea72a82eddafb9a8
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/lokandroid.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/desktop/source/lib/lokandroid.cxx b/desktop/source/lib/lokandroid.cxx index b4d0e98e0a20..c23fd3f0cbd3 100644 --- a/desktop/source/lib/lokandroid.cxx +++ b/desktop/source/lib/lokandroid.cxx @@ -284,6 +284,18 @@ extern "C" SAL_JNI_EXPORT void JNICALL Java_org_libreoffice_kit_Document_postMou pDocument->pClass->postMouseEvent(pDocument, type, x, y, count); } +extern "C" SAL_JNI_EXPORT void JNICALL Java_org_libreoffice_kit_Document_postUnoCommand + (JNIEnv* pEnv, jobject aObject, jstring command) +{ + LibreOfficeKitDocument* pDocument = getHandle<LibreOfficeKitDocument>(pEnv, aObject); + + const char* pCommand = pEnv->GetStringUTFChars(command, NULL); + + pDocument->pClass->postUnoCommand(pDocument, pCommand); + + pEnv->ReleaseStringUTFChars(command, pCommand); +} + extern "C" SAL_JNI_EXPORT void JNICALL Java_org_libreoffice_kit_Document_setTextSelection (JNIEnv* pEnv, jobject aObject, jint type, jint x, jint y) { |