summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2021-06-08 15:28:41 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2021-07-20 11:48:19 +0200
commite5bfb1f0c4c29e34cf4647557230e740692efb43 (patch)
tree4f5e02b420fd188f8e1eadf9a40f121416157695 /vcl
parent002cd0c0c7a80a5ad488e40d3601b8e9d6aa5b19 (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 'vcl')
-rw-r--r--vcl/source/window/window.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 72dd9d17b424..88a2b24e1b35 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -3350,13 +3350,15 @@ void Window::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter)
rJsonWriter.put("type", windowTypeName(GetType()));
rJsonWriter.put("text", GetText());
rJsonWriter.put("enabled", IsEnabled());
+ if (!IsVisible())
+ rJsonWriter.put("visible", false);
if (vcl::Window* pChild = mpWindowImpl->mpFirstChild)
{
auto childrenNode = rJsonWriter.startArray("children");
while (pChild)
{
- if (pChild->IsVisible()) {
+ {
auto childNode = rJsonWriter.startStruct();
pChild->DumpAsPropertyTree(rJsonWriter);
sal_Int32 nLeft = pChild->get_grid_left_attach();