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