1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef __com_sun_star_document_MacroExecMode_idl__
21 #define __com_sun_star_document_MacroExecMode_idl__
24 module com
{ module sun
{ module star
{ module document
{
26 /** Specify whether a macro can be executed.
30 published constants MacroExecMode
32 /** A macro should not be executed at all.
35 const short NEVER_EXECUTE
= 0;
37 /** Execute macros from secure list quietly.
40 If a macro is not in the list a conformation for it executing will
45 const short FROM_LIST
= 1;
47 /** Execute any macro, macros signed with trusted certificates and macros
48 from secure list are executed quietly.
51 If the macro is neither in secure list nor signed a conformation
56 const short ALWAYS_EXECUTE
= 2;
58 /** Use configuration to retrieve macro settings. In case a user
59 confirmation is required a dialog is output.
62 const short USE_CONFIG
= 3;
65 /** A macro should be executed always no conformation should be provided.
68 const short ALWAYS_EXECUTE_NO_WARN
= 4;
70 /** Use configuration to retrieve macro settings. Treat cases when user
71 confirmation required as rejected.
74 const short USE_CONFIG_REJECT_CONFIRMATION
= 5;
76 /** Use configuration to retrieve macro settings. Treat cases when user
77 confirmation required as approved.
80 const short USE_CONFIG_APPROVE_CONFIRMATION
= 6;
82 /** Execute only macros from secure list. Macros that are not from the list
85 const short FROM_LIST_NO_WARN
= 7;
87 /** Execute only macros from secure list or macros that are signed by
90 <p> If the macro is neither in secure list nor signed it will not be
94 <p> If the macro is signed with unknown certificate a warning will
95 appear. The macro either will not be executed or if the warning
96 allows conformation, it will be executed after user agrees.
99 const short FROM_LIST_AND_SIGNED_WARN
= 8;
101 /** Execute only macros from secure list or macros that are signed by
102 trusted certificates. No warning/conformation should be shown.
104 const short FROM_LIST_AND_SIGNED_NO_WARN
= 9;
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */