sc: introduce SparklineShell and Sparkline context

Desktop / LibreOffice - Tomaž Vajngerl [collabora.co.uk] - 15 April 2022 00:49 UTC

Having a separate sparkline context is very useful, so we can add a custom UI when the user has the cursor over a sparkline. This will allow a "Sparkline" tab for NotebookBar and its own deck in Sidebar, activated only when the sparkline is present. Also the pop-up menu can be customized specifically for the sparkline, but this may be less useful.

For the sparkline context we need a custom shell - SparklineShell where now all the UNO commands can be implemented (not done in this commit).

Change-Id: Idca2ad946af3afdd1b494744b80c9c093eec602c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133022

e1f3f2e00c37 sc: introduce SparklineShell and Sparkline context
include/vcl/EnumContext.hxx | 1 +
.../data/org/openoffice/Office/UI/Sidebar.xcu | 5 ++
.../schema/org/openoffice/Office/UI/Sidebar.xcs | 2 +-
sc/Library_sc.mk | 1 +
sc/UIConfig_scalc.mk | 1 +
sc/inc/document.hxx | 8 +++
sc/inc/shellids.hxx | 1 +
sc/sdi/SparklineShell.sdi | 17 +++++
sc/sdi/scslots.sdi | 1 +
sc/source/ui/app/scdll.cxx | 2 +
sc/source/ui/inc/SparklineShell.hxx | 40 +++++++++++
sc/source/ui/inc/tabvwsh.hxx | 6 +-
sc/source/ui/view/SparklineShell.cxx | 54 +++++++++++++++
sc/source/ui/view/tabview3.cxx | 13 ++--
sc/source/ui/view/tabvwsh4.cxx | 42 ++++++++++-
sc/uiconfig/scalc/popupmenu/sparkline.xml | 81 ++++++++++++++++++++++
svx/source/sidebar/paragraph/ParaPropertyPanel.cxx | 1 +
vcl/source/window/EnumContext.cxx | 1 +
18 files changed, 269 insertions(+), 8 deletions(-)

Upstream: cgit.freedesktop.org


  • Share