Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / document / MacroExecMode.idl
blob9e5c42bac0fcdf49bdd125e2a924f2ea414a1685
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: MacroExecMode.idl,v $
10 * $Revision: 1.10 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef __com_sun_star_document_MacroExecMode_idl__
32 #define __com_sun_star_document_MacroExecMode_idl__
34 //=============================================================================
36 module com { module sun { module star { module document {
38 //=============================================================================
39 /** Specify whether a macro can be executed.
41 @since OOo 1.1.2
43 published constants MacroExecMode
45 //-------------------------------------------------------------------------
46 /** A macro should not be executed at all.
49 const short NEVER_EXECUTE = 0;
51 //-------------------------------------------------------------------------
52 /** Execute macros from secure list quietly.
54 <p>
55 If a macro is not in the list a conformation for it executing will
56 appear.
57 </p>
60 const short FROM_LIST = 1;
62 //-------------------------------------------------------------------------
63 /** Execute any macro, macros signed with trusted sertificates and macros
64 from secure list are executed quietly.
66 <p>
67 If the macro is neither in secure list nor signed a conformation
68 will be requested.
69 </p>
72 const short ALWAYS_EXECUTE = 2;
74 //-------------------------------------------------------------------------
75 /** Use configuration to retrieve macro settings. In case a user
76 confirmation is required a dialog is output.
79 const short USE_CONFIG = 3;
82 //-------------------------------------------------------------------------
83 /** A macro should be executed always no conformation should be provided.
86 const short ALWAYS_EXECUTE_NO_WARN = 4;
88 //-------------------------------------------------------------------------
89 /** Use configuration to retrieve macro settings. Treat cases when user
90 confirmation required as rejected.
93 const short USE_CONFIG_REJECT_CONFIRMATION = 5;
95 //-------------------------------------------------------------------------
96 /** Use configuration to retrieve macro settings. Treat cases when user
97 confirmation required as approved.
100 const short USE_CONFIG_APPROVE_CONFIRMATION = 6;
102 //-------------------------------------------------------------------------
103 /** Execute only macros from secure list. Macros that are not from the list
104 are not executed.
106 const short FROM_LIST_NO_WARN = 7;
108 //-------------------------------------------------------------------------
109 /** Execute only macros from secure list or macros that are signed by
110 trusted certificates.
112 <p> If the macro is neither in secure list nor signed it will not be
113 executed.
114 </p>
116 <p> If the macro is signed with unknown certificate a warning will
117 appear. The macro either will not be executed or if the warning
118 allows conformation, it will be executed after user agrees.
119 </p>
121 const short FROM_LIST_AND_SIGNED_WARN = 8;
123 //-------------------------------------------------------------------------
124 /** Execute only macros from secure list or macros that are signed by
125 trusted certificates. No warning/conformation should be shown.
127 const short FROM_LIST_AND_SIGNED_NO_WARN = 9;
131 //=============================================================================
133 }; }; }; };
135 #endif