summaryrefslogtreecommitdiff
path: root/vcl/jsdialog/executor.cxx
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2021-06-25 10:22:15 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2021-07-29 11:04:54 +0200
commit77c39371e3c2965982006f3d060148d05839e95b (patch)
tree7c4d139d6d11741c7bce96a8c2ce7783129fadd8 /vcl/jsdialog/executor.cxx
parentcf9baa91a3c15fb798639c96f2fee6a5bd4975ff (diff)
jsdialog: handle toolbox menus toggling
Change-Id: I85881531f041cbd5402ac8de2a96b2c7150cbba8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117839 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119609 Tested-by: Jenkins
Diffstat (limited to 'vcl/jsdialog/executor.cxx')
-rw-r--r--vcl/jsdialog/executor.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/jsdialog/executor.cxx b/vcl/jsdialog/executor.cxx
index c1882d5a2d5b..613cf7f5d26d 100644
--- a/vcl/jsdialog/executor.cxx
+++ b/vcl/jsdialog/executor.cxx
@@ -231,6 +231,12 @@ bool ExecuteAction(sal_uInt64 nWindowId, const OString& rWidget, StringMap& rDat
*pToolbar, OUStringToOString(rData["data"], RTL_TEXTENCODING_ASCII_US));
return true;
}
+ else if (sAction == "togglemenu")
+ {
+ pToolbar->set_menu_item_active(
+ OUStringToOString(rData["data"], RTL_TEXTENCODING_ASCII_US), true);
+ return true;
+ }
}
}
else if (sControlType == "edit")