diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2022-12-15 14:22:37 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2023-01-09 11:54:26 +0000 |
commit | 60f6b0e363a4bb38f249a26609a4fc219b001c87 (patch) | |
tree | 116526684a7b2056f9c223895b1a8d07337d1d09 /vcl | |
parent | 9c6aa7f2918819af670c6d6ed25645c725c91667 (diff) |
jsdialog: dump stock images id in TreeView
Change-Id: I11342e1d7963a7e4d1ef139f504fc44dd6c89d90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144223
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Rashesh Padia <rashesh.padia@collabora.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145065
Tested-by: Jenkins
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/treelist/svtabbx.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vcl/source/treelist/svtabbx.cxx b/vcl/source/treelist/svtabbx.cxx index b305e791e167..f766cde70559 100644 --- a/vcl/source/treelist/svtabbx.cxx +++ b/vcl/source/treelist/svtabbx.cxx @@ -70,6 +70,16 @@ static void lcl_DumpEntryAndSiblings(tools::JsonWriter& rJsonWriter, rJsonWriter.put("text", pStringItem->GetText()); } } + else if (rItem.GetType() == SvLBoxItemType::ContextBmp) + { + const SvLBoxContextBmp* pBmpItem = dynamic_cast<const SvLBoxContextBmp*>(&rItem); + if (pBmpItem) + { + auto aColumn = rJsonWriter.startStruct(); + rJsonWriter.put("collapsed", pBmpItem->GetBitmap1().GetStock()); + rJsonWriter.put("expanded", pBmpItem->GetBitmap2().GetStock()); + } + } } } |