From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- android/source/AndroidManifest.xml | 132 +++ android/source/Makefile | 39 + android/source/ReleaseManifest.xml | 7 + android/source/build.gradle | 298 ++++++ android/source/fonts.conf | 88 ++ android/source/gradle.properties | 2 + android/source/gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 49896 bytes .../gradle/wrapper/gradle-wrapper.properties | 6 + android/source/gradlew | 164 +++ android/source/gradlew.bat | 90 ++ android/source/ic_launcher-web.png | Bin 0 -> 23194 bytes android/source/proguard-project.txt | 20 + android/source/res/anim/fab_close.xml | 19 + android/source/res/anim/fab_open.xml | 19 + android/source/res/drawable-hdpi/action_search.png | Bin 0 -> 1759 bytes .../res/drawable-hdpi/action_search_light.png | Bin 0 -> 1764 bytes .../source/res/drawable-hdpi/handle_alias_end.xml | 5 + .../res/drawable-hdpi/handle_alias_middle.xml | 5 + .../res/drawable-hdpi/handle_alias_start.xml | 5 + .../res/drawable-hdpi/ic_folder_grey_48dp.xml | 5 + .../source/res/drawable-hdpi/ic_format_bold.xml | 5 + .../source/res/drawable-hdpi/ic_format_italic.xml | 5 + .../res/drawable-hdpi/ic_format_strikethrough.xml | 5 + .../res/drawable-hdpi/ic_format_underlined.xml | 5 + android/source/res/drawable-hdpi/ic_keyboard.xml | 5 + android/source/res/drawable-hdpi/ic_menu.xml | 5 + .../source/res/drawable-hdpi/ic_text_format.xml | 5 + .../res/drawable-hdpi/light_view_as_grid.png | Bin 0 -> 1210 bytes .../res/drawable-hdpi/light_view_as_list.png | Bin 0 -> 1363 bytes android/source/res/drawable-hdpi/lo_icon.png | Bin 0 -> 1950 bytes android/source/res/drawable-mdpi/background.png | Bin 0 -> 6511 bytes android/source/res/drawable-mdpi/lo_icon.png | Bin 0 -> 1180 bytes android/source/res/drawable-mdpi/shadow.png | Bin 0 -> 874 bytes .../source/res/drawable-xhdpi/handle_image_end.png | Bin 0 -> 413 bytes .../res/drawable-xhdpi/handle_image_middle.png | Bin 0 -> 615 bytes .../res/drawable-xhdpi/handle_image_start.png | Bin 0 -> 422 bytes .../res/drawable-xxxhdpi/ic_check_black_24dp.png | Bin 0 -> 277 bytes .../ic_format_align_center_black_24dp.png | Bin 0 -> 122 bytes .../ic_format_align_justify_black_24dp.png | Bin 0 -> 117 bytes .../ic_format_align_left_black_24dp.png | Bin 0 -> 122 bytes .../ic_format_align_right_black_24dp.png | Bin 0 -> 122 bytes .../drawable-xxxhdpi/ic_format_bold_black_24dp.png | Bin 0 -> 468 bytes .../ic_format_italic_black_24dp.png | Bin 0 -> 337 bytes .../ic_format_list_bulleted_black_24dp.png | Bin 0 -> 356 bytes .../ic_format_list_numbered_black_24dp.png | Bin 0 -> 324 bytes .../ic_format_strikethrough_black_24dp.png | Bin 0 -> 131 bytes .../ic_format_underlined_black_24dp.png | Bin 0 -> 489 bytes .../drawable-xxxhdpi/ic_keyboard_black_24dp.png | Bin 0 -> 301 bytes .../res/drawable-xxxhdpi/ic_menu_black_24dp.png | Bin 0 -> 116 bytes .../res/drawable-xxxhdpi/ic_redo_black_24dp.png | Bin 0 -> 615 bytes .../res/drawable-xxxhdpi/ic_search_black_24dp.png | Bin 0 -> 868 bytes .../ic_search_direction_down_black_24dp.png | Bin 0 -> 256 bytes .../ic_search_direction_up_black_24dp.png | Bin 0 -> 261 bytes .../drawable-xxxhdpi/ic_text_format_black_24dp.png | Bin 0 -> 641 bytes .../res/drawable-xxxhdpi/ic_undo_black_24dp.png | Bin 0 -> 601 bytes .../drawable-xxxhdpi/image_button_background.xml | 6 + android/source/res/drawable/calc.png | Bin 0 -> 14818 bytes android/source/res/drawable/draw.png | Bin 0 -> 18445 bytes android/source/res/drawable/dummy_page.png | Bin 0 -> 49117 bytes android/source/res/drawable/ic_add_black_24dp.xml | 9 + .../res/drawable/ic_arrow_back_black_24dp.xml | 9 + android/source/res/drawable/ic_auto_color.xml | 10 + android/source/res/drawable/ic_check.xml | 5 + .../res/drawable/ic_content_copy_black_24dp.xml | 9 + .../res/drawable/ic_content_cut_black_24dp.xml | 9 + .../res/drawable/ic_content_paste_black_24dp.xml | 9 + .../source/res/drawable/ic_done_all_white_12dp.xml | 10 + android/source/res/drawable/ic_done_white_12dp.xml | 10 + .../res/drawable/ic_filter_list_black_24dp.xml | 9 + .../source/res/drawable/ic_folder_black_24dp.xml | 5 + .../source/res/drawable/ic_format_align_center.xml | 5 + .../res/drawable/ic_format_align_justify.xml | 5 + .../source/res/drawable/ic_format_align_left.xml | 5 + .../source/res/drawable/ic_format_align_right.xml | 5 + android/source/res/drawable/ic_format_bullets.xml | 4 + .../res/drawable/ic_format_clear_black_24dp.xml | 9 + .../source/res/drawable/ic_format_numbering.xml | 4 + .../source/res/drawable/ic_grid_off_black_24dp.xml | 9 + .../source/res/drawable/ic_grid_on_black_24dp.xml | 9 + android/source/res/drawable/ic_grow.xml | 16 + .../drawable/ic_insert_drive_file_black_24dp.xml | 7 + .../drawable/ic_keyboard_backspace_black_24dp.xml | 9 + android/source/res/drawable/ic_line.xml | 12 + android/source/res/drawable/ic_menu_back.png | Bin 0 -> 1900 bytes android/source/res/drawable/ic_rect.xml | 13 + android/source/res/drawable/ic_redo.xml | 5 + .../source/res/drawable/ic_sd_card_black_24dp.xml | 9 + android/source/res/drawable/ic_search.xml | 5 + .../res/drawable/ic_search_direction_down.xml | 5 + .../source/res/drawable/ic_search_direction_up.xml | 5 + .../source/res/drawable/ic_settings_black_24dp.xml | 9 + android/source/res/drawable/ic_shrink.xml | 16 + android/source/res/drawable/ic_sort_black_24dp.xml | 13 + .../source/res/drawable/ic_storage_black_24dp.xml | 9 + android/source/res/drawable/ic_subscript.xml | 10 + android/source/res/drawable/ic_superscript.xml | 20 + android/source/res/drawable/ic_undo.xml | 5 + android/source/res/drawable/ic_usb_black_24dp.xml | 7 + android/source/res/drawable/impress.png | Bin 0 -> 13936 bytes android/source/res/drawable/label_background.xml | 9 + android/source/res/drawable/writer.png | Bin 0 -> 15878 bytes android/source/res/layout/about.xml | 45 + .../res/layout/activity_document_browser.xml | 257 +++++ android/source/res/layout/activity_main.xml | 146 +++ android/source/res/layout/calc_header_popup.xml | 90 ++ android/source/res/layout/colorbox.xml | 15 + .../res/layout/document_part_list_layout.xml | 22 + android/source/res/layout/document_viewer.xml | 33 + android/source/res/layout/item_recent_files.xml | 38 + android/source/res/layout/main.xml | 22 + android/source/res/layout/number_picker.xml | 130 +++ android/source/res/layout/password_dialog.xml | 17 + android/source/res/layout/presentation_mode.xml | 45 + .../source/res/layout/text_selection_handles.xml | 14 + android/source/res/layout/toolbar_bottom.xml | 552 ++++++++++ android/source/res/layout/toolbar_color_picker.xml | 73 ++ android/source/res/menu/main.xml | 156 +++ android/source/res/menu/view_menu.xml | 11 + android/source/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 1529 bytes android/source/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 950 bytes android/source/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 2158 bytes android/source/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 5007 bytes android/source/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 7896 bytes android/source/res/values-de/strings.xml | 172 +++ android/source/res/values-tr/strings.xml | 164 +++ android/source/res/values/arrays.xml | 15 + android/source/res/values/colors.xml | 127 +++ android/source/res/values/dimens.xml | 18 + android/source/res/values/ids.xml | 4 + android/source/res/values/strings.xml | 172 +++ android/source/res/values/themes.xml | 32 + android/source/res/xml/file_paths.xml | 4 + android/source/res/xml/libreoffice_preferences.xml | 28 + .../java/org/libreoffice/AboutDialogFragment.java | 108 ++ .../java/org/libreoffice/ColorPaletteAdapter.java | 135 +++ .../java/org/libreoffice/ColorPaletteListener.java | 6 + .../java/org/libreoffice/ColorPickerAdapter.java | 162 +++ .../src/java/org/libreoffice/DocumentPartView.java | 21 + .../libreoffice/DocumentPartViewListAdapter.java | 50 + .../src/java/org/libreoffice/FontController.java | 449 ++++++++ .../java/org/libreoffice/FormattingController.java | 496 +++++++++ .../java/org/libreoffice/InvalidationHandler.java | 768 ++++++++++++++ .../source/src/java/org/libreoffice/LOEvent.java | 177 ++++ .../libreoffice/LOKitInputConnectionHandler.java | 74 ++ .../src/java/org/libreoffice/LOKitShell.java | 169 +++ .../src/java/org/libreoffice/LOKitThread.java | 447 ++++++++ .../java/org/libreoffice/LOKitTileProvider.java | 820 ++++++++++++++ .../org/libreoffice/LibreOfficeApplication.java | 33 + .../org/libreoffice/LibreOfficeMainActivity.java | 1121 ++++++++++++++++++++ .../src/java/org/libreoffice/LocaleHelper.java | 58 + .../java/org/libreoffice/PDFDocumentAdapter.java | 86 ++ .../org/libreoffice/PasswordDialogFragment.java | 56 + .../java/org/libreoffice/PresentationActivity.java | 177 ++++ .../src/java/org/libreoffice/SearchController.java | 82 ++ .../src/java/org/libreoffice/SettingsActivity.java | 63 ++ .../org/libreoffice/SettingsListenerModel.java | 56 + .../src/java/org/libreoffice/ThumbnailCreator.java | 121 +++ .../src/java/org/libreoffice/TileIdentifier.java | 92 ++ .../src/java/org/libreoffice/TileProvider.java | 205 ++++ .../java/org/libreoffice/TileProviderFactory.java | 31 + .../java/org/libreoffice/ToolbarController.java | 274 +++++ .../org/libreoffice/UNOCommandsController.java | 85 ++ .../src/java/org/libreoffice/UnitConverter.java | 16 + .../org/libreoffice/canvas/AdjustLengthLine.java | 103 ++ .../java/org/libreoffice/canvas/BitmapHandle.java | 63 ++ .../org/libreoffice/canvas/CalcHeaderCell.java | 54 + .../org/libreoffice/canvas/CalcSelectionBox.java | 111 ++ .../java/org/libreoffice/canvas/CanvasElement.java | 45 + .../canvas/CanvasElementImplRequirement.java | 25 + .../libreoffice/canvas/CommonCanvasElement.java | 46 + .../src/java/org/libreoffice/canvas/Cursor.java | 56 + .../org/libreoffice/canvas/GraphicSelection.java | 295 ++++++ .../libreoffice/canvas/GraphicSelectionHandle.java | 146 +++ .../java/org/libreoffice/canvas/ImageUtils.java | 29 + .../org/libreoffice/canvas/PageNumberRect.java | 64 ++ .../org/libreoffice/canvas/SelectionHandle.java | 73 ++ .../org/libreoffice/canvas/SelectionHandleEnd.java | 22 + .../libreoffice/canvas/SelectionHandleMiddle.java | 34 + .../libreoffice/canvas/SelectionHandleStart.java | 34 + .../libreoffice/overlay/CalcHeadersController.java | 281 +++++ .../org/libreoffice/overlay/CalcHeadersView.java | 278 +++++ .../org/libreoffice/overlay/DocumentOverlay.java | 271 +++++ .../libreoffice/overlay/DocumentOverlayView.java | 552 ++++++++++ .../src/java/org/libreoffice/ui/FileUtilities.java | 153 +++ .../org/libreoffice/ui/LibreOfficeUIActivity.java | 473 +++++++++ .../src/java/org/libreoffice/ui/PageView.java | 69 ++ .../src/java/org/libreoffice/ui/RecentFile.java | 25 + .../org/libreoffice/ui/RecentFilesAdapter.java | 93 ++ .../mozilla/gecko/OnInterceptTouchListener.java | 14 + .../org/mozilla/gecko/OnSlideSwipeListener.java | 94 ++ .../java/org/mozilla/gecko/ZoomConstraints.java | 42 + .../src/java/org/mozilla/gecko/gfx/Axis.java | 337 ++++++ .../org/mozilla/gecko/gfx/BufferedCairoImage.java | 83 ++ .../java/org/mozilla/gecko/gfx/CairoGLInfo.java | 35 + .../src/java/org/mozilla/gecko/gfx/CairoImage.java | 28 + .../src/java/org/mozilla/gecko/gfx/CairoUtils.java | 51 + .../org/mozilla/gecko/gfx/ComposedTileLayer.java | 290 +++++ .../mozilla/gecko/gfx/DisplayPortCalculator.java | 760 +++++++++++++ .../org/mozilla/gecko/gfx/DisplayPortMetrics.java | 67 ++ .../org/mozilla/gecko/gfx/DynamicTileLayer.java | 30 + .../org/mozilla/gecko/gfx/FixedZoomTileLayer.java | 31 + .../src/java/org/mozilla/gecko/gfx/FloatSize.java | 53 + .../java/org/mozilla/gecko/gfx/GLController.java | 275 +++++ .../org/mozilla/gecko/gfx/GeckoLayerClient.java | 356 +++++++ .../gecko/gfx/ImmutableViewportMetrics.java | 241 +++++ .../mozilla/gecko/gfx/InputConnectionHandler.java | 15 + .../src/java/org/mozilla/gecko/gfx/IntSize.java | 73 ++ .../mozilla/gecko/gfx/JavaPanZoomController.java | 1094 +++++++++++++++++++ .../src/java/org/mozilla/gecko/gfx/Layer.java | 218 ++++ .../java/org/mozilla/gecko/gfx/LayerRenderer.java | 520 +++++++++ .../src/java/org/mozilla/gecko/gfx/LayerView.java | 445 ++++++++ .../org/mozilla/gecko/gfx/NinePatchTileLayer.java | 131 +++ .../org/mozilla/gecko/gfx/PanZoomController.java | 36 + .../java/org/mozilla/gecko/gfx/PanZoomTarget.java | 26 + .../src/java/org/mozilla/gecko/gfx/PointUtils.java | 51 + .../src/java/org/mozilla/gecko/gfx/RectUtils.java | 110 ++ .../mozilla/gecko/gfx/RenderControllerThread.java | 148 +++ .../java/org/mozilla/gecko/gfx/ScrollbarLayer.java | 451 ++++++++ .../gecko/gfx/SimpleScaleGestureDetector.java | 322 ++++++ .../org/mozilla/gecko/gfx/SingleTileLayer.java | 154 +++ .../src/java/org/mozilla/gecko/gfx/SubTile.java | 254 +++++ .../mozilla/gecko/gfx/SubdocumentScrollHelper.java | 78 ++ .../src/java/org/mozilla/gecko/gfx/TextLayer.java | 69 ++ .../org/mozilla/gecko/gfx/TextureGenerator.java | 77 ++ .../java/org/mozilla/gecko/gfx/TextureReaper.java | 62 ++ .../src/java/org/mozilla/gecko/gfx/TileLayer.java | 176 +++ .../org/mozilla/gecko/gfx/TouchEventHandler.java | 306 ++++++ .../org/mozilla/gecko/gfx/ViewportMetrics.java | 173 +++ .../java/org/mozilla/gecko/util/FloatUtils.java | 41 + 229 files changed, 21330 insertions(+) create mode 100644 android/source/AndroidManifest.xml create mode 100644 android/source/Makefile create mode 100644 android/source/ReleaseManifest.xml create mode 100644 android/source/build.gradle create mode 100644 android/source/fonts.conf create mode 100644 android/source/gradle.properties create mode 100644 android/source/gradle/wrapper/gradle-wrapper.jar create mode 100644 android/source/gradle/wrapper/gradle-wrapper.properties create mode 100755 android/source/gradlew create mode 100755 android/source/gradlew.bat create mode 100644 android/source/ic_launcher-web.png create mode 100644 android/source/proguard-project.txt create mode 100644 android/source/res/anim/fab_close.xml create mode 100644 android/source/res/anim/fab_open.xml create mode 100644 android/source/res/drawable-hdpi/action_search.png create mode 100644 android/source/res/drawable-hdpi/action_search_light.png create mode 100644 android/source/res/drawable-hdpi/handle_alias_end.xml create mode 100644 android/source/res/drawable-hdpi/handle_alias_middle.xml create mode 100644 android/source/res/drawable-hdpi/handle_alias_start.xml create mode 100644 android/source/res/drawable-hdpi/ic_folder_grey_48dp.xml create mode 100644 android/source/res/drawable-hdpi/ic_format_bold.xml create mode 100644 android/source/res/drawable-hdpi/ic_format_italic.xml create mode 100644 android/source/res/drawable-hdpi/ic_format_strikethrough.xml create mode 100644 android/source/res/drawable-hdpi/ic_format_underlined.xml create mode 100644 android/source/res/drawable-hdpi/ic_keyboard.xml create mode 100644 android/source/res/drawable-hdpi/ic_menu.xml create mode 100644 android/source/res/drawable-hdpi/ic_text_format.xml create mode 100644 android/source/res/drawable-hdpi/light_view_as_grid.png create mode 100644 android/source/res/drawable-hdpi/light_view_as_list.png create mode 100644 android/source/res/drawable-hdpi/lo_icon.png create mode 100644 android/source/res/drawable-mdpi/background.png create mode 100644 android/source/res/drawable-mdpi/lo_icon.png create mode 100644 android/source/res/drawable-mdpi/shadow.png create mode 100644 android/source/res/drawable-xhdpi/handle_image_end.png create mode 100644 android/source/res/drawable-xhdpi/handle_image_middle.png create mode 100644 android/source/res/drawable-xhdpi/handle_image_start.png create mode 100644 android/source/res/drawable-xxxhdpi/ic_check_black_24dp.png create mode 100644 android/source/res/drawable-xxxhdpi/ic_format_align_center_black_24dp.png create mode 100644 android/source/res/drawable-xxxhdpi/ic_format_align_justify_black_24dp.png create mode 100644 android/source/res/drawable-xxxhdpi/ic_format_align_left_black_24dp.png create mode 100644 android/source/res/drawable-xxxhdpi/ic_format_align_right_black_24dp.png create mode 100644 android/source/res/drawable-xxxhdpi/ic_format_bold_black_24dp.png create mode 100644 android/source/res/drawable-xxxhdpi/ic_format_italic_black_24dp.png create mode 100644 android/source/res/drawable-xxxhdpi/ic_format_list_bulleted_black_24dp.png create mode 100644 android/source/res/drawable-xxxhdpi/ic_format_list_numbered_black_24dp.png create mode 100644 android/source/res/drawable-xxxhdpi/ic_format_strikethrough_black_24dp.png create mode 100644 android/source/res/drawable-xxxhdpi/ic_format_underlined_black_24dp.png create mode 100644 android/source/res/drawable-xxxhdpi/ic_keyboard_black_24dp.png create mode 100644 android/source/res/drawable-xxxhdpi/ic_menu_black_24dp.png create mode 100644 android/source/res/drawable-xxxhdpi/ic_redo_black_24dp.png create mode 100644 android/source/res/drawable-xxxhdpi/ic_search_black_24dp.png create mode 100644 android/source/res/drawable-xxxhdpi/ic_search_direction_down_black_24dp.png create mode 100644 android/source/res/drawable-xxxhdpi/ic_search_direction_up_black_24dp.png create mode 100644 android/source/res/drawable-xxxhdpi/ic_text_format_black_24dp.png create mode 100644 android/source/res/drawable-xxxhdpi/ic_undo_black_24dp.png create mode 100644 android/source/res/drawable-xxxhdpi/image_button_background.xml create mode 100644 android/source/res/drawable/calc.png create mode 100644 android/source/res/drawable/draw.png create mode 100644 android/source/res/drawable/dummy_page.png create mode 100644 android/source/res/drawable/ic_add_black_24dp.xml create mode 100644 android/source/res/drawable/ic_arrow_back_black_24dp.xml create mode 100644 android/source/res/drawable/ic_auto_color.xml create mode 100644 android/source/res/drawable/ic_check.xml create mode 100644 android/source/res/drawable/ic_content_copy_black_24dp.xml create mode 100644 android/source/res/drawable/ic_content_cut_black_24dp.xml create mode 100644 android/source/res/drawable/ic_content_paste_black_24dp.xml create mode 100644 android/source/res/drawable/ic_done_all_white_12dp.xml create mode 100644 android/source/res/drawable/ic_done_white_12dp.xml create mode 100644 android/source/res/drawable/ic_filter_list_black_24dp.xml create mode 100644 android/source/res/drawable/ic_folder_black_24dp.xml create mode 100644 android/source/res/drawable/ic_format_align_center.xml create mode 100644 android/source/res/drawable/ic_format_align_justify.xml create mode 100644 android/source/res/drawable/ic_format_align_left.xml create mode 100644 android/source/res/drawable/ic_format_align_right.xml create mode 100644 android/source/res/drawable/ic_format_bullets.xml create mode 100644 android/source/res/drawable/ic_format_clear_black_24dp.xml create mode 100644 android/source/res/drawable/ic_format_numbering.xml create mode 100644 android/source/res/drawable/ic_grid_off_black_24dp.xml create mode 100644 android/source/res/drawable/ic_grid_on_black_24dp.xml create mode 100644 android/source/res/drawable/ic_grow.xml create mode 100644 android/source/res/drawable/ic_insert_drive_file_black_24dp.xml create mode 100644 android/source/res/drawable/ic_keyboard_backspace_black_24dp.xml create mode 100644 android/source/res/drawable/ic_line.xml create mode 100644 android/source/res/drawable/ic_menu_back.png create mode 100644 android/source/res/drawable/ic_rect.xml create mode 100644 android/source/res/drawable/ic_redo.xml create mode 100644 android/source/res/drawable/ic_sd_card_black_24dp.xml create mode 100644 android/source/res/drawable/ic_search.xml create mode 100644 android/source/res/drawable/ic_search_direction_down.xml create mode 100644 android/source/res/drawable/ic_search_direction_up.xml create mode 100644 android/source/res/drawable/ic_settings_black_24dp.xml create mode 100644 android/source/res/drawable/ic_shrink.xml create mode 100644 android/source/res/drawable/ic_sort_black_24dp.xml create mode 100644 android/source/res/drawable/ic_storage_black_24dp.xml create mode 100644 android/source/res/drawable/ic_subscript.xml create mode 100644 android/source/res/drawable/ic_superscript.xml create mode 100644 android/source/res/drawable/ic_undo.xml create mode 100644 android/source/res/drawable/ic_usb_black_24dp.xml create mode 100644 android/source/res/drawable/impress.png create mode 100644 android/source/res/drawable/label_background.xml create mode 100644 android/source/res/drawable/writer.png create mode 100644 android/source/res/layout/about.xml create mode 100644 android/source/res/layout/activity_document_browser.xml create mode 100644 android/source/res/layout/activity_main.xml create mode 100644 android/source/res/layout/calc_header_popup.xml create mode 100644 android/source/res/layout/colorbox.xml create mode 100644 android/source/res/layout/document_part_list_layout.xml create mode 100644 android/source/res/layout/document_viewer.xml create mode 100644 android/source/res/layout/item_recent_files.xml create mode 100644 android/source/res/layout/main.xml create mode 100644 android/source/res/layout/number_picker.xml create mode 100644 android/source/res/layout/password_dialog.xml create mode 100644 android/source/res/layout/presentation_mode.xml create mode 100644 android/source/res/layout/text_selection_handles.xml create mode 100644 android/source/res/layout/toolbar_bottom.xml create mode 100644 android/source/res/layout/toolbar_color_picker.xml create mode 100644 android/source/res/menu/main.xml create mode 100644 android/source/res/menu/view_menu.xml create mode 100644 android/source/res/mipmap-hdpi/ic_launcher.png create mode 100644 android/source/res/mipmap-mdpi/ic_launcher.png create mode 100644 android/source/res/mipmap-xhdpi/ic_launcher.png create mode 100644 android/source/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 android/source/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 android/source/res/values-de/strings.xml create mode 100644 android/source/res/values-tr/strings.xml create mode 100644 android/source/res/values/arrays.xml create mode 100644 android/source/res/values/colors.xml create mode 100644 android/source/res/values/dimens.xml create mode 100644 android/source/res/values/ids.xml create mode 100644 android/source/res/values/strings.xml create mode 100644 android/source/res/values/themes.xml create mode 100644 android/source/res/xml/file_paths.xml create mode 100644 android/source/res/xml/libreoffice_preferences.xml create mode 100644 android/source/src/java/org/libreoffice/AboutDialogFragment.java create mode 100644 android/source/src/java/org/libreoffice/ColorPaletteAdapter.java create mode 100644 android/source/src/java/org/libreoffice/ColorPaletteListener.java create mode 100644 android/source/src/java/org/libreoffice/ColorPickerAdapter.java create mode 100644 android/source/src/java/org/libreoffice/DocumentPartView.java create mode 100644 android/source/src/java/org/libreoffice/DocumentPartViewListAdapter.java create mode 100644 android/source/src/java/org/libreoffice/FontController.java create mode 100644 android/source/src/java/org/libreoffice/FormattingController.java create mode 100644 android/source/src/java/org/libreoffice/InvalidationHandler.java create mode 100644 android/source/src/java/org/libreoffice/LOEvent.java create mode 100644 android/source/src/java/org/libreoffice/LOKitInputConnectionHandler.java create mode 100644 android/source/src/java/org/libreoffice/LOKitShell.java create mode 100644 android/source/src/java/org/libreoffice/LOKitThread.java create mode 100644 android/source/src/java/org/libreoffice/LOKitTileProvider.java create mode 100644 android/source/src/java/org/libreoffice/LibreOfficeApplication.java create mode 100644 android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java create mode 100644 android/source/src/java/org/libreoffice/LocaleHelper.java create mode 100644 android/source/src/java/org/libreoffice/PDFDocumentAdapter.java create mode 100644 android/source/src/java/org/libreoffice/PasswordDialogFragment.java create mode 100644 android/source/src/java/org/libreoffice/PresentationActivity.java create mode 100644 android/source/src/java/org/libreoffice/SearchController.java create mode 100644 android/source/src/java/org/libreoffice/SettingsActivity.java create mode 100644 android/source/src/java/org/libreoffice/SettingsListenerModel.java create mode 100644 android/source/src/java/org/libreoffice/ThumbnailCreator.java create mode 100644 android/source/src/java/org/libreoffice/TileIdentifier.java create mode 100644 android/source/src/java/org/libreoffice/TileProvider.java create mode 100644 android/source/src/java/org/libreoffice/TileProviderFactory.java create mode 100644 android/source/src/java/org/libreoffice/ToolbarController.java create mode 100644 android/source/src/java/org/libreoffice/UNOCommandsController.java create mode 100644 android/source/src/java/org/libreoffice/UnitConverter.java create mode 100644 android/source/src/java/org/libreoffice/canvas/AdjustLengthLine.java create mode 100644 android/source/src/java/org/libreoffice/canvas/BitmapHandle.java create mode 100644 android/source/src/java/org/libreoffice/canvas/CalcHeaderCell.java create mode 100644 android/source/src/java/org/libreoffice/canvas/CalcSelectionBox.java create mode 100644 android/source/src/java/org/libreoffice/canvas/CanvasElement.java create mode 100644 android/source/src/java/org/libreoffice/canvas/CanvasElementImplRequirement.java create mode 100644 android/source/src/java/org/libreoffice/canvas/CommonCanvasElement.java create mode 100644 android/source/src/java/org/libreoffice/canvas/Cursor.java create mode 100644 android/source/src/java/org/libreoffice/canvas/GraphicSelection.java create mode 100644 android/source/src/java/org/libreoffice/canvas/GraphicSelectionHandle.java create mode 100644 android/source/src/java/org/libreoffice/canvas/ImageUtils.java create mode 100644 android/source/src/java/org/libreoffice/canvas/PageNumberRect.java create mode 100644 android/source/src/java/org/libreoffice/canvas/SelectionHandle.java create mode 100644 android/source/src/java/org/libreoffice/canvas/SelectionHandleEnd.java create mode 100644 android/source/src/java/org/libreoffice/canvas/SelectionHandleMiddle.java create mode 100644 android/source/src/java/org/libreoffice/canvas/SelectionHandleStart.java create mode 100644 android/source/src/java/org/libreoffice/overlay/CalcHeadersController.java create mode 100644 android/source/src/java/org/libreoffice/overlay/CalcHeadersView.java create mode 100644 android/source/src/java/org/libreoffice/overlay/DocumentOverlay.java create mode 100644 android/source/src/java/org/libreoffice/overlay/DocumentOverlayView.java create mode 100644 android/source/src/java/org/libreoffice/ui/FileUtilities.java create mode 100644 android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java create mode 100644 android/source/src/java/org/libreoffice/ui/PageView.java create mode 100644 android/source/src/java/org/libreoffice/ui/RecentFile.java create mode 100644 android/source/src/java/org/libreoffice/ui/RecentFilesAdapter.java create mode 100644 android/source/src/java/org/mozilla/gecko/OnInterceptTouchListener.java create mode 100644 android/source/src/java/org/mozilla/gecko/OnSlideSwipeListener.java create mode 100644 android/source/src/java/org/mozilla/gecko/ZoomConstraints.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/Axis.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/BufferedCairoImage.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/CairoGLInfo.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/CairoImage.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/CairoUtils.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/ComposedTileLayer.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/DisplayPortCalculator.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/DisplayPortMetrics.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/DynamicTileLayer.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/FixedZoomTileLayer.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/FloatSize.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/GLController.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/GeckoLayerClient.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/ImmutableViewportMetrics.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/InputConnectionHandler.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/IntSize.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/JavaPanZoomController.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/Layer.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/LayerRenderer.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/LayerView.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/NinePatchTileLayer.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/PanZoomController.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/PanZoomTarget.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/PointUtils.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/RectUtils.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/RenderControllerThread.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/ScrollbarLayer.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/SimpleScaleGestureDetector.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/SingleTileLayer.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/SubTile.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/SubdocumentScrollHelper.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/TextLayer.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/TextureGenerator.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/TextureReaper.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/TileLayer.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/TouchEventHandler.java create mode 100644 android/source/src/java/org/mozilla/gecko/gfx/ViewportMetrics.java create mode 100644 android/source/src/java/org/mozilla/gecko/util/FloatUtils.java (limited to 'android/source') diff --git a/android/source/AndroidManifest.xml b/android/source/AndroidManifest.xml new file mode 100644 index 000000000..c50ad77ae --- /dev/null +++ b/android/source/AndroidManifest.xml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android/source/Makefile b/android/source/Makefile new file mode 100644 index 000000000..1dc1b42d1 --- /dev/null +++ b/android/source/Makefile @@ -0,0 +1,39 @@ +ifeq ($(BUILDDIR),) +gb_Side:=host +include ../../config_host.mk +endif + +# The default target just builds. + +all: build-gradle + +DISABLE_UI=TRUE +BOOTSTRAPDIR=../Bootstrap +include $(BOOTSTRAPDIR)/Makefile.shared + +native-code.cxx: $(SRCDIR)/solenv/bin/native-code.py + @echo "[build PY ] $@" + $< -j -g core -g writer -g calc -g draw -g edit > $@ + +install: + if test "$$ENABLE_ANDROID_LOK" != "TRUE" ; then ./gradlew $(if $(verbose),--info) $(if $(versionCode),-PcmdVersionCode=$(versionCode)) install$(if $(DISABLE_UI),StrippedUI,FullUI)$(if $(ENABLE_ANDROID_EDITING),Editing)Debug ; fi + @if test "$$ENABLE_ANDROID_LOK" != "TRUE" ; then echo ; echo 'Run it with "make run"' ; echo ; fi + +uninstall: + $(ANDROID_SDK_DIR)/platform-tools/adb uninstall $(ANDROID_PACKAGE_NAME) + +clean: + rm -rf assets assets_fullUI assets_strippedUI jniLibs jniLibs_debug $(OBJLOCAL) + rm -f native-code.cxx + rm -f liboSettings.gradle + +build-gradle: liboSettings.gradle local.properties link-so +ifeq ($(ENABLE_JAVA),TRUE) + if test "$$ENABLE_ANDROID_LOK" != "TRUE" ; then ./gradlew $(if $(verbose),--info) $(if $(versionCode),-PcmdVersionCode=$(versionCode)) assemble$(if $(DISABLE_UI),StrippedUI,FullUI)$(if $(ENABLE_ANDROID_EDITING),Editing)$(if $(ENABLE_RELEASE_BUILD),Release,Debug) ; fi +endif + +run: + if test "$$ENABLE_ANDROID_LOK" != "TRUE" ; then $(ANDROID_SDK_DIR)/platform-tools/adb shell am start -n $(ANDROID_PACKAGE_NAME)/org.libreoffice.ui.LibreOfficeUIActivity ; fi + +debugrun: + @echo "please debug with lldb from within Android Studio, or setup ndk-gdb manually (see android/README for details)" diff --git a/android/source/ReleaseManifest.xml b/android/source/ReleaseManifest.xml new file mode 100644 index 000000000..e412fe9fc --- /dev/null +++ b/android/source/ReleaseManifest.xml @@ -0,0 +1,7 @@ + + + + + diff --git a/android/source/build.gradle b/android/source/build.gradle new file mode 100644 index 000000000..26da7cf9c --- /dev/null +++ b/android/source/build.gradle @@ -0,0 +1,298 @@ +apply plugin: 'com.android.application' +// buildhost settings - paths and the like +apply from: 'liboSettings.gradle' + +allprojects { + repositories { + mavenCentral() + google() + } +} +//build-time dependencies - android plugin for gradle +buildscript { + repositories { + mavenCentral() + google() + } + dependencies { + classpath 'com.android.tools.build:gradle:7.2.1' + } +} + +// compile-time dependencies +dependencies { + implementation fileTree(dir: "${liboInstdir}/${liboUREJavaFolder}", include: [ + "java_uno.jar", + "libreoffice.jar", + "unoloader.jar" + ]) + implementation 'com.google.android.material:material:1.6.0' + implementation 'androidx.constraintlayout:constraintlayout:2.1.4' +} + +android { + compileSdkVersion 32 + // uses non-conventional source layout, so need to reconfigure accordingly + // ToDo move to conventional layout, so stuff can be stripped down. + sourceSets { + main.manifest.srcFile 'AndroidManifest.xml' + main.assets.srcDirs = ['assets'] + main.res.srcDirs = ['res', 'res_generated'] + main.java.srcDirs = ['../Bootstrap/src', 'src/java'] + main.jniLibs.srcDirs = ["${liboJniLibsdir}"] + main.jni.srcDirs = [] // don't attempt to build native-lib via gradle + // the configuration data that might be stripped or not + fullUI.assets.srcDirs 'assets_fullUI' + strippedUI.assets.srcDirs 'assets_strippedUI' + strippedUIEditing.assets.srcDirs 'assets_strippedUI' + } + defaultConfig { + minSdkVersion 16 + targetSdkVersion 32 + vectorDrawables.useSupportLibrary = true + } + buildTypes { + debug { + // make android studio happy... + jniDebuggable true + // would work just fine with external, but setting emulator up is a little more work + manifestPlaceholders = [installLocation: "auto"] + } + release { + manifestPlaceholders = [installLocation: "preferExternal"] + } + } + + flavorDimensions "default" + productFlavors { + strippedUI { + dimension "default" + buildConfigField 'boolean', 'ALLOW_EDITING', 'false' + } + strippedUIEditing { + dimension "default" + buildConfigField 'boolean', 'ALLOW_EDITING', 'true' + versionNameSuffix "-editing" + } + fullUI.dimension "default" + } + lint { + // don't error-out on missing translations + warning 'MissingTranslation' + } +} + +/* remark inherited from makefile: +Then "assets". Let the directory structure under assets mimic +that under solver for now. + +Please note that I have no idea what all of this is really necessary and for +much of this stuff being copied, no idea whether it makes any sense at all. +Much of this is copy-pasted from android/qa/sc/Makefile (where a couple of +unit tests for sc are built, and those do seem to mostly work) and +android/qa/desktop/Makefile (mmeeks's desktop demo, also works to some +extent) + */ + +// Assets that are unpacked at run-time into the app's data directory. These +// are files read by non-LO code, fontconfig and freetype for now, that doesn't +// understand "/assets" paths. +task copyUnpackAssets(type: Copy) { + description "copies assets that need to be extracted on the device" + into 'assets/unpack' + into('program') { + from("${liboInstdir}/${liboEtcFolder}/types") { + includes = [ + "offapi.rdb", + "oovbaapi.rdb" + ] + } + from("${liboInstdir}/${liboUreMiscFolder}") { + includes = ["types.rdb"] + rename 'types.rdb', 'udkapi.rdb' + } + } + into('user/fonts') { + from "${liboInstdir}/share/fonts/truetype" + // Note: restrict list of fonts due to size considerations - no technical reason anymore + // ToDo: fonts would be good candidate for using Expansion Files instead + includes = [ + "Liberation*.ttf", + "Caladea-*.ttf", + "Carlito-*.ttf", + "Gen*.ttf", + "opens___.ttf" + ] + } + into('etc/fonts') { + from "./" + includes = ['fonts.conf'] + filter { + String line -> + line.replaceAll( + '@@APPLICATION_ID@@', new String("${android.defaultConfig.applicationId}") + ) + } + } +} + +task copyAssets(type: Copy) { + description "copies assets that can be accessed within the installed apk" + into 'assets' + + // include icons + into ('share') { + into ('config') { + from ("${liboInstdir}/share/config") + includes = ['images_**.zip'] + } + } + + into('program') { + from "${liboInstdir}/program" + includes = ['services.rdb', 'services/services.rdb'] + + into('resource') { + from "${liboInstdir}/${liboSharedResFolder}" + includes = ['*en-US.res'] + } + } + into('share') { + from("${liboInstdir}/share") { + // Filter data is needed by e.g. the drawingML preset shape import. + includes = ['registry/**', 'filter/**'] + // those two get processed by mobile-config.py + excludes = ['registry/main.xcd', 'registry/res/registry_en-US.xcd'] + } + // separate data files for Chinese and Japanese + from("${liboWorkdir}/CustomTarget/i18npool/breakiterator/") { + include '*.data' + } + } + // include required .ui files + into('config') { + from "${liboInstdir}/share/config" + include '**/annotation.ui', + '**/hfmenubutton.ui', + '**/inforeadonlydialog.ui', + '**/pbmenubutton.ui', + '**/tabbuttons.ui', '**/tabviewbar.ui' + } +} + +task copyAppResources(type: Copy) { + description "copies documents to make them available as app resources" + into 'res_generated/raw' + from("${liboInstdir}") { + includes = ["LICENSE", "NOTICE"] + rename "LICENSE", "license.txt" + rename "NOTICE", "notice.txt" + } + from("${liboExampleDocument}") { + rename ".*", "example.odt" + } +} + +task createFullConfig(type: Copy) { + // grab dir to clear whole hierarchy on clean target + outputs.dir "assets_fullUI" + into 'assets_fullUI/share/config/soffice.cfg' + from "${liboInstdir}/share/config/soffice.cfg" +} + +task createStrippedConfig { + def preserveDir = file("assets_strippedUI/share/config/soffice.cfg/empty") + outputs.dir "assets_strippedUI" + outputs.dir "assets_strippedUI/share/registry/res" + outputs.file preserveDir + + doLast { + file('assets_strippedUI/share/registry/res').mkdirs() + file("assets_strippedUI/share/config/soffice.cfg").mkdirs() + // just empty file + preserveDir.text = "" + } +} + + +task createStrippedConfigMain(type: Exec) { + dependsOn 'createStrippedConfig' + inputs.files "${liboInstdir}/share/registry/main.xcd", "${liboSrcRoot}/android/mobile-config.py" + outputs.file "assets_strippedUI/share/registry/main.xcd" + executable "${liboSrcRoot}/android/mobile-config.py" + args = ["${liboInstdir}/share/registry/main.xcd", "assets_strippedUI/share/registry/main.xcd"] +} + +task createStrippedConfigRegistry(type: Exec) { + dependsOn 'createStrippedConfig' + inputs.files "${liboInstdir}/share/registry/res/registry_en-US.xcd", "${liboSrcRoot}/android/mobile-config.py" + outputs.file "assets_strippedUI/share/registry/res/registry_en-US.xcd" + executable "${liboSrcRoot}/android/mobile-config.py" + args = ["${liboInstdir}/share/registry/res/registry_en-US.xcd", "assets_strippedUI/share/registry/res/registry_en-US.xcd"] + doFirst { + file('assets_strippedUI/share/registry/res').mkdirs() + } +} + +task createRCfiles { + inputs.file "liboSettings.gradle" + dependsOn copyUnpackAssets, copyAssets + def sofficerc = file('assets/unpack/program/sofficerc') + def fundamentalrc = file('assets/program/fundamentalrc') + def bootstraprc = file('assets/program/bootstraprc') + def unorc = file('assets/program/unorc') + def versionrc = file('assets/program/versionrc') + + outputs.files sofficerc, fundamentalrc, unorc, bootstraprc, versionrc + + doLast { + sofficerc.text = '''\ + [Bootstrap] + Logo=1 + NativeProgress=1 + URE_BOOTSTRAP=file:///assets/program/fundamentalrc + HOME=$APP_DATA_DIR/cache + OSL_SOCKET_PATH=$APP_DATA_DIR/cache + '''.stripIndent() + + fundamentalrc.text = '''\ + [Bootstrap] + LO_LIB_DIR=file://$APP_DATA_DIR/lib/ + BRAND_BASE_DIR=file:///assets + CONFIGURATION_LAYERS=xcsxcu:${BRAND_BASE_DIR}/share/registry res:${BRAND_BASE_DIR}/share/registry + URE_BIN_DIR=file:///assets/ure/bin/dir/nothing-here/we-can/exec-anyway + '''.stripIndent() + + bootstraprc.text = '''\ + [Bootstrap] + InstallMode= + ProductKey=LibreOffice '''+ "${liboVersionMajor}.${liboVersionMinor}" + ''' + UserInstallation=file://$APP_DATA_DIR + '''.stripIndent() + + unorc.text = '''\ + [Bootstrap] + URE_INTERNAL_LIB_DIR=file://$APP_DATA_DIR/lib/ + UNO_TYPES=file://$APP_DATA_DIR/program/udkapi.rdb file://$APP_DATA_DIR/program/offapi.rdb file://$APP_DATA_DIR/program/oovbaapi.rdb + UNO_SERVICES=file:///assets/program/services.rdb file:///assets/program/services/services.rdb + '''.stripIndent() + + versionrc.text = '''\ + [Version] + AllLanguages=en-US + buildid=''' + "${liboGitFullCommit}" + ''' + ReferenceOOoMajorMinor=4.1 + '''.stripIndent() + } +} + +// creating the UI stuff is cheap, don't bother only applying it for the flavor... +preBuild.dependsOn 'createRCfiles', + 'createStrippedConfigMain', + 'createStrippedConfigRegistry', + 'createFullConfig', + 'copyAppResources' + +clean.dependsOn 'cleanCopyAssets', + 'cleanCreateStrippedConfig', + 'cleanCreateFullConfig' diff --git a/android/source/fonts.conf b/android/source/fonts.conf new file mode 100644 index 000000000..51355b747 --- /dev/null +++ b/android/source/fonts.conf @@ -0,0 +1,88 @@ + + + + + + + + /system/fonts + + + serif + + Droid Serif + + + + sans-serif + + Roboto + Droid Sans Fallback + + + + monospace + + Droid Sans Mono + + + + + + + mono + + + monospace + + + + + + + sans serif + + + sans-serif + + + + + + + sans + + + sans-serif + + + + + conf.d + + + + + /data/data/@@APPLICATION_ID@@/fontconfig + + + + + 3600 + + + + diff --git a/android/source/gradle.properties b/android/source/gradle.properties new file mode 100644 index 000000000..fe72551bf --- /dev/null +++ b/android/source/gradle.properties @@ -0,0 +1,2 @@ +android.useAndroidX=true +org.gradle.jvmargs=-Xmx3072m diff --git a/android/source/gradle/wrapper/gradle-wrapper.jar b/android/source/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 000000000..8c0fb64a8 Binary files /dev/null and b/android/source/gradle/wrapper/gradle-wrapper.jar differ diff --git a/android/source/gradle/wrapper/gradle-wrapper.properties b/android/source/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 000000000..e97856541 --- /dev/null +++ b/android/source/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Tue Mar 03 14:01:57 CET 2020 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip diff --git a/android/source/gradlew b/android/source/gradlew new file mode 100755 index 000000000..91a7e269e --- /dev/null +++ b/android/source/gradlew @@ -0,0 +1,164 @@ +#!/usr/bin/env bash + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn ( ) { + echo "$*" +} + +die ( ) { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; +esac + +# For Cygwin, ensure paths are in UNIX format before anything is touched. +if $cygwin ; then + [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` +fi + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >&- +APP_HOME="`pwd -P`" +cd "$SAVED" >&- + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules +function splitJvmOpts() { + JVM_OPTS=("$@") +} +eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS +JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" + +exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/android/source/gradlew.bat b/android/source/gradlew.bat new file mode 100755 index 000000000..72d362daf --- /dev/null +++ b/android/source/gradlew.bat @@ -0,0 +1,90 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windows variants + +if not "%OS%" == "Windows_NT" goto win9xME_args +if "%@eval[2+2]" == "4" goto 4NT_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* +goto execute + +:4NT_args +@rem Get arguments from the 4NT Shell from JP Software +set CMD_LINE_ARGS=%$ + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/android/source/ic_launcher-web.png b/android/source/ic_launcher-web.png new file mode 100644 index 000000000..e9dcfcacf Binary files /dev/null and b/android/source/ic_launcher-web.png differ diff --git a/android/source/proguard-project.txt b/android/source/proguard-project.txt new file mode 100644 index 000000000..f2fe1559a --- /dev/null +++ b/android/source/proguard-project.txt @@ -0,0 +1,20 @@ +# To enable ProGuard in your project, edit project.properties +# to define the proguard.config property as described in that file. +# +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in ${sdk.dir}/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/android/source/res/anim/fab_close.xml b/android/source/res/anim/fab_close.xml new file mode 100644 index 000000000..c798ddaba --- /dev/null +++ b/android/source/res/anim/fab_close.xml @@ -0,0 +1,19 @@ + + + + + + diff --git a/android/source/res/anim/fab_open.xml b/android/source/res/anim/fab_open.xml new file mode 100644 index 000000000..30071af8a --- /dev/null +++ b/android/source/res/anim/fab_open.xml @@ -0,0 +1,19 @@ + + + + + + diff --git a/android/source/res/drawable-hdpi/action_search.png b/android/source/res/drawable-hdpi/action_search.png new file mode 100644 index 000000000..e6b704518 Binary files /dev/null and b/android/source/res/drawable-hdpi/action_search.png differ diff --git a/android/source/res/drawable-hdpi/action_search_light.png b/android/source/res/drawable-hdpi/action_search_light.png new file mode 100644 index 000000000..f12e005eb Binary files /dev/null and b/android/source/res/drawable-hdpi/action_search_light.png differ diff --git a/android/source/res/drawable-hdpi/handle_alias_end.xml b/android/source/res/drawable-hdpi/handle_alias_end.xml new file mode 100644 index 000000000..83198618a --- /dev/null +++ b/android/source/res/drawable-hdpi/handle_alias_end.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable-hdpi/handle_alias_middle.xml b/android/source/res/drawable-hdpi/handle_alias_middle.xml new file mode 100644 index 000000000..a8587f66d --- /dev/null +++ b/android/source/res/drawable-hdpi/handle_alias_middle.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable-hdpi/handle_alias_start.xml b/android/source/res/drawable-hdpi/handle_alias_start.xml new file mode 100644 index 000000000..df104709f --- /dev/null +++ b/android/source/res/drawable-hdpi/handle_alias_start.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable-hdpi/ic_folder_grey_48dp.xml b/android/source/res/drawable-hdpi/ic_folder_grey_48dp.xml new file mode 100644 index 000000000..c652bf48e --- /dev/null +++ b/android/source/res/drawable-hdpi/ic_folder_grey_48dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/android/source/res/drawable-hdpi/ic_format_bold.xml b/android/source/res/drawable-hdpi/ic_format_bold.xml new file mode 100644 index 000000000..a3519d449 --- /dev/null +++ b/android/source/res/drawable-hdpi/ic_format_bold.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable-hdpi/ic_format_italic.xml b/android/source/res/drawable-hdpi/ic_format_italic.xml new file mode 100644 index 000000000..7a3e9872d --- /dev/null +++ b/android/source/res/drawable-hdpi/ic_format_italic.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable-hdpi/ic_format_strikethrough.xml b/android/source/res/drawable-hdpi/ic_format_strikethrough.xml new file mode 100644 index 000000000..1aaa1d25f --- /dev/null +++ b/android/source/res/drawable-hdpi/ic_format_strikethrough.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable-hdpi/ic_format_underlined.xml b/android/source/res/drawable-hdpi/ic_format_underlined.xml new file mode 100644 index 000000000..c1797e211 --- /dev/null +++ b/android/source/res/drawable-hdpi/ic_format_underlined.xml @@ -0,0 +1,5 @@ + + + diff --git a/android/source/res/drawable-hdpi/ic_keyboard.xml b/android/source/res/drawable-hdpi/ic_keyboard.xml new file mode 100644 index 000000000..00902169d --- /dev/null +++ b/android/source/res/drawable-hdpi/ic_keyboard.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable-hdpi/ic_menu.xml b/android/source/res/drawable-hdpi/ic_menu.xml new file mode 100644 index 000000000..3d9b9c9ed --- /dev/null +++ b/android/source/res/drawable-hdpi/ic_menu.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable-hdpi/ic_text_format.xml b/android/source/res/drawable-hdpi/ic_text_format.xml new file mode 100644 index 000000000..c070dddb7 --- /dev/null +++ b/android/source/res/drawable-hdpi/ic_text_format.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable-hdpi/light_view_as_grid.png b/android/source/res/drawable-hdpi/light_view_as_grid.png new file mode 100644 index 000000000..99301de80 Binary files /dev/null and b/android/source/res/drawable-hdpi/light_view_as_grid.png differ diff --git a/android/source/res/drawable-hdpi/light_view_as_list.png b/android/source/res/drawable-hdpi/light_view_as_list.png new file mode 100644 index 000000000..c5f6c97b2 Binary files /dev/null and b/android/source/res/drawable-hdpi/light_view_as_list.png differ diff --git a/android/source/res/drawable-hdpi/lo_icon.png b/android/source/res/drawable-hdpi/lo_icon.png new file mode 100644 index 000000000..d03373b9c Binary files /dev/null and b/android/source/res/drawable-hdpi/lo_icon.png differ diff --git a/android/source/res/drawable-mdpi/background.png b/android/source/res/drawable-mdpi/background.png new file mode 100644 index 000000000..56058702c Binary files /dev/null and b/android/source/res/drawable-mdpi/background.png differ diff --git a/android/source/res/drawable-mdpi/lo_icon.png b/android/source/res/drawable-mdpi/lo_icon.png new file mode 100644 index 000000000..48e90bd1f Binary files /dev/null and b/android/source/res/drawable-mdpi/lo_icon.png differ diff --git a/android/source/res/drawable-mdpi/shadow.png b/android/source/res/drawable-mdpi/shadow.png new file mode 100644 index 000000000..c696a2c74 Binary files /dev/null and b/android/source/res/drawable-mdpi/shadow.png differ diff --git a/android/source/res/drawable-xhdpi/handle_image_end.png b/android/source/res/drawable-xhdpi/handle_image_end.png new file mode 100644 index 000000000..b6e943bc0 Binary files /dev/null and b/android/source/res/drawable-xhdpi/handle_image_end.png differ diff --git a/android/source/res/drawable-xhdpi/handle_image_middle.png b/android/source/res/drawable-xhdpi/handle_image_middle.png new file mode 100644 index 000000000..4d28b4ab4 Binary files /dev/null and b/android/source/res/drawable-xhdpi/handle_image_middle.png differ diff --git a/android/source/res/drawable-xhdpi/handle_image_start.png b/android/source/res/drawable-xhdpi/handle_image_start.png new file mode 100644 index 000000000..3bd7a4cb3 Binary files /dev/null and b/android/source/res/drawable-xhdpi/handle_image_start.png differ diff --git a/android/source/res/drawable-xxxhdpi/ic_check_black_24dp.png b/android/source/res/drawable-xxxhdpi/ic_check_black_24dp.png new file mode 100644 index 000000000..2f6d6386d Binary files /dev/null and b/android/source/res/drawable-xxxhdpi/ic_check_black_24dp.png differ diff --git a/android/source/res/drawable-xxxhdpi/ic_format_align_center_black_24dp.png b/android/source/res/drawable-xxxhdpi/ic_format_align_center_black_24dp.png new file mode 100644 index 000000000..b20b21b03 Binary files /dev/null and b/android/source/res/drawable-xxxhdpi/ic_format_align_center_black_24dp.png differ diff --git a/android/source/res/drawable-xxxhdpi/ic_format_align_justify_black_24dp.png b/android/source/res/drawable-xxxhdpi/ic_format_align_justify_black_24dp.png new file mode 100644 index 000000000..15eece7a4 Binary files /dev/null and b/android/source/res/drawable-xxxhdpi/ic_format_align_justify_black_24dp.png differ diff --git a/android/source/res/drawable-xxxhdpi/ic_format_align_left_black_24dp.png b/android/source/res/drawable-xxxhdpi/ic_format_align_left_black_24dp.png new file mode 100644 index 000000000..c1d927a28 Binary files /dev/null and b/android/source/res/drawable-xxxhdpi/ic_format_align_left_black_24dp.png differ diff --git a/android/source/res/drawable-xxxhdpi/ic_format_align_right_black_24dp.png b/android/source/res/drawable-xxxhdpi/ic_format_align_right_black_24dp.png new file mode 100644 index 000000000..e5b306391 Binary files /dev/null and b/android/source/res/drawable-xxxhdpi/ic_format_align_right_black_24dp.png differ diff --git a/android/source/res/drawable-xxxhdpi/ic_format_bold_black_24dp.png b/android/source/res/drawable-xxxhdpi/ic_format_bold_black_24dp.png new file mode 100644 index 000000000..4d8b8f47b Binary files /dev/null and b/android/source/res/drawable-xxxhdpi/ic_format_bold_black_24dp.png differ diff --git a/android/source/res/drawable-xxxhdpi/ic_format_italic_black_24dp.png b/android/source/res/drawable-xxxhdpi/ic_format_italic_black_24dp.png new file mode 100644 index 000000000..cf85387d5 Binary files /dev/null and b/android/source/res/drawable-xxxhdpi/ic_format_italic_black_24dp.png differ diff --git a/android/source/res/drawable-xxxhdpi/ic_format_list_bulleted_black_24dp.png b/android/source/res/drawable-xxxhdpi/ic_format_list_bulleted_black_24dp.png new file mode 100644 index 000000000..dde94b8f7 Binary files /dev/null and b/android/source/res/drawable-xxxhdpi/ic_format_list_bulleted_black_24dp.png differ diff --git a/android/source/res/drawable-xxxhdpi/ic_format_list_numbered_black_24dp.png b/android/source/res/drawable-xxxhdpi/ic_format_list_numbered_black_24dp.png new file mode 100644 index 000000000..c1cf9519d Binary files /dev/null and b/android/source/res/drawable-xxxhdpi/ic_format_list_numbered_black_24dp.png differ diff --git a/android/source/res/drawable-xxxhdpi/ic_format_strikethrough_black_24dp.png b/android/source/res/drawable-xxxhdpi/ic_format_strikethrough_black_24dp.png new file mode 100644 index 000000000..f94704e31 Binary files /dev/null and b/android/source/res/drawable-xxxhdpi/ic_format_strikethrough_black_24dp.png differ diff --git a/android/source/res/drawable-xxxhdpi/ic_format_underlined_black_24dp.png b/android/source/res/drawable-xxxhdpi/ic_format_underlined_black_24dp.png new file mode 100644 index 000000000..8a2adce40 Binary files /dev/null and b/android/source/res/drawable-xxxhdpi/ic_format_underlined_black_24dp.png differ diff --git a/android/source/res/drawable-xxxhdpi/ic_keyboard_black_24dp.png b/android/source/res/drawable-xxxhdpi/ic_keyboard_black_24dp.png new file mode 100644 index 000000000..ba4d5be6d Binary files /dev/null and b/android/source/res/drawable-xxxhdpi/ic_keyboard_black_24dp.png differ diff --git a/android/source/res/drawable-xxxhdpi/ic_menu_black_24dp.png b/android/source/res/drawable-xxxhdpi/ic_menu_black_24dp.png new file mode 100644 index 000000000..5c747ed00 Binary files /dev/null and b/android/source/res/drawable-xxxhdpi/ic_menu_black_24dp.png differ diff --git a/android/source/res/drawable-xxxhdpi/ic_redo_black_24dp.png b/android/source/res/drawable-xxxhdpi/ic_redo_black_24dp.png new file mode 100644 index 000000000..40f107549 Binary files /dev/null and b/android/source/res/drawable-xxxhdpi/ic_redo_black_24dp.png differ diff --git a/android/source/res/drawable-xxxhdpi/ic_search_black_24dp.png b/android/source/res/drawable-xxxhdpi/ic_search_black_24dp.png new file mode 100644 index 000000000..21be57299 Binary files /dev/null and b/android/source/res/drawable-xxxhdpi/ic_search_black_24dp.png differ diff --git a/android/source/res/drawable-xxxhdpi/ic_search_direction_down_black_24dp.png b/android/source/res/drawable-xxxhdpi/ic_search_direction_down_black_24dp.png new file mode 100644 index 000000000..ad852e3e6 Binary files /dev/null and b/android/source/res/drawable-xxxhdpi/ic_search_direction_down_black_24dp.png differ diff --git a/android/source/res/drawable-xxxhdpi/ic_search_direction_up_black_24dp.png b/android/source/res/drawable-xxxhdpi/ic_search_direction_up_black_24dp.png new file mode 100644 index 000000000..99c6e3e1c Binary files /dev/null and b/android/source/res/drawable-xxxhdpi/ic_search_direction_up_black_24dp.png differ diff --git a/android/source/res/drawable-xxxhdpi/ic_text_format_black_24dp.png b/android/source/res/drawable-xxxhdpi/ic_text_format_black_24dp.png new file mode 100644 index 000000000..f38063688 Binary files /dev/null and b/android/source/res/drawable-xxxhdpi/ic_text_format_black_24dp.png differ diff --git a/android/source/res/drawable-xxxhdpi/ic_undo_black_24dp.png b/android/source/res/drawable-xxxhdpi/ic_undo_black_24dp.png new file mode 100644 index 000000000..9ca7eb73e Binary files /dev/null and b/android/source/res/drawable-xxxhdpi/ic_undo_black_24dp.png differ diff --git a/android/source/res/drawable-xxxhdpi/image_button_background.xml b/android/source/res/drawable-xxxhdpi/image_button_background.xml new file mode 100644 index 000000000..db8b67b17 --- /dev/null +++ b/android/source/res/drawable-xxxhdpi/image_button_background.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/android/source/res/drawable/calc.png b/android/source/res/drawable/calc.png new file mode 100644 index 000000000..0c0d31444 Binary files /dev/null and b/android/source/res/drawable/calc.png differ diff --git a/android/source/res/drawable/draw.png b/android/source/res/drawable/draw.png new file mode 100644 index 000000000..b3ee11426 Binary files /dev/null and b/android/source/res/drawable/draw.png differ diff --git a/android/source/res/drawable/dummy_page.png b/android/source/res/drawable/dummy_page.png new file mode 100644 index 000000000..31a075680 Binary files /dev/null and b/android/source/res/drawable/dummy_page.png differ diff --git a/android/source/res/drawable/ic_add_black_24dp.xml b/android/source/res/drawable/ic_add_black_24dp.xml new file mode 100644 index 000000000..0258249cc --- /dev/null +++ b/android/source/res/drawable/ic_add_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/android/source/res/drawable/ic_arrow_back_black_24dp.xml b/android/source/res/drawable/ic_arrow_back_black_24dp.xml new file mode 100644 index 000000000..beafea395 --- /dev/null +++ b/android/source/res/drawable/ic_arrow_back_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/android/source/res/drawable/ic_auto_color.xml b/android/source/res/drawable/ic_auto_color.xml new file mode 100644 index 000000000..3c68b556e --- /dev/null +++ b/android/source/res/drawable/ic_auto_color.xml @@ -0,0 +1,10 @@ + + + diff --git a/android/source/res/drawable/ic_check.xml b/android/source/res/drawable/ic_check.xml new file mode 100644 index 000000000..f60b0d992 --- /dev/null +++ b/android/source/res/drawable/ic_check.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable/ic_content_copy_black_24dp.xml b/android/source/res/drawable/ic_content_copy_black_24dp.xml new file mode 100644 index 000000000..8a894a3bc --- /dev/null +++ b/android/source/res/drawable/ic_content_copy_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/android/source/res/drawable/ic_content_cut_black_24dp.xml b/android/source/res/drawable/ic_content_cut_black_24dp.xml new file mode 100644 index 000000000..1c0f96a37 --- /dev/null +++ b/android/source/res/drawable/ic_content_cut_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/android/source/res/drawable/ic_content_paste_black_24dp.xml b/android/source/res/drawable/ic_content_paste_black_24dp.xml new file mode 100644 index 000000000..a902d9a85 --- /dev/null +++ b/android/source/res/drawable/ic_content_paste_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/android/source/res/drawable/ic_done_all_white_12dp.xml b/android/source/res/drawable/ic_done_all_white_12dp.xml new file mode 100644 index 000000000..8c17c93e4 --- /dev/null +++ b/android/source/res/drawable/ic_done_all_white_12dp.xml @@ -0,0 +1,10 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable/ic_done_white_12dp.xml b/android/source/res/drawable/ic_done_white_12dp.xml new file mode 100644 index 000000000..ed73ad37f --- /dev/null +++ b/android/source/res/drawable/ic_done_white_12dp.xml @@ -0,0 +1,10 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable/ic_filter_list_black_24dp.xml b/android/source/res/drawable/ic_filter_list_black_24dp.xml new file mode 100644 index 000000000..b99b672f4 --- /dev/null +++ b/android/source/res/drawable/ic_filter_list_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/android/source/res/drawable/ic_folder_black_24dp.xml b/android/source/res/drawable/ic_folder_black_24dp.xml new file mode 100644 index 000000000..1a9a16fb1 --- /dev/null +++ b/android/source/res/drawable/ic_folder_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/android/source/res/drawable/ic_format_align_center.xml b/android/source/res/drawable/ic_format_align_center.xml new file mode 100644 index 000000000..6165f386f --- /dev/null +++ b/android/source/res/drawable/ic_format_align_center.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable/ic_format_align_justify.xml b/android/source/res/drawable/ic_format_align_justify.xml new file mode 100644 index 000000000..d39454084 --- /dev/null +++ b/android/source/res/drawable/ic_format_align_justify.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable/ic_format_align_left.xml b/android/source/res/drawable/ic_format_align_left.xml new file mode 100644 index 000000000..53bf814f4 --- /dev/null +++ b/android/source/res/drawable/ic_format_align_left.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable/ic_format_align_right.xml b/android/source/res/drawable/ic_format_align_right.xml new file mode 100644 index 000000000..792112e6f --- /dev/null +++ b/android/source/res/drawable/ic_format_align_right.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable/ic_format_bullets.xml b/android/source/res/drawable/ic_format_bullets.xml new file mode 100644 index 000000000..32539b715 --- /dev/null +++ b/android/source/res/drawable/ic_format_bullets.xml @@ -0,0 +1,4 @@ + + \ No newline at end of file diff --git a/android/source/res/drawable/ic_format_clear_black_24dp.xml b/android/source/res/drawable/ic_format_clear_black_24dp.xml new file mode 100644 index 000000000..4c903c716 --- /dev/null +++ b/android/source/res/drawable/ic_format_clear_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/android/source/res/drawable/ic_format_numbering.xml b/android/source/res/drawable/ic_format_numbering.xml new file mode 100644 index 000000000..b276cd3bb --- /dev/null +++ b/android/source/res/drawable/ic_format_numbering.xml @@ -0,0 +1,4 @@ + + \ No newline at end of file diff --git a/android/source/res/drawable/ic_grid_off_black_24dp.xml b/android/source/res/drawable/ic_grid_off_black_24dp.xml new file mode 100644 index 000000000..7cf3c950c --- /dev/null +++ b/android/source/res/drawable/ic_grid_off_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/android/source/res/drawable/ic_grid_on_black_24dp.xml b/android/source/res/drawable/ic_grid_on_black_24dp.xml new file mode 100644 index 000000000..b2ff9e5be --- /dev/null +++ b/android/source/res/drawable/ic_grid_on_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/android/source/res/drawable/ic_grow.xml b/android/source/res/drawable/ic_grow.xml new file mode 100644 index 000000000..fd169434d --- /dev/null +++ b/android/source/res/drawable/ic_grow.xml @@ -0,0 +1,16 @@ + + + + diff --git a/android/source/res/drawable/ic_insert_drive_file_black_24dp.xml b/android/source/res/drawable/ic_insert_drive_file_black_24dp.xml new file mode 100644 index 000000000..aaeb289d7 --- /dev/null +++ b/android/source/res/drawable/ic_insert_drive_file_black_24dp.xml @@ -0,0 +1,7 @@ + + + diff --git a/android/source/res/drawable/ic_keyboard_backspace_black_24dp.xml b/android/source/res/drawable/ic_keyboard_backspace_black_24dp.xml new file mode 100644 index 000000000..827cde005 --- /dev/null +++ b/android/source/res/drawable/ic_keyboard_backspace_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/android/source/res/drawable/ic_line.xml b/android/source/res/drawable/ic_line.xml new file mode 100644 index 000000000..639ba2dbf --- /dev/null +++ b/android/source/res/drawable/ic_line.xml @@ -0,0 +1,12 @@ + + + diff --git a/android/source/res/drawable/ic_menu_back.png b/android/source/res/drawable/ic_menu_back.png new file mode 100644 index 000000000..d3191caff Binary files /dev/null and b/android/source/res/drawable/ic_menu_back.png differ diff --git a/android/source/res/drawable/ic_rect.xml b/android/source/res/drawable/ic_rect.xml new file mode 100644 index 000000000..241759ff0 --- /dev/null +++ b/android/source/res/drawable/ic_rect.xml @@ -0,0 +1,13 @@ + + + diff --git a/android/source/res/drawable/ic_redo.xml b/android/source/res/drawable/ic_redo.xml new file mode 100644 index 000000000..fefaa1d35 --- /dev/null +++ b/android/source/res/drawable/ic_redo.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable/ic_sd_card_black_24dp.xml b/android/source/res/drawable/ic_sd_card_black_24dp.xml new file mode 100644 index 000000000..f9ad72d48 --- /dev/null +++ b/android/source/res/drawable/ic_sd_card_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/android/source/res/drawable/ic_search.xml b/android/source/res/drawable/ic_search.xml new file mode 100644 index 000000000..3d86c7bfd --- /dev/null +++ b/android/source/res/drawable/ic_search.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable/ic_search_direction_down.xml b/android/source/res/drawable/ic_search_direction_down.xml new file mode 100644 index 000000000..7184da213 --- /dev/null +++ b/android/source/res/drawable/ic_search_direction_down.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable/ic_search_direction_up.xml b/android/source/res/drawable/ic_search_direction_up.xml new file mode 100644 index 000000000..3faa7ae96 --- /dev/null +++ b/android/source/res/drawable/ic_search_direction_up.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable/ic_settings_black_24dp.xml b/android/source/res/drawable/ic_settings_black_24dp.xml new file mode 100644 index 000000000..ace746c40 --- /dev/null +++ b/android/source/res/drawable/ic_settings_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/android/source/res/drawable/ic_shrink.xml b/android/source/res/drawable/ic_shrink.xml new file mode 100644 index 000000000..db0348437 --- /dev/null +++ b/android/source/res/drawable/ic_shrink.xml @@ -0,0 +1,16 @@ + + + + diff --git a/android/source/res/drawable/ic_sort_black_24dp.xml b/android/source/res/drawable/ic_sort_black_24dp.xml new file mode 100644 index 000000000..d582deea6 --- /dev/null +++ b/android/source/res/drawable/ic_sort_black_24dp.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/android/source/res/drawable/ic_storage_black_24dp.xml b/android/source/res/drawable/ic_storage_black_24dp.xml new file mode 100644 index 000000000..53c595cd7 --- /dev/null +++ b/android/source/res/drawable/ic_storage_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/android/source/res/drawable/ic_subscript.xml b/android/source/res/drawable/ic_subscript.xml new file mode 100644 index 000000000..7a379cf50 --- /dev/null +++ b/android/source/res/drawable/ic_subscript.xml @@ -0,0 +1,10 @@ + + + + diff --git a/android/source/res/drawable/ic_superscript.xml b/android/source/res/drawable/ic_superscript.xml new file mode 100644 index 000000000..aa18a305d --- /dev/null +++ b/android/source/res/drawable/ic_superscript.xml @@ -0,0 +1,20 @@ + + + + diff --git a/android/source/res/drawable/ic_undo.xml b/android/source/res/drawable/ic_undo.xml new file mode 100644 index 000000000..f792e66f3 --- /dev/null +++ b/android/source/res/drawable/ic_undo.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/android/source/res/drawable/ic_usb_black_24dp.xml b/android/source/res/drawable/ic_usb_black_24dp.xml new file mode 100644 index 000000000..d9b39bac1 --- /dev/null +++ b/android/source/res/drawable/ic_usb_black_24dp.xml @@ -0,0 +1,7 @@ + + + diff --git a/android/source/res/drawable/impress.png b/android/source/res/drawable/impress.png new file mode 100644 index 000000000..5909f05bf Binary files /dev/null and b/android/source/res/drawable/impress.png differ diff --git a/android/source/res/drawable/label_background.xml b/android/source/res/drawable/label_background.xml new file mode 100644 index 000000000..1e0978575 --- /dev/null +++ b/android/source/res/drawable/label_background.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/android/source/res/drawable/writer.png b/android/source/res/drawable/writer.png new file mode 100644 index 000000000..8a4e21e47 Binary files /dev/null and b/android/source/res/drawable/writer.png differ diff --git a/android/source/res/layout/about.xml b/android/source/res/layout/about.xml new file mode 100644 index 000000000..8968c00d2 --- /dev/null +++ b/android/source/res/layout/about.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + diff --git a/android/source/res/layout/activity_document_browser.xml b/android/source/res/layout/activity_document_browser.xml new file mode 100644 index 000000000..23ef44f4e --- /dev/null +++ b/android/source/res/layout/activity_document_browser.xml @@ -0,0 +1,257 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android/source/res/layout/activity_main.xml b/android/source/res/layout/activity_main.xml new file mode 100644 index 000000000..bd444f9fe --- /dev/null +++ b/android/source/res/layout/activity_main.xml @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android/source/res/layout/calc_header_popup.xml b/android/source/res/layout/calc_header_popup.xml new file mode 100644 index 000000000..8e563af27 --- /dev/null +++ b/android/source/res/layout/calc_header_popup.xml @@ -0,0 +1,90 @@ + + + + + + + +