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 /vcl/source/window/builder.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 'vcl/source/window/builder.cxx')
-rw-r--r-- | vcl/source/window/builder.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 62469d222d82..ed59785cc791 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -207,8 +207,12 @@ std::unique_ptr<weld::Builder> Application::CreateInterimBuilder(vcl::Window* pP // Notebookbar sub controls if (jsdialog::isInterimBuilderEnabledForNotebookbar(rUIFile)) return JSInstanceBuilder::CreateNotebookbarBuilder(pParent, AllSettings::GetUIRootDir(), rUIFile, css::uno::Reference<css::frame::XFrame>(), nLOKWindowId); - else if (rUIFile == u"modules/scalc/ui/inputbar.ui") - return JSInstanceBuilder::CreateFormulabarBuilder(pParent, AllSettings::GetUIRootDir(), rUIFile, nLOKWindowId); + else if (jsdialog::isBuilderEnabledForFormulabar(rUIFile)) + return JSInstanceBuilder::CreateFormulabarBuilder(pParent, AllSettings::GetUIRootDir(), + rUIFile, nLOKWindowId); + else if (jsdialog::isBuilderEnabledForAddressInput(rUIFile)) + return JSInstanceBuilder::CreateAddressInputBuilder( + pParent, AllSettings::GetUIRootDir(), rUIFile, nLOKWindowId); } return ImplGetSVData()->mpDefInst->CreateInterimBuilder(pParent, AllSettings::GetUIRootDir(), rUIFile, bAllowCycleFocusOut, nLOKWindowId); |