diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2018-08-02 01:02:56 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2019-10-01 21:56:22 +0200 |
commit | dc1f304de78ccf20b3264cbc904d65f78864ec63 (patch) | |
tree | 381e9b511af2c9065295cbb9befcef4fef841b97 /sc/source/filter/oox | |
parent | 357e8bdfc15eea083d8a8699ecc2de9a8a615c23 (diff) |
tdf#119021 Support lock down settings of Formula tab page
Change-Id: I3131e8fd98b43cf4073970444589e8fae9553bc1
Reviewed-on: https://gerrit.libreoffice.org/75402
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/source/filter/oox')
-rw-r--r-- | sc/source/filter/oox/workbookfragment.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/filter/oox/workbookfragment.cxx b/sc/source/filter/oox/workbookfragment.cxx index 540c2b3b89de..7e7edc655a59 100644 --- a/sc/source/filter/oox/workbookfragment.cxx +++ b/sc/source/filter/oox/workbookfragment.cxx @@ -525,6 +525,7 @@ public: { } bool get_active() const { return m_xWarningOnBox->get_active(); } + void hide_ask() const { m_xWarningOnBox->set_visible(false); }; }; } @@ -547,6 +548,9 @@ void WorkbookFragment::recalcFormulaCells() aQueryBox.set_primary_text(ScResId(STR_QUERY_FORMULA_RECALC_ONLOAD_XLS)); aQueryBox.set_default_response(RET_YES); + if ( officecfg::Office::Calc::Formula::Load::OOXMLRecalcMode::isReadOnly() ) + aQueryBox.hide_ask(); + bHardRecalc = aQueryBox.run() == RET_YES; if (aQueryBox.get_active()) |