summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2021-04-15 14:31:43 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2021-04-16 10:17:22 +0200
commitf9820cbde80b8b9b3875996b0b8e6fc965418220 (patch)
treefefdc12aa6f591ba23f644a826e1543de2da6524
parentbcf3da6c2929810ce7b0ebddbbe9709381c8503a (diff)
android: Allow printing and PDF export regardless of mode
Don't only enable the "Export To PDF" and "Print" menu items if the experimental editing mode is enabled, but always offer them, since they should be sufficiently stable and don't require any editing of the document. To do so, move them into a new menu group "group_misc_actions", and move the entry for sending UNO commands up, so it remains in the "group_edit_actions" menu group whose entries are hidden unless editing mode is enabled. Change-Id: I425cf6d0a45306ff48b45dad6fd0e804b87a2546 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114147 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> (cherry picked from commit 5306ecda9ceb5f9702c2ce6dc6207a3bd5f14a6a)
-rw-r--r--android/source/res/menu/main.xml11
1 files changed, 8 insertions, 3 deletions
diff --git a/android/source/res/menu/main.xml b/android/source/res/menu/main.xml
index 94856d52e759..0570a77fdd7b 100644
--- a/android/source/res/menu/main.xml
+++ b/android/source/res/menu/main.xml
@@ -31,6 +31,9 @@
android:orderInCategory="100"
app:showAsAction="always"/>
+ <item android:id="@+id/action_UNO_commands"
+ android:title="@string/action_UNO_commands"
+ android:orderInCategory="100" />
<item android:id="@+id/action_save"
android:title="@string/action_save"
@@ -39,6 +42,11 @@
<item android:id="@+id/action_save_as"
android:title="@string/action_save_as"
android:orderInCategory="100" />
+ </group>
+
+ <group android:id="@+id/group_misc_actions"
+ tools:visible="true"
+ android:visible="false">
<item android:id="@+id/action_exportToPDF"
android:title="@string/action_exportToPDF"
@@ -51,9 +59,6 @@
android:orderInCategory="100"
android:visible="true" />
- <item android:id="@+id/action_UNO_commands"
- android:title="@string/action_UNO_commands"
- android:orderInCategory="100" />
</group>
<group android:id="@+id/group_spreadsheet_options"