diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2021-06-08 15:28:41 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2021-07-20 11:48:19 +0200 |
commit | e5bfb1f0c4c29e34cf4647557230e740692efb43 (patch) | |
tree | 4f5e02b420fd188f8e1eadf9a40f121416157695 /sfx2/source | |
parent | 002cd0c0c7a80a5ad488e40d3601b8e9d6aa5b19 (diff) |
jsdialog: sidebar: dump visibility state for widgets
we need this to build all the widgets on the client side
and alow then show/hide widgets
Change-Id: Ib3d8fc673cc787925e19a6e9df673e923ed7ecef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116841
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119198
Tested-by: Jenkins
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/sidebar/Deck.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx index 394c767001c2..700fb19251bf 100644 --- a/sfx2/source/sidebar/Deck.cxx +++ b/sfx2/source/sidebar/Deck.cxx @@ -134,10 +134,12 @@ void Deck::Resize() */ void Deck::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter) { - rJsonWriter.put("id", get_id()); // TODO could be missing - sort out + rJsonWriter.put("id", get_id().isEmpty() ? msId : get_id()); rJsonWriter.put("type", "deck"); rJsonWriter.put("text", GetText()); rJsonWriter.put("enabled", IsEnabled()); + if (!IsVisible()) + rJsonWriter.put("visible", false); auto childrenNode = rJsonWriter.startArray("children"); for (auto &it : maPanels) |