From 1f440348eb0892fd2c9597806d87b5fe9d60d49a Mon Sep 17 00:00:00 2001 From: Balazs Varga Date: Tue, 10 Oct 2023 21:55:42 +0200 Subject: tdf#157482 UI: Turn Security Warnings popup windows into infobars In case of all the 4 security warnings we will have a new infobar warning dialog message with an infobar button which can open the security windows option settings and we can set which security issues should warn us, and also which security infos we want to remove. (etc after saving) TODO: If the directly the file dialog window pop up the Infobar message will only update after closing the file dialog window. That should be fixed later. Change-Id: Idf0f728fd40089d3691f8f044d3718a4e0d99cad Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157797 Tested-by: Jenkins Reviewed-by: Balazs Varga --- sfx2/source/dialog/infobar.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sfx2/source/dialog') diff --git a/sfx2/source/dialog/infobar.cxx b/sfx2/source/dialog/infobar.cxx index 2ab8704c1da4..ca848813f09e 100644 --- a/sfx2/source/dialog/infobar.cxx +++ b/sfx2/source/dialog/infobar.cxx @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -438,6 +439,13 @@ bool SfxInfoBarContainerWindow::isInfobarEnabled(std::u16string_view sId) return officecfg::Office::UI::Infobar::Enabled::HiddenTrackChanges::get(); if (sId == u"macro") return officecfg::Office::UI::Infobar::Enabled::MacrosDisabled::get(); + if (sId == u"securitywarn") + { + return officecfg::Office::Common::Security::Scripting::WarnSaveOrSendDoc::get() + || officecfg::Office::Common::Security::Scripting::WarnSignDoc::get() + || officecfg::Office::Common::Security::Scripting::WarnPrintDoc::get() + || officecfg::Office::Common::Security::Scripting::WarnCreatePDF::get(); + } return true; } -- cgit