diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:51:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:51:28 +0000 |
commit | 940b4d1848e8c70ab7642901a68594e8016caffc (patch) | |
tree | eb72f344ee6c3d9b80a7ecc079ea79e9fba8676d /android/source/res/menu | |
parent | Initial commit. (diff) | |
download | libreoffice-940b4d1848e8c70ab7642901a68594e8016caffc.tar.xz libreoffice-940b4d1848e8c70ab7642901a68594e8016caffc.zip |
Adding upstream version 1:7.0.4.upstream/1%7.0.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | android/source/res/menu/context_menu.xml | 7 | ||||
-rw-r--r-- | android/source/res/menu/main.xml | 146 | ||||
-rw-r--r-- | android/source/res/menu/navigation_menu.xml | 35 | ||||
-rw-r--r-- | android/source/res/menu/view_menu.xml | 65 |
4 files changed, 253 insertions, 0 deletions
diff --git a/android/source/res/menu/context_menu.xml b/android/source/res/menu/context_menu.xml new file mode 100644 index 000000000..43824875d --- /dev/null +++ b/android/source/res/menu/context_menu.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" > + <item android:id="@+id/context_menu_open" + android:title="@string/open"/> + <item android:id="@+id/context_menu_share" + android:title="@string/share"/> +</menu> diff --git a/android/source/res/menu/main.xml b/android/source/res/menu/main.xml new file mode 100644 index 000000000..2c97b3201 --- /dev/null +++ b/android/source/res/menu/main.xml @@ -0,0 +1,146 @@ +<menu xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + tools:context="org.libreoffice.MainActivity"> + + <group android:id="@+id/group_edit_actions" + tools:visible="true" + android:visible="false"> + + <item android:id="@+id/action_undo" + android:title="@string/action_undo" + android:icon="@drawable/ic_undo" + android:orderInCategory="100" + app:showAsAction="always"/> + + <item android:id="@+id/action_redo" + android:title="@string/action_redo" + android:icon="@drawable/ic_redo" + android:orderInCategory="100" + app:showAsAction="always"/> + + <item android:id="@+id/action_keyboard" + android:title="@string/action_keyboard" + android:icon="@drawable/ic_keyboard" + android:orderInCategory="100" + app:showAsAction="always"/> + + <item android:id="@+id/action_format" + android:title="@string/action_fromat" + android:icon="@drawable/ic_text_format" + android:orderInCategory="100" + app:showAsAction="always"/> + + + <item android:id="@+id/action_save" + android:title="@string/action_save" + android:orderInCategory="100" /> + + <item android:id="@+id/action_exportToPDF" + android:title="@string/action_exportToPDF" + android:orderInCategory="100" + android:visible="true" + /> + + <item android:id="@+id/action_print" + android:title="@string/action_print" + 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" + android:visible="false" + tools:visible="true"> + + <item android:id="@+id/action_add_worksheet" + android:title="@string/action_add_worksheet" + android:orderInCategory="100" + android:visible="false" /> + + <item android:id="@+id/action_rename_worksheet" + android:title="@string/action_rename_worksheet" + android:orderInCategory="100" + android:visible="false" /> + + <item android:id="@+id/action_delete_worksheet" + android:title="@string/action_delete_worksheet" + android:orderInCategory="100" + android:visible="false"/> + </group> + + <group android:id="@+id/group_presentation_options" + android:visible="false" + tools:visible="true"> + + <item android:id="@+id/action_add_slide" + android:title="@string/action_add_slide" + android:orderInCategory="100" + android:visible="false" /> + <item android:id="@+id/action_rename_slide" + android:title="@string/action_rename_slide" + android:orderInCategory="100" + android:visible="false" /> + + <item android:id="@+id/action_delete_slide" + android:title="@string/action_delete_slide" + android:orderInCategory="100" + android:visible="false"/> + </group> + + <group android:id="@+id/group_edit_clipboard" + android:visible="false" + tools:visible="true"> + + <item android:id="@+id/action_back" + android:title="@string/action_back" + app:showAsAction="always" + android:icon="@drawable/ic_arrow_back_black_24dp" + android:orderInCategory="1"/> + + <item android:id="@+id/action_copy" + android:title="@string/action_copy" + app:showAsAction="always" + android:icon="@drawable/ic_content_copy_black_24dp" + android:orderInCategory="2"/> + + <item android:id="@+id/action_cut" + android:title="@string/action_cut" + app:showAsAction="always" + android:icon="@drawable/ic_content_cut_black_24dp" + android:orderInCategory="3"/> + + <item android:id="@+id/action_paste" + android:title="@string/action_paste" + app:showAsAction="always" + android:icon="@drawable/ic_content_paste_black_24dp" + android:orderInCategory="4"/> + + </group> + + <item android:id="@+id/action_search" + android:title="@string/action_search" + android:icon="@drawable/ic_search" + android:orderInCategory="100" + app:showAsAction="always"/> + + <item android:id="@+id/action_presentation" + android:title="@string/action_presentation" + android:orderInCategory="100" + android:visible="false" /> + + <item android:id="@+id/action_parts" + android:title="@string/action_parts" + android:orderInCategory="100" /> + + <item android:id="@+id/action_about" + android:title="@string/action_about" + android:orderInCategory="100" /> + + <item android:id="@+id/action_settings" + android:title="@string/action_settings" + android:orderInCategory="100" /> +</menu> diff --git a/android/source/res/menu/navigation_menu.xml b/android/source/res/menu/navigation_menu.xml new file mode 100644 index 000000000..db680a9a1 --- /dev/null +++ b/android/source/res/menu/navigation_menu.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <group + android:checkableBehavior="single" + android:id="@+id/group_providers"> + + <item android:id="@+id/menu_provider_documents" + android:title="@string/local_documents" + android:icon="@drawable/ic_folder_black_24dp" /> + + <item android:id="@+id/menu_provider_filesystem" + android:title="@string/local_file_system" + android:icon="@drawable/ic_storage_black_24dp"/> + + <item android:id="@+id/menu_provider_extsd" + android:title="@string/external_sd_file_system" + android:icon="@drawable/ic_sd_card_black_24dp"/> + + <item android:id="@+id/menu_provider_otg" + android:title="@string/otg_file_system" + android:icon="@drawable/ic_usb_black_24dp"/> + + <item android:id="@+id/menu_provider_owncloud" + android:title="@string/owncloud" + android:icon="@drawable/ic_cloud_black_24dp"/> + + + </group> + + <group android:orderInCategory="100"> + <item android:id="@+id/menu_storage_preferences" + android:title="@string/storage_provider_settings" + android:icon="@drawable/ic_settings_black_24dp"/> + </group> +</menu> diff --git a/android/source/res/menu/view_menu.xml b/android/source/res/menu/view_menu.xml new file mode 100644 index 000000000..67f059647 --- /dev/null +++ b/android/source/res/menu/view_menu.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto"> + + <item + android:id="@+id/menu_filter" + android:title="@string/filter" + android:icon="@drawable/ic_filter_list_black_24dp" + app:showAsAction="ifRoom"> + <menu> + <group + android:checkableBehavior="single"> + <item + android:id="@+id/menu_filter_everything" + android:title="@string/filter_everything" /> + <item + android:id="@+id/menu_filter_documents" + android:title="@string/filter_documents" /> + <item + android:id="@+id/menu_filter_spreadsheets" + android:title="@string/filter_spreadsheets" /> + <item + android:id="@+id/menu_filter_presentations" + android:title="@string/filter_presentations" /> + <item + android:id="@+id/menu_filter_drawings" + android:title="@string/filter_drawings" /> + </group> + </menu> + </item> + + <item + android:id="@+id/menu_sort" + android:title="@string/sort" + android:icon="@drawable/ic_sort_black_24dp" + app:showAsAction="ifRoom"> + <menu> + <group android:checkableBehavior="single"> + <item android:id="@+id/menu_sort_size_asc" + android:title="@string/sort_smallest" /> + + <item android:id="@+id/menu_sort_size_desc" + android:title="@string/sort_largest" /> + + <item android:id="@+id/menu_sort_az" + android:title="@string/sort_az"/> + + <item android:id="@+id/menu_sort_za" + android:title="@string/sort_za"/> + + <item android:id="@+id/menu_sort_modified_newest" + android:title="@string/sort_newest"/> + + <item android:id="@+id/menu_sort_modified_oldest" + android:title="@string/sort_oldest"/> + </group> + </menu> + </item> + <item android:id="@+id/action_settings" + android:title="@string/action_settings" + android:orderInCategory="100"/> + <item android:id="@+id/action_about" + android:title="@string/action_about" + android:orderInCategory="100"/> +</menu> |