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-28 18:44:04 +0100 |
commit | 2b824fa229a8095f9509f8305fe81ae86bb1a52d (patch) | |
tree | eb3aca79031905e06a70c3442862ea07b930270a /vcl | |
parent | 45e2ec4b78975c0255e45ffd2c4e1c69839f115e (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>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108408
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/dialog.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index 25d1f146f6b4..da1d4a5bce24 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx @@ -1648,6 +1648,11 @@ void Dialog::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter) if (!pActionArea->IsVisible()) rJsonWriter.put("collapsed", "true"); } + + OUString sDialogId = OStringToOUString(GetHelpId(), RTL_TEXTENCODING_ASCII_US); + sal_Int32 nStartPos = sDialogId.lastIndexOf('/'); + nStartPos = nStartPos >= 0 ? nStartPos + 1 : 0; + rJsonWriter.put("dialogid", sDialogId.copy(nStartPos)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |