summaryrefslogtreecommitdiff
path: root/vcl/source/window/builder.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/builder.cxx')
-rw-r--r--vcl/source/window/builder.cxx8
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);