diff options
Diffstat (limited to 'vcl/jsdialog')
-rw-r--r-- | vcl/jsdialog/enabled.cxx | 14 | ||||
-rw-r--r-- | vcl/jsdialog/jsdialogbuilder.cxx | 9 |
2 files changed, 23 insertions, 0 deletions
diff --git a/vcl/jsdialog/enabled.cxx b/vcl/jsdialog/enabled.cxx index cba8047ffd3d..5e25a9977518 100644 --- a/vcl/jsdialog/enabled.cxx +++ b/vcl/jsdialog/enabled.cxx @@ -422,6 +422,20 @@ bool isInterimBuilderEnabledForNotebookbar(std::u16string_view rUIFile) return false; } + +bool isBuilderEnabledForAddressInput(std::u16string_view rUIFile) +{ + if (rUIFile == u"modules/scalc/ui/posbox.ui") + return true; + return false; +} + +bool isBuilderEnabledForFormulabar(std::u16string_view rUIFile) +{ + if (rUIFile == u"modules/scalc/ui/inputbar.ui") + return true; + return false; +} } /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx index f4c0c60073e1..2d1c614e1d0c 100644 --- a/vcl/jsdialog/jsdialogbuilder.cxx +++ b/vcl/jsdialog/jsdialogbuilder.cxx @@ -356,6 +356,15 @@ JSInstanceBuilder::CreateFormulabarBuilder(vcl::Window* pParent, const OUString& u"formulabar"); } +std::unique_ptr<JSInstanceBuilder> +JSInstanceBuilder::CreateAddressInputBuilder(vcl::Window* pParent, const OUString& rUIRoot, + const OUString& rUIFile, sal_uInt64 nLOKWindowId) +{ + return std::make_unique<JSInstanceBuilder>(nullptr, pParent, rUIRoot, rUIFile, + JSInstanceBuilder::Type::Formulabar, nLOKWindowId, + u"addressinputfield"); +} + JSInstanceBuilder::~JSInstanceBuilder() { // tab page closed -> refresh parent window |