diff options
author | Siqi Liu <me@siqi.fr> | 2015-04-06 14:03:35 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-04-07 09:18:21 +0200 |
commit | 600781382c068212f312f9d9a3de4c903ba83766 (patch) | |
tree | 8c3e179aec68d287d817ec70598036258086e937 /android/experimental/LOAndroid3/src/java/org | |
parent | 950d33871d5ac4f4ab73f515a89b9e1b9a0ff91c (diff) |
implement strike out and .uno:Save
.uno:Save works out of box for when tested against documents (impress,
calc) loaded directly from dropbox for example. However, it doesn't work with
impress/calc documents loaded from local files. Writer documents won't
save, either locally or from network resources. More research needed.
Change-Id: Ibdcc209a71f14ec91ba9c1152b305e0278787713
Diffstat (limited to 'android/experimental/LOAndroid3/src/java/org')
-rw-r--r-- | android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java index 466468794f09..c83197705536 100644 --- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java +++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java @@ -85,6 +85,9 @@ public class LibreOfficeMainActivity extends ActionBarActivity { case R.id.action_underline: LOKitShell.sendEvent(new LOEvent(LOEvent.UNO_COMMAND, ".uno:Underline")); return true; + case R.id.action_strikeout: + LOKitShell.sendEvent(new LOEvent(LOEvent.UNO_COMMAND, ".uno:StrikeOut")); + return true; case R.id.action_keyboard: showSoftKeyboard(); break; @@ -92,7 +95,8 @@ public class LibreOfficeMainActivity extends ActionBarActivity { mAbout.showAbout(); return true; case R.id.action_save: - Toast.makeText(this, "saving the document...", Toast.LENGTH_SHORT).show(); + Toast.makeText(this, "Saving the document...", Toast.LENGTH_SHORT).show(); + LOKitShell.sendEvent(new LOEvent(LOEvent.UNO_COMMAND, ".uno:Save")); return true; case R.id.action_parts: mDrawerLayout.openDrawer(mDrawerList); |