diff options
author | Rashesh <rashesh.padia@collabora.com> | 2024-09-26 16:39:55 +0530 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2024-12-20 21:29:52 +0100 |
commit | 5e2bd2bb4c1a2f8a5467009b4ab7007401a14446 (patch) | |
tree | 545aa0a60f0cbca1ad6b6c3453eaa436e95893f8 /desktop/source/lib/init.cxx | |
parent | 4a584493db8b920637b664459e7519b6eef458a4 (diff) |
cool#10115 sc: enable ScPosWnd for lokit with jsdialog
Change-Id: I18829c48a2495e3aa31af83970c8c1c4791a170a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173987
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit 9ffc274bbc414d1e98313af804386861beeff9bf)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177645
Tested-by: Jenkins
Diffstat (limited to 'desktop/source/lib/init.cxx')
-rw-r--r-- | desktop/source/lib/init.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index b7312be1772e..f858b9fdd22a 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -5206,6 +5206,8 @@ static void lcl_sendDialogEvent(unsigned long long int nWindowId, const char* pA sWindowId = sCurrentShellId + "notebookbar"; if (nWindowId == static_cast<unsigned long long int>(-3)) sWindowId = sCurrentShellId + "formulabar"; + if (nWindowId == static_cast<unsigned long long int>(-4)) + sWindowId = sCurrentShellId + "addressinputfield"; // dialogs send own id but notebookbar and sidebar controls are remembered by SfxViewShell id if (jsdialog::ExecuteAction(sWindowId, sControlId, aMap)) @@ -5217,6 +5219,8 @@ static void lcl_sendDialogEvent(unsigned long long int nWindowId, const char* pA return; if (jsdialog::ExecuteAction(sCurrentShellId + "formulabar", sControlId, aMap)) return; + if (jsdialog::ExecuteAction(sCurrentShellId + "addressinputfield", sControlId, aMap)) + return; // this is needed for dialogs shown before document is loaded: MacroWarning dialog, etc... // these dialogs are created with WindowId "0" if (!SfxViewShell::Current() && jsdialog::ExecuteAction(u"0"_ustr, sControlId, aMap)) |