diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2020-12-10 15:35:53 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2020-12-10 16:33:41 +0100 |
commit | 5c6a765b5091540b76659671935ea9434b2961dc (patch) | |
tree | caccf3c36d7ab8e2f758e01490cbb56c754e45a3 /vcl/source | |
parent | c4892a47195685cd36fe91be872206f517abc45b (diff) |
jsdialog: export dialog id
Change-Id: I406d64ec8e19661ab258908e29245bc7da245b7b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107558
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/window/dialog.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index dadcc34718c8..df9135f43058 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx @@ -1616,6 +1616,12 @@ boost::property_tree::ptree Dialog::DumpAsPropertyTree() if (!pActionArea->IsVisible()) aTree.put("collapsed", "true"); } + + OUString sDialogId = OStringToOUString(GetHelpId(), RTL_TEXTENCODING_ASCII_US); + sal_Int32 nStartPos = sDialogId.lastIndexOf('/'); + nStartPos = nStartPos >= 0 ? nStartPos + 1 : 0; + aTree.put("dialogid", sDialogId.copy(nStartPos)); + return aTree; } |