summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2021-07-17 16:31:09 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2021-08-18 16:22:34 +0200
commit358c7958b171eedac7b9b998448a27dd1b80af78 (patch)
treed4d8c7dca6fceb3b81c2b78ec56aa6041e303a0b /sfx2
parente94444f8580f7e93604be816d49577a3bdf596ce (diff)
jsdialog: dump more options command for panels
Change-Id: I04d71d318d97916f040de7a617a802dd895faed5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119104 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120659 Tested-by: Jenkins
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/inc/sidebar/PanelTitleBar.hxx2
-rw-r--r--sfx2/source/sidebar/Deck.cxx3
2 files changed, 5 insertions, 0 deletions
diff --git a/sfx2/inc/sidebar/PanelTitleBar.hxx b/sfx2/inc/sidebar/PanelTitleBar.hxx
index 8a90f8a79101..8ebd1af1800c 100644
--- a/sfx2/inc/sidebar/PanelTitleBar.hxx
+++ b/sfx2/inc/sidebar/PanelTitleBar.hxx
@@ -48,6 +48,8 @@ public:
return *mxExpander;
}
+ OUString GetMoreOptionsCommand() { return msMoreOptionsCommand; }
+
private:
virtual void HandleToolBoxItemClick() override;
diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx
index 7494e99c7feb..0fec11ef4e89 100644
--- a/sfx2/source/sidebar/Deck.cxx
+++ b/sfx2/source/sidebar/Deck.cxx
@@ -143,6 +143,9 @@ void Deck::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter)
rJsonWriter.put("hidden", it->IsLurking());
rJsonWriter.put("expanded", it->IsExpanded());
+ if (it->GetTitleBar() && !it->GetTitleBar()->GetMoreOptionsCommand().isEmpty())
+ rJsonWriter.put("command", it->GetTitleBar()->GetMoreOptionsCommand());
+
{
auto children2Node = rJsonWriter.startArray("children");
{