diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2020-06-16 14:07:32 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2020-06-24 11:36:53 +0200 |
commit | 272efec844e37ec8a37872d6bed0f5b4a6d59d42 (patch) | |
tree | 7e7340cd58795f1f34d1bae195f44b16905a6d5c /desktop | |
parent | 0c61db374f90c78f5cb6984fae643437bc77541a (diff) |
jsdialog: weld toolbar
Change-Id: If105d6716fc43f471f63f4eb60fa85498cb3dcc6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96934
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 771bc2e72b02..bb2307363ab0 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -3689,6 +3689,19 @@ static void doc_sendDialogEvent(LibreOfficeKitDocument* /*pThis*/, unsigned nWin bContinueWithLOKWindow = true; } } + else if (sControlType == "toolbox") + { + auto pToolbar = dynamic_cast<weld::Toolbar*>(pWidget); + if (pToolbar) + { + if (sAction == "click") + { + pToolbar->signal_clicked(OUStringToOString(aMap["data"], RTL_TEXTENCODING_ASCII_US)); + } + else + bContinueWithLOKWindow = true; + } + } else { bContinueWithLOKWindow = true; |