1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27
28#include "dialogs.hrc"
29#include "helpids.hrc"
30
31TabDialog RID_XMLSECTP_MACROSEC
32{
33    HelpID = HID_XMLSEC_TP_MACROSEC;
34	Size = MAP_APPFONT( TD_WIDTH, TD_HEIGHT );
35	OutputSize = TRUE;
36	Closeable = TRUE;
37	Moveable = TRUE;
38	SVLook = TRUE;
39
40	Text [ en-US ] = "Macro Security";
41	TabControl 1
42	{
43		Pos = MAP_APPFONT( TD_SP_INNERBORDER_LEFT, TD_SP_INNERBORDER_TOP );
44		Size = MAP_APPFONT( TP_WIDTH, TP_HEIGHT+RIDDER_HEIGHT );
45		SVLook = TRUE ;
46		PageList =
47		{
48			PageItem
49			{
50				Identifier = RID_XMLSECTP_SECLEVEL;
51				Text [ en-US ] = "Security Level";
52			};
53			PageItem
54			{
55				Identifier = RID_XMLSECTP_TRUSTSOURCES;
56				Text [ en-US ] = "Trusted Sources";
57			};
58		};
59	};
60	OKButton BTN_OK
61	{
62		Pos = MAP_APPFONT( MS_COL_H, CV_ROW_A );
63		Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
64		DefButton = TRUE;
65	};
66	CancelButton BTN_CANCEL
67	{
68		Pos = MAP_APPFONT( MS_COL_F, CV_ROW_A );
69		Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
70	};
71	HelpButton BTN_HELP
72	{
73		Pos = MAP_APPFONT( MS_COL_D, CV_ROW_A );
74		Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
75	};
76	PushButton BTN_RESET
77	{
78		Pos = MAP_APPFONT( MS_COL_B, CV_ROW_A );
79		Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
80		Text [ en-US ] = "Reset";
81	};
82};
83
84TabPage RID_XMLSECTP_SECLEVEL
85{
86    HelpId = HID_XMLSEC_TP_SECLEVEL;
87	Size = MAP_APPFONT( TP_WIDTH, TP_HEIGHT );
88	OutputSize = TRUE;
89	Hide = TRUE;
90	SVLook = TRUE;
91	FixedLine FL_SECLEVEL
92	{
93		Pos = MAP_APPFONT( SL_COL_0, SL_ROW_0 );
94		Size = MAP_APPFONT( SL_COL_3-SL_COL_0, RSC_CD_FIXEDLINE_HEIGHT );
95        Hide = TRUE;
96	};
97    FixedImage FI_SEC_READONLY
98    {
99        Pos = MAP_APPFONT( SL_COL_1 - 7, SL_ROW_0 + 4 );
100        Size = MAP_APPFONT( 6, 6 );
101    };
102    RadioButton RB_VERYHIGH
103	{
104        HelpID = "xmlsecurity:RadioButton:RID_XMLSECTP_SECLEVEL:RB_VERYHIGH";
105        Pos = MAP_APPFONT( SL_COL_1, SL_ROW_0 );
106        Size = MAP_APPFONT( SL_COL_2-SL_COL_1, RSC_BIG_RADIOBUTTON );
107		WordBreak = TRUE;
108        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.";
109	};
110	RadioButton RB_HIGH
111	{
112	    HelpID = "xmlsecurity:RadioButton:RID_XMLSECTP_SECLEVEL:RB_HIGH";
113        Pos = MAP_APPFONT( SL_COL_1, SL_ROW_1 );
114        Size = MAP_APPFONT( SL_COL_2-SL_COL_1, RSC_BIG_RADIOBUTTON );
115		WordBreak = TRUE;
116        Text [ en-US ] = "H~igh.\nOnly signed macros from trusted sources are allowed to run. Unsigned macros are disabled.";
117	};
118	RadioButton RB_MEDIUM
119	{
120	    HelpID = "xmlsecurity:RadioButton:RID_XMLSECTP_SECLEVEL:RB_MEDIUM";
121        Pos = MAP_APPFONT( SL_COL_1, SL_ROW_2 );
122        Size = MAP_APPFONT( SL_COL_2-SL_COL_1, RSC_BIG_RADIOBUTTON );
123		WordBreak = TRUE;
124        Text [ en-US ] = "~Medium.\nConfirmation required before executing macros from untrusted sources.";
125	};
126	RadioButton RB_LOW
127	{
128	    HelpID = "xmlsecurity:RadioButton:RID_XMLSECTP_SECLEVEL:RB_LOW";
129        Pos = MAP_APPFONT( SL_COL_1, SL_ROW_3 );
130        Size = MAP_APPFONT( SL_COL_2-SL_COL_1, SL_ROW_4-SL_ROW_3 );
131		WordBreak = TRUE;
132        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.";
133	};
134};
135
136TabPage RID_XMLSECTP_TRUSTSOURCES
137{
138    HelpId = HID_XMLSEC_TP_TRUSTSOURCES;
139	Size = MAP_APPFONT( TP_WIDTH, TP_HEIGHT );
140	OutputSize = TRUE;
141	Hide = TRUE;
142	SVLook = TRUE;
143	FixedLine FL_TRUSTCERT
144	{
145		Pos = MAP_APPFONT( TS_COL_0, TS_ROW_0 );
146        Size = MAP_APPFONT( TS_COL_8-TS_COL_0, RSC_CD_FIXEDLINE_HEIGHT );
147        Text [ en-US ] = "Trusted certificates";
148	};
149    FixedImage FI_TRUSTCERT_RO
150    {
151        Pos = MAP_APPFONT( TS_COL_1 - 7, TS_ROW_1 );
152        Size = MAP_APPFONT( 6, 6 );
153    };
154    Control LB_TRUSTCERT
155	{
156        HelpId = HID_XMLSEC_CTRL_TRUSTSOURCES;
157		Pos = MAP_APPFONT( TS_COL_1, TS_ROW_1 );
158        Size = MAP_APPFONT( TS_COL_7-TS_COL_1, RSC_CD_TABLISTBOX_HEIGHT );
159		SVLook = TRUE;
160		Border = TRUE;
161	};
162	String STR_HEADERBAR
163	{
164        Text [ en-US ] = "Issued to\tIssued by\tExpiration date";
165	};
166	PushButton PB_ADD_TRUSTCERT
167	{
168	    HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_TRUSTSOURCES:PB_ADD_TRUSTCERT";
169        Pos = MAP_APPFONT( TS_COL_2, TS_ROW_2 );
170		Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
171		Text [ en-US ] = "Add...";
172	};
173	PushButton PB_VIEW_TRUSTCERT
174	{
175	    HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_TRUSTSOURCES:PB_VIEW_TRUSTCERT";
176        Pos = MAP_APPFONT( TS_COL_4, TS_ROW_2 );
177		Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
178		Text [ en-US ] = "View...";
179	};
180	PushButton PB_REMOVE_TRUSTCERT
181	{
182	    HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_TRUSTSOURCES:PB_REMOVE_TRUSTCERT";
183        Pos = MAP_APPFONT( TS_COL_6, TS_ROW_2 );
184		Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
185		Text [ en-US ] = "Remove";
186	};
187	FixedLine FL_TRUSTFILELOC
188	{
189        Pos = MAP_APPFONT( TS_COL_0, TS_ROW_3 );
190        Size = MAP_APPFONT( TS_COL_8-TS_COL_0, RSC_CD_FIXEDLINE_HEIGHT );
191		Text [ en-US ] = "Trusted file locations";
192	};
193	FixedText FI_TRUSTFILELOC
194	{
195        Pos = MAP_APPFONT( TS_COL_1, TS_ROW_4 );
196        Size = MAP_APPFONT( TS_COL_7-TS_COL_1, 3*RSC_CD_FIXEDLINE_HEIGHT );
197		WordBreak = TRUE;
198        Text [ en-US ] = "Document macros are always executed if they have been opened from one of the following locations.";
199	};
200    FixedImage FI_TRUSTFILE_RO
201    {
202        Pos = MAP_APPFONT( TS_COL_1 - 7, TS_ROW_5 );
203        Size = MAP_APPFONT( 6, 6 );
204    };
205    ListBox LB_TRUSTFILELOC
206	{
207        HelpID = "xmlsecurity:ListBox:RID_XMLSECTP_TRUSTSOURCES:LB_TRUSTFILELOC";
208        Pos = MAP_APPFONT( TS_COL_1, TS_ROW_5 );
209        Size = MAP_APPFONT( TS_COL_7-TS_COL_1, TS_ROW_6-TS_ROW_5 );
210		SVLook = TRUE;
211		Border = TRUE;
212		VScroll = TRUE;
213		Sort = TRUE;
214	};
215	PushButton FL_ADD_TRUSTFILELOC
216	{
217	    HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_TRUSTSOURCES:FL_ADD_TRUSTFILELOC";
218        Pos = MAP_APPFONT( TS_COL_4, TS_ROW_7 );
219		Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
220		Text [ en-US ] = "Add...";
221	};
222	PushButton FL_REMOVE_TRUSTFILELOC
223	{
224	    HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_TRUSTSOURCES:FL_REMOVE_TRUSTFILELOC";
225        Pos = MAP_APPFONT( TS_COL_6, TS_ROW_7 );
226		Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
227		Text [ en-US ] = "Remove";
228	};
229};
230String RID_XMLSECTP_READONLY_CONFIG_TIP
231{
232    Text [ en-US ] = "This setting is protected by the Administrator";
233};
234Image RID_XMLSECTP_LOCK
235{
236    ImageBitmap = Bitmap
237    {
238        File = "lock.bmp";
239    };
240    MaskColor = Color { Red=0xffff; Green=0x0000; Blue=0xffff; };
241};
242Image RID_XMLSECTP_LOCK_HC
243{
244    ImageBitmap = Bitmap
245    {
246        File = "lock_hc.bmp";
247    };
248    MaskColor = Color { Red=0xffff; Green=0x0000; Blue=0xffff; };
249};
250
251