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