Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / document / MacroExecMode.idl
blob130c921e78af8011e180c35aed31abfdf2bc84f8
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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.
28 @since OOo 1.1.2
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.
39 <p>
40 If a macro is not in the list a conformation for it executing will
41 appear.
42 </p>
45 const short FROM_LIST = 1;
47 /** Execute any macro, macros signed with trusted certificates and macros
48 from secure list are executed quietly.
50 <p>
51 If the macro is neither in secure list nor signed a conformation
52 will be requested.
53 </p>
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
83 are not executed.
85 const short FROM_LIST_NO_WARN = 7;
87 /** Execute only macros from secure list or macros that are signed by
88 trusted certificates.
90 <p> If the macro is neither in secure list nor signed it will not be
91 executed.
92 </p>
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.
97 </p>
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;
109 }; }; }; };
111 #endif
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */