xref: /AOO41X/main/xmlsecurity/source/dialogs/macrosecurity.src (revision 3cbdc576872aaccc4d4dd8e89183f97504f003c7)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#include "dialogs.hrc"
25#include "helpids.hrc"
26
27TabDialog RID_XMLSECTP_MACROSEC
28{
29    HelpID = HID_XMLSEC_TP_MACROSEC;
30    Size = MAP_APPFONT( TD_WIDTH, TD_HEIGHT );
31    OutputSize = TRUE;
32    Closeable = TRUE;
33    Moveable = TRUE;
34    SVLook = TRUE;
35
36    Text [ en-US ] = "Macro Security";
37    TabControl 1
38    {
39        Pos = MAP_APPFONT( TD_SP_INNERBORDER_LEFT, TD_SP_INNERBORDER_TOP );
40        Size = MAP_APPFONT( TP_WIDTH, TP_HEIGHT+RIDDER_HEIGHT );
41        SVLook = TRUE ;
42        PageList =
43        {
44            PageItem
45            {
46                Identifier = RID_XMLSECTP_SECLEVEL;
47                Text [ en-US ] = "Security Level";
48            };
49            PageItem
50            {
51                Identifier = RID_XMLSECTP_TRUSTSOURCES;
52                Text [ en-US ] = "Trusted Sources";
53            };
54        };
55    };
56    OKButton BTN_OK
57    {
58        Pos = MAP_APPFONT( MS_COL_H, CV_ROW_A );
59        Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
60        DefButton = TRUE;
61    };
62    CancelButton BTN_CANCEL
63    {
64        Pos = MAP_APPFONT( MS_COL_F, CV_ROW_A );
65        Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
66    };
67    HelpButton BTN_HELP
68    {
69        Pos = MAP_APPFONT( MS_COL_D, CV_ROW_A );
70        Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
71    };
72    PushButton BTN_RESET
73    {
74        Pos = MAP_APPFONT( MS_COL_B, CV_ROW_A );
75        Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
76        Text [ en-US ] = "Reset";
77    };
78};
79
80TabPage RID_XMLSECTP_SECLEVEL
81{
82    HelpId = HID_XMLSEC_TP_SECLEVEL;
83    Size = MAP_APPFONT( TP_WIDTH, TP_HEIGHT );
84    OutputSize = TRUE;
85    Hide = TRUE;
86    SVLook = TRUE;
87    FixedLine FL_SECLEVEL
88    {
89        Pos = MAP_APPFONT( SL_COL_0, SL_ROW_0 );
90        Size = MAP_APPFONT( SL_COL_3-SL_COL_0, RSC_CD_FIXEDLINE_HEIGHT );
91        Hide = TRUE;
92    };
93    FixedImage FI_SEC_READONLY
94    {
95        Pos = MAP_APPFONT( SL_COL_1 - 7, SL_ROW_0 + 4 );
96        Size = MAP_APPFONT( 6, 6 );
97    };
98    RadioButton RB_VERYHIGH
99    {
100        HelpID = "xmlsecurity:RadioButton:RID_XMLSECTP_SECLEVEL:RB_VERYHIGH";
101        Pos = MAP_APPFONT( SL_COL_1, SL_ROW_0 );
102        Size = MAP_APPFONT( SL_COL_2-SL_COL_1, RSC_BIG_RADIOBUTTON );
103        WordBreak = TRUE;
104        Text [ en-US ] = "~Very high.\nOnly macros from trusted file locations are allowed to run. All other macros, regardless whether signed or not, are disabled.";
105    };
106    RadioButton RB_HIGH
107    {
108        HelpID = "xmlsecurity:RadioButton:RID_XMLSECTP_SECLEVEL:RB_HIGH";
109        Pos = MAP_APPFONT( SL_COL_1, SL_ROW_1 );
110        Size = MAP_APPFONT( SL_COL_2-SL_COL_1, RSC_BIG_RADIOBUTTON );
111        WordBreak = TRUE;
112        Text [ en-US ] = "H~igh.\nOnly signed macros from trusted sources are allowed to run. Unsigned macros are disabled.";
113    };
114    RadioButton RB_MEDIUM
115    {
116        HelpID = "xmlsecurity:RadioButton:RID_XMLSECTP_SECLEVEL:RB_MEDIUM";
117        Pos = MAP_APPFONT( SL_COL_1, SL_ROW_2 );
118        Size = MAP_APPFONT( SL_COL_2-SL_COL_1, RSC_BIG_RADIOBUTTON );
119        WordBreak = TRUE;
120        Text [ en-US ] = "~Medium.\nConfirmation required before executing macros from untrusted sources.";
121    };
122    RadioButton RB_LOW
123    {
124        HelpID = "xmlsecurity:RadioButton:RID_XMLSECTP_SECLEVEL:RB_LOW";
125        Pos = MAP_APPFONT( SL_COL_1, SL_ROW_3 );
126        Size = MAP_APPFONT( SL_COL_2-SL_COL_1, SL_ROW_4-SL_ROW_3 );
127        WordBreak = TRUE;
128        Text [ en-US ] = "~Low (not recommended).\nAll macros will be executed without confirmation. Use this setting only if you are certain that all documents that will be opened are safe.";
129    };
130};
131
132TabPage RID_XMLSECTP_TRUSTSOURCES
133{
134    HelpId = HID_XMLSEC_TP_TRUSTSOURCES;
135    Size = MAP_APPFONT( TP_WIDTH, TP_HEIGHT );
136    OutputSize = TRUE;
137    Hide = TRUE;
138    SVLook = TRUE;
139    FixedLine FL_TRUSTCERT
140    {
141        Pos = MAP_APPFONT( TS_COL_0, TS_ROW_0 );
142        Size = MAP_APPFONT( TS_COL_8-TS_COL_0, RSC_CD_FIXEDLINE_HEIGHT );
143        Text [ en-US ] = "Trusted certificates";
144    };
145    FixedImage FI_TRUSTCERT_RO
146    {
147        Pos = MAP_APPFONT( TS_COL_1 - 7, TS_ROW_1 );
148        Size = MAP_APPFONT( 6, 6 );
149    };
150    Control LB_TRUSTCERT
151    {
152        HelpId = HID_XMLSEC_CTRL_TRUSTSOURCES;
153        Pos = MAP_APPFONT( TS_COL_1, TS_ROW_1 );
154        Size = MAP_APPFONT( TS_COL_7-TS_COL_1, RSC_CD_TABLISTBOX_HEIGHT );
155        SVLook = TRUE;
156        Border = TRUE;
157    };
158    String STR_HEADERBAR
159    {
160        Text [ en-US ] = "Issued to\tIssued by\tExpiration date";
161    };
162    PushButton PB_ADD_TRUSTCERT
163    {
164        HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_TRUSTSOURCES:PB_ADD_TRUSTCERT";
165        Pos = MAP_APPFONT( TS_COL_2, TS_ROW_2 );
166        Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
167        Text [ en-US ] = "Add...";
168    };
169    PushButton PB_VIEW_TRUSTCERT
170    {
171        HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_TRUSTSOURCES:PB_VIEW_TRUSTCERT";
172        Pos = MAP_APPFONT( TS_COL_4, TS_ROW_2 );
173        Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
174        Text [ en-US ] = "View...";
175    };
176    PushButton PB_REMOVE_TRUSTCERT
177    {
178        HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_TRUSTSOURCES:PB_REMOVE_TRUSTCERT";
179        Pos = MAP_APPFONT( TS_COL_6, TS_ROW_2 );
180        Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
181        Text [ en-US ] = "Remove";
182    };
183    FixedLine FL_TRUSTFILELOC
184    {
185        Pos = MAP_APPFONT( TS_COL_0, TS_ROW_3 );
186        Size = MAP_APPFONT( TS_COL_8-TS_COL_0, RSC_CD_FIXEDLINE_HEIGHT );
187        Text [ en-US ] = "Trusted file locations";
188    };
189    FixedText FI_TRUSTFILELOC
190    {
191        Pos = MAP_APPFONT( TS_COL_1, TS_ROW_4 );
192        Size = MAP_APPFONT( TS_COL_7-TS_COL_1, 3*RSC_CD_FIXEDLINE_HEIGHT );
193        WordBreak = TRUE;
194        Text [ en-US ] = "Document macros are always executed if they have been opened from one of the following locations.";
195    };
196    FixedImage FI_TRUSTFILE_RO
197    {
198        Pos = MAP_APPFONT( TS_COL_1 - 7, TS_ROW_5 );
199        Size = MAP_APPFONT( 6, 6 );
200    };
201    ListBox LB_TRUSTFILELOC
202    {
203        HelpID = "xmlsecurity:ListBox:RID_XMLSECTP_TRUSTSOURCES:LB_TRUSTFILELOC";
204        Pos = MAP_APPFONT( TS_COL_1, TS_ROW_5 );
205        Size = MAP_APPFONT( TS_COL_7-TS_COL_1, TS_ROW_6-TS_ROW_5 );
206        SVLook = TRUE;
207        Border = TRUE;
208        VScroll = TRUE;
209        Sort = TRUE;
210    };
211    PushButton FL_ADD_TRUSTFILELOC
212    {
213        HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_TRUSTSOURCES:FL_ADD_TRUSTFILELOC";
214        Pos = MAP_APPFONT( TS_COL_4, TS_ROW_7 );
215        Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
216        Text [ en-US ] = "Add...";
217    };
218    PushButton FL_REMOVE_TRUSTFILELOC
219    {
220        HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_TRUSTSOURCES:FL_REMOVE_TRUSTFILELOC";
221        Pos = MAP_APPFONT( TS_COL_6, TS_ROW_7 );
222        Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
223        Text [ en-US ] = "Remove";
224    };
225};
226String RID_XMLSECTP_READONLY_CONFIG_TIP
227{
228    Text [ en-US ] = "This setting is protected by the Administrator";
229};
230Image RID_XMLSECTP_LOCK
231{
232    ImageBitmap = Bitmap
233    {
234        File = "lock.bmp";
235    };
236    MaskColor = Color { Red=0xffff; Green=0x0000; Blue=0xffff; };
237};
238Image RID_XMLSECTP_LOCK_HC
239{
240    ImageBitmap = Bitmap
241    {
242        File = "lock_hc.bmp";
243    };
244    MaskColor = Color { Red=0xffff; Green=0x0000; Blue=0xffff; };
245};
246
247