From f45cdbc9f3dd877a2ebda1e2718c59e83faf3c6a Mon Sep 17 00:00:00 2001 From: Ximeng Zu Date: Wed, 12 Jul 2017 09:20:56 -0500 Subject: [Android Viewer] Add header funcs to Calc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added insert/delete/hide/show/optimal width or height /adjust width or heigth to Calc. These options show in a floating menu near the headers when the user taps on the headers. Also added selection on headers, i.e., user can drag on headers to select multiple columns/rows. Change-Id: I7e1994d1fa81d80c110def035c2c065e838b49ac Reviewed-on: https://gerrit.libreoffice.org/40684 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- android/source/res/layout/calc_header_popup.xml | 90 ++++++++++ android/source/res/values/strings.xml | 17 ++ .../java/org/libreoffice/InvalidationHandler.java | 10 ++ .../org/libreoffice/LibreOfficeMainActivity.java | 5 + .../org/libreoffice/canvas/AdjustLengthLine.java | 105 ++++++++++++ .../libreoffice/overlay/CalcHeadersController.java | 113 +++++++++++++ .../org/libreoffice/overlay/CalcHeadersView.java | 181 ++++++++++++++++----- .../org/libreoffice/overlay/DocumentOverlay.java | 8 + .../libreoffice/overlay/DocumentOverlayView.java | 32 ++++ 9 files changed, 521 insertions(+), 40 deletions(-) create mode 100644 android/source/res/layout/calc_header_popup.xml create mode 100644 android/source/src/java/org/libreoffice/canvas/AdjustLengthLine.java (limited to 'android') 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 000000000000..8e563af27d0a --- /dev/null +++ b/android/source/res/layout/calc_header_popup.xml @@ -0,0 +1,90 @@ + + + + + + + +