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