Lines Matching refs:nMacroExecutionMode
168 static void adjustMacroExecModeSecurity(sal_uInt16 &nMacroExecutionMode) in adjustMacroExecModeSecurity() argument
170 if ( ( nMacroExecutionMode == MacroExecMode::USE_CONFIG ) in adjustMacroExecModeSecurity()
171 || ( nMacroExecutionMode == MacroExecMode::USE_CONFIG_REJECT_CONFIRMATION ) in adjustMacroExecModeSecurity()
172 || ( nMacroExecutionMode == MacroExecMode::USE_CONFIG_APPROVE_CONFIRMATION ) in adjustMacroExecModeSecurity()
179 nMacroExecutionMode = MacroExecMode::FROM_LIST_NO_WARN; in adjustMacroExecModeSecurity()
182 nMacroExecutionMode = MacroExecMode::FROM_LIST_AND_SIGNED_WARN; in adjustMacroExecModeSecurity()
185 nMacroExecutionMode = MacroExecMode::ALWAYS_EXECUTE; in adjustMacroExecModeSecurity()
188 nMacroExecutionMode = MacroExecMode::ALWAYS_EXECUTE_NO_WARN; in adjustMacroExecModeSecurity()
192 nMacroExecutionMode = MacroExecMode::NEVER_EXECUTE; in adjustMacroExecModeSecurity()
201 sal_uInt16 nMacroExecutionMode = m_pData->m_rDocumentAccess.getCurrentMacroExecMode(); in adjustMacroMode() local
219 adjustMacroExecModeSecurity(nMacroExecutionMode); in adjustMacroMode()
220 if ( nMacroExecutionMode == MacroExecMode::USE_CONFIG_REJECT_CONFIRMATION ) in adjustMacroMode()
222 else if ( nMacroExecutionMode == MacroExecMode::USE_CONFIG_APPROVE_CONFIRMATION ) in adjustMacroMode()
225 if ( nMacroExecutionMode == MacroExecMode::NEVER_EXECUTE ) in adjustMacroMode()
228 if ( nMacroExecutionMode == MacroExecMode::ALWAYS_EXECUTE_NO_WARN ) in adjustMacroMode()
254 if ( nMacroExecutionMode == MacroExecMode::FROM_LIST_NO_WARN ) in adjustMacroMode()
261 if ( nMacroExecutionMode != MacroExecMode::FROM_LIST ) in adjustMacroMode()
264 …gnature = m_pData->m_rDocumentAccess.hasTrustedScriptingSignature( nMacroExecutionMode != MacroExe… in adjustMacroMode()
270 if ( nMacroExecutionMode != MacroExecMode::FROM_LIST_AND_SIGNED_NO_WARN ) in adjustMacroMode()
289 if ( ( nMacroExecutionMode == MacroExecMode::FROM_LIST_AND_SIGNED_NO_WARN ) in adjustMacroMode()
290 || ( nMacroExecutionMode == MacroExecMode::FROM_LIST_AND_SIGNED_WARN ) in adjustMacroMode()
293 if ( nMacroExecutionMode == MacroExecMode::FROM_LIST_AND_SIGNED_WARN ) in adjustMacroMode()
301 if ( ( nMacroExecutionMode == MacroExecMode::FROM_LIST_NO_WARN ) in adjustMacroMode()
302 || ( nMacroExecutionMode == MacroExecMode::FROM_LIST_AND_SIGNED_WARN ) in adjustMacroMode()
303 || ( nMacroExecutionMode == MacroExecMode::FROM_LIST_AND_SIGNED_NO_WARN ) in adjustMacroMode()
435 … sal_uInt16 nMacroExecutionMode = m_pData->m_rDocumentAccess.getCurrentMacroExecMode(); in checkMacrosOnLoading() local
436 adjustMacroExecModeSecurity(nMacroExecutionMode); in checkMacrosOnLoading()
437 switch (nMacroExecutionMode) { in checkMacrosOnLoading()