From 1dc71daf7fa7204a98c75dac680af664ab9c8edb Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Mon, 18 Jan 2021 15:24:48 +0100 Subject: Improve macro checks Change-Id: Ie40801df8866b52c1458e020ffa9cba120720af7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109552 Tested-by: Jenkins Reviewed-by: Thorsten Behrens --- include/sfx2/docmacromode.hxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/sfx2/docmacromode.hxx') diff --git a/include/sfx2/docmacromode.hxx b/include/sfx2/docmacromode.hxx index 9533518bee9d..aa120240688e 100644 --- a/include/sfx2/docmacromode.hxx +++ b/include/sfx2/docmacromode.hxx @@ -220,7 +220,8 @@ namespace sfx2 if and only if macro execution in this document is allowed. */ bool adjustMacroMode( - const css::uno::Reference< css::task::XInteractionHandler >& _rxInteraction + const css::uno::Reference< css::task::XInteractionHandler >& _rxInteraction, + bool bHasValidContentSignature = false ); /** determines whether macro execution is disallowed @@ -286,11 +287,13 @@ namespace sfx2 */ bool checkMacrosOnLoading( - const css::uno::Reference< css::task::XInteractionHandler >& _rxInteraction + const css::uno::Reference< css::task::XInteractionHandler >& _rxInteraction, + bool bHasValidContentSignature = false ); private: std::shared_ptr< DocumentMacroMode_Data > m_xData; + bool m_bNeedsContentSigned; }; -- cgit