diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2024-01-08 18:46:13 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2024-01-15 21:07:28 +0100 |
commit | 88281b55c1d781f73a663188229c639a290c53bc (patch) | |
tree | 7eef013c082d295bc950c98d2b147a9307f4f1df /sc | |
parent | 035cd913e0361cce9d799eb3b331b6d7bcf7910e (diff) |
Send document colors with lok callback
First step for publishing any palette for LOK.
Let's start with Document colors (colors used in the
document) which can be extracted similar to theme
colors from SfxViewShell.
Modify generateJSON function so it appends palette into
existing ptree/JSON.
In the next step we can make it more generic so it will
be able to send any palette managed by PaletteManager.
Change-Id: Ibb56690af6dfd59ee232e88b28e7a3d312d0e16c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161798
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit 0460be8848b0ce02c07183e41dd7137ac3b94164)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161941
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/tabvwshc.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/view/tabvwshc.cxx b/sc/source/ui/view/tabvwshc.cxx index 3cde75058033..13d852f58630 100644 --- a/sc/source/ui/view/tabvwshc.cxx +++ b/sc/source/ui/view/tabvwshc.cxx @@ -479,7 +479,9 @@ void ScTabViewShell::afterCallbackRegistered() SfxObjectShell* pDocShell = GetObjectShell(); if (pDocShell) { - svx::theme::notifyLOK(pDocShell->GetThemeColors()); + std::shared_ptr<model::ColorSet> pThemeColors = pDocShell->GetThemeColors(); + std::set<Color> aDocumentColors = pDocShell->GetDocColors(); + svx::theme::notifyLOK(pThemeColors, aDocumentColors); } } |