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#include "dialogs.hrc"
24cdf0e10cSrcweir#include "helpids.hrc"
25cdf0e10cSrcweir
26cdf0e10cSrcweirTabDialog RID_XMLSECDLG_CERTVIEWER
27cdf0e10cSrcweir{
28cdf0e10cSrcweir    HelpID = HID_XMLSEC_DLG_CERTVIEWER;
29cdf0e10cSrcweir	Size = MAP_APPFONT( TD_WIDTH, TD_HEIGHT );
30cdf0e10cSrcweir	OutputSize = TRUE;
31cdf0e10cSrcweir	Closeable = TRUE;
32cdf0e10cSrcweir	Moveable = TRUE;
33cdf0e10cSrcweir	SVLook = TRUE;
34cdf0e10cSrcweir
35cdf0e10cSrcweir	Text [ en-US ] = "View Certificate";
36cdf0e10cSrcweir	TabControl 1
37cdf0e10cSrcweir	{
38cdf0e10cSrcweir		Pos = MAP_APPFONT( TD_SP_INNERBORDER_LEFT, TD_SP_INNERBORDER_TOP );
39cdf0e10cSrcweir		Size = MAP_APPFONT( TP_WIDTH, TP_HEIGHT+RIDDER_HEIGHT );
40cdf0e10cSrcweir		SVLook = TRUE ;
41cdf0e10cSrcweir		PageList =
42cdf0e10cSrcweir		{
43cdf0e10cSrcweir			PageItem
44cdf0e10cSrcweir			{
45cdf0e10cSrcweir				Identifier = RID_XMLSECTP_GENERAL;
46cdf0e10cSrcweir				Text [ en-US ] = "General";
47cdf0e10cSrcweir			};
48cdf0e10cSrcweir			PageItem
49cdf0e10cSrcweir			{
50cdf0e10cSrcweir				Identifier = RID_XMLSECTP_DETAILS;
51cdf0e10cSrcweir				Text [ en-US ] = "Details";
52cdf0e10cSrcweir			};
53cdf0e10cSrcweir			PageItem
54cdf0e10cSrcweir			{
55cdf0e10cSrcweir				Identifier = RID_XMLSECTP_CERTPATH;
56cdf0e10cSrcweir				Text [ en-US ] = "Certification Path";
57cdf0e10cSrcweir			};
58cdf0e10cSrcweir		};
59cdf0e10cSrcweir	};
60cdf0e10cSrcweir	OKButton BTN_OK
61cdf0e10cSrcweir	{
62cdf0e10cSrcweir		Pos = MAP_APPFONT( CV_COL_A, CV_ROW_A );
63cdf0e10cSrcweir		Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
64cdf0e10cSrcweir		DefButton = TRUE;
65cdf0e10cSrcweir	};
66cdf0e10cSrcweir	HelpButton BTN_HELP
67cdf0e10cSrcweir	{
68cdf0e10cSrcweir		Pos = MAP_APPFONT( CV_COL_C, CV_ROW_A );
69cdf0e10cSrcweir		Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
70cdf0e10cSrcweir	};
71cdf0e10cSrcweir};
72cdf0e10cSrcweir
73cdf0e10cSrcweirTabPage RID_XMLSECTP_GENERAL
74cdf0e10cSrcweir{
75cdf0e10cSrcweir    HelpId = HID_XMLSEC_TP_GENERAL;
76cdf0e10cSrcweir	Size = MAP_APPFONT( TP_WIDTH, TP_HEIGHT );
77cdf0e10cSrcweir	OutputSize = TRUE;
78cdf0e10cSrcweir	Hide = TRUE;
79cdf0e10cSrcweir	SVLook = TRUE;
80cdf0e10cSrcweir	Window WIN_FRAME
81cdf0e10cSrcweir	{
82cdf0e10cSrcweir		SVLook = TRUE;
83cdf0e10cSrcweir		Border = TRUE;
84cdf0e10cSrcweir		Pos = MAP_APPFONT( CV_COL_0, CV_ROW_0 );
85cdf0e10cSrcweir		Size = MAP_APPFONT( CV_CONT_WIDTH, CV_CONT_HEIGHT );
86cdf0e10cSrcweir	};
87cdf0e10cSrcweir	FixedImage IMG_CERT
88cdf0e10cSrcweir	{
89cdf0e10cSrcweir		Pos = MAP_APPFONT( CW_COL_0, CW_ROW_0 );
90cdf0e10cSrcweir		Size = MAP_APPFONT( IMG1_WIDTH, IMG1_HEIGHT );
91cdf0e10cSrcweir		Fixed = Image
92cdf0e10cSrcweir		{
93cdf0e10cSrcweir			ImageBitmap = Bitmap { File = "certificate_40x56.png"; };
94cdf0e10cSrcweir			MaskColor = STD_MASKCOLOR;
95cdf0e10cSrcweir		};
96cdf0e10cSrcweir	};
97cdf0e10cSrcweir	FixedText FI_CERTINFO
98cdf0e10cSrcweir	{
99cdf0e10cSrcweir		Pos = MAP_APPFONT( CW_COL_3, CW_ROW_1 );
100cdf0e10cSrcweir		Size = MAP_APPFONT( CW_COL_5-CW_COL_3, RSC_CD_FIXEDTEXT_HEIGHT );
101cdf0e10cSrcweir		Text [ en-US ] = " Certificate Information";
102cdf0e10cSrcweir	};
103cdf0e10cSrcweir	FixedLine FL_SEP1
104cdf0e10cSrcweir	{
105cdf0e10cSrcweir		Pos = MAP_APPFONT( CW_COL_0, CW_ROW_3 );
106cdf0e10cSrcweir		Size = MAP_APPFONT( CW_COL_5-CW_COL_0, RSC_CD_FIXEDLINE_HEIGHT );
107cdf0e10cSrcweir	};
108cdf0e10cSrcweir	FixedText FI_HINTNOTTRUST
109cdf0e10cSrcweir	{
110cdf0e10cSrcweir		Pos = MAP_APPFONT( CW_COL_1, CW_ROW_4 );
111cdf0e10cSrcweir		Size = MAP_APPFONT( CW_COL_5a-CW_COL_1, CW_ROW_4a-CW_ROW_4 );
112cdf0e10cSrcweir		WordBreak = TRUE;
113cdf0e10cSrcweir		Text [ en-US ] = "This certificate is intended for the following purpose(s):";
114cdf0e10cSrcweir	};
115cdf0e10cSrcweir	FixedLine FL_SEP2
116cdf0e10cSrcweir	{
117cdf0e10cSrcweir		Pos = MAP_APPFONT( CW_COL_0, CW_ROW_5 );
118cdf0e10cSrcweir		Size = MAP_APPFONT( CW_COL_5-CW_COL_0, RSC_CD_FIXEDLINE_HEIGHT );
119cdf0e10cSrcweir	};
120cdf0e10cSrcweir	FixedText FI_ISSTOLABEL
121cdf0e10cSrcweir	{
122cdf0e10cSrcweir		Pos = MAP_APPFONT( CW_COL_1, CW_ROW_6 );
123cdf0e10cSrcweir		Size = MAP_APPFONT( CW_COL_4-CW_COL_1-1, RSC_CD_FIXEDTEXT_HEIGHT );
124cdf0e10cSrcweir		Text [ en-US ] = "Issued to:";
125cdf0e10cSrcweir	};
126cdf0e10cSrcweir	FixedText FI_ISSTO
127cdf0e10cSrcweir	{
128cdf0e10cSrcweir		Pos = MAP_APPFONT( CW_COL_4, CW_ROW_6 );
129cdf0e10cSrcweir		Size = MAP_APPFONT( CW_COL_5-CW_COL_4, RSC_CD_FIXEDTEXT_HEIGHT );
130cdf0e10cSrcweir	};
131cdf0e10cSrcweir	FixedText FI_ISSBYLABEL
132cdf0e10cSrcweir	{
133cdf0e10cSrcweir		Pos = MAP_APPFONT( CW_COL_1, CW_ROW_7 );
134cdf0e10cSrcweir		Size = MAP_APPFONT( CW_COL_4-CW_COL_1-1, RSC_CD_FIXEDTEXT_HEIGHT );
135cdf0e10cSrcweir		Text [ en-US ] = "Issued by:";
136cdf0e10cSrcweir	};
137cdf0e10cSrcweir	FixedText FI_ISSBY
138cdf0e10cSrcweir	{
139cdf0e10cSrcweir		Pos = MAP_APPFONT( CW_COL_4, CW_ROW_7 );
140cdf0e10cSrcweir		Size = MAP_APPFONT( CW_COL_5-CW_COL_4, RSC_CD_FIXEDTEXT_HEIGHT );
141cdf0e10cSrcweir	};
142cdf0e10cSrcweir    FixedText FI_VALIDDATE
143cdf0e10cSrcweir	{
144cdf0e10cSrcweir		Pos = MAP_APPFONT( CW_COL_1, CW_ROW_8 );
145cdf0e10cSrcweir        Size = MAP_APPFONT( CW_COL_5-CW_COL_1-1, RSC_CD_FIXEDTEXT_HEIGHT );
146cdf0e10cSrcweir        Text [ en-US ] = "Valid from %SDATE% to %EDATE%";
147cdf0e10cSrcweir	};
148cdf0e10cSrcweir	FixedImage IMG_KEY
149cdf0e10cSrcweir	{
150cdf0e10cSrcweir		Pos = MAP_APPFONT( CW_COL_0, CW_ROW_9 );
151cdf0e10cSrcweir		Size = MAP_APPFONT( IMG2_WIDTH, IMG2_HEIGHT );
152cdf0e10cSrcweir		Fixed = Image
153cdf0e10cSrcweir		{
154cdf0e10cSrcweir			ImageBitmap = Bitmap { File = "key_12.png"; };
155cdf0e10cSrcweir			MaskColor = STD_MASKCOLOR;
156cdf0e10cSrcweir		};
157cdf0e10cSrcweir	};
158cdf0e10cSrcweir	FixedText FI_CORRPRIVKEY
159cdf0e10cSrcweir	{
160cdf0e10cSrcweir		Pos = MAP_APPFONT( CW_COL_1a, CW_ROW_10 );
161cdf0e10cSrcweir		Size = MAP_APPFONT( CW_COL_5-CW_COL_1a, RSC_CD_FIXEDTEXT_HEIGHT );
162cdf0e10cSrcweir		Text [ en-US ] = "You have a private key that corresponds to this certificate.";
163cdf0e10cSrcweir	};
164cdf0e10cSrcweir	String STR_CERTIFICATE_NOT_VALIDATED
165cdf0e10cSrcweir	{
166cdf0e10cSrcweir		Text [ en-US ] = "The certificate could not be validated.";
167cdf0e10cSrcweir	};
168cdf0e10cSrcweir    Image IMG_STATE_NOT_VALIDATED
169cdf0e10cSrcweir    {
170cdf0e10cSrcweir	    ImageBitmap = Bitmap { File = "notcertificate_40x56.png"; };
171cdf0e10cSrcweir       	MaskColor = STD_MASKCOLOR;
172cdf0e10cSrcweir	};
173cdf0e10cSrcweir    Image IMG_STATE_CERIFICATED_HC
174cdf0e10cSrcweir    {
175cdf0e10cSrcweir	    ImageBitmap = Bitmap { File = "certificate_40x56_h.png"; };
176cdf0e10cSrcweir       	MaskColor = STD_MASKCOLOR;
177cdf0e10cSrcweir	};
178cdf0e10cSrcweir    Image IMG_STATE_NOT_VALIDATED_HC
179cdf0e10cSrcweir    {
180cdf0e10cSrcweir	    ImageBitmap = Bitmap { File = "notcertificate_40x56_h.png"; };
181cdf0e10cSrcweir       	MaskColor = STD_MASKCOLOR;
182cdf0e10cSrcweir	};
183cdf0e10cSrcweir    Image IMG_KEY_HC
184cdf0e10cSrcweir    {
185cdf0e10cSrcweir	    ImageBitmap = Bitmap { File = "key_12_h.png"; };
186cdf0e10cSrcweir       	MaskColor = STD_MASKCOLOR;
187cdf0e10cSrcweir	};
188cdf0e10cSrcweir};
189cdf0e10cSrcweir
190cdf0e10cSrcweirTabPage RID_XMLSECTP_DETAILS
191cdf0e10cSrcweir{
192cdf0e10cSrcweir    HelpId = HID_XMLSEC_TP_DETAILS;
193cdf0e10cSrcweir	Size = MAP_APPFONT( TP_WIDTH, TP_HEIGHT );
194cdf0e10cSrcweir	OutputSize = TRUE;
195cdf0e10cSrcweir	Hide = TRUE;
196cdf0e10cSrcweir	SVLook = TRUE;
197cdf0e10cSrcweir	Control LB_ELEMENTS
198cdf0e10cSrcweir	{
199cdf0e10cSrcweir        HelpId = HID_XMLSEC_CTRL_ELEMENTS;
200cdf0e10cSrcweir		Pos = MAP_APPFONT( CV_COL_0, CV_ROW_0 );
201cdf0e10cSrcweir		Size = MAP_APPFONT( CV_CONT_WIDTH, CV_ROW_1-CV_ROW_0 );
202cdf0e10cSrcweir		SVLook = TRUE;
203cdf0e10cSrcweir		Border = TRUE;
204cdf0e10cSrcweir	};
205cdf0e10cSrcweir	String STR_HEADERBAR
206cdf0e10cSrcweir	{
207cdf0e10cSrcweir		Text [ en-US ] = "Field\tValue";
208cdf0e10cSrcweir	};
209cdf0e10cSrcweir	MultiLineEdit ML_ELEMENT
210cdf0e10cSrcweir	{
211cdf0e10cSrcweir	    HelpID = "xmlsecurity:MultiLineEdit:RID_XMLSECTP_DETAILS:ML_ELEMENT";
212cdf0e10cSrcweir		Pos = MAP_APPFONT( CV_COL_0, CV_ROW_2 );
213cdf0e10cSrcweir		Size = MAP_APPFONT( CV_CONT_WIDTH, CV_ROW_3-CV_ROW_2 );
214cdf0e10cSrcweir		ReadOnly = TRUE;
215cdf0e10cSrcweir		Border = TRUE;
216cdf0e10cSrcweir		VSCROLL = TRUE;
217cdf0e10cSrcweir	};
218cdf0e10cSrcweir	String STR_VERSION
219cdf0e10cSrcweir	{
220cdf0e10cSrcweir		Text [ en-US ] = "Version";
221cdf0e10cSrcweir	};
222cdf0e10cSrcweir	String STR_SERIALNUM
223cdf0e10cSrcweir	{
224cdf0e10cSrcweir		Text [ en-US ] = "Serial Number";
225cdf0e10cSrcweir	};
226cdf0e10cSrcweir	String STR_SIGALGORITHM
227cdf0e10cSrcweir	{
228cdf0e10cSrcweir		Text [ en-US ] = "Signature Algorithm";
229cdf0e10cSrcweir	};
230cdf0e10cSrcweir	String STR_ISSUER
231cdf0e10cSrcweir	{
232cdf0e10cSrcweir		Text [ en-US ] = "Issuer";
233cdf0e10cSrcweir	};
234cdf0e10cSrcweir	String STR_ISSUER_ID
235cdf0e10cSrcweir	{
236cdf0e10cSrcweir		Text [ en-US ] = "Issuer Unique ID";
237cdf0e10cSrcweir	};
238cdf0e10cSrcweir	String STR_VALIDFROM
239cdf0e10cSrcweir	{
240cdf0e10cSrcweir		Text [ en-US ] = "Valid From";
241cdf0e10cSrcweir	};
242cdf0e10cSrcweir	String STR_VALIDTO
243cdf0e10cSrcweir	{
244cdf0e10cSrcweir		Text [ en-US ] = "Valid to";
245cdf0e10cSrcweir	};
246cdf0e10cSrcweir	String STR_SUBJECT
247cdf0e10cSrcweir	{
248cdf0e10cSrcweir		Text [ en-US ] = "Subject";
249cdf0e10cSrcweir	};
250cdf0e10cSrcweir	String STR_SUBJECT_ID
251cdf0e10cSrcweir	{
252cdf0e10cSrcweir		Text [ en-US ] = "Subject Unique ID";
253cdf0e10cSrcweir	};
254cdf0e10cSrcweir	String STR_SUBJECT_PUBKEY_ALGO
255cdf0e10cSrcweir	{
256cdf0e10cSrcweir		Text [ en-US ] = "Subject Algorithm";
257cdf0e10cSrcweir	};
258cdf0e10cSrcweir	String STR_SUBJECT_PUBKEY_VAL
259cdf0e10cSrcweir	{
260cdf0e10cSrcweir        Text [ en-US ] = "Public Key";
261cdf0e10cSrcweir	};
262cdf0e10cSrcweir	String STR_SIGNATURE_ALGO
263cdf0e10cSrcweir	{
264cdf0e10cSrcweir		Text [ en-US ] = "Signature Algorithm";
265cdf0e10cSrcweir	};
266cdf0e10cSrcweir	String STR_THUMBPRINT_SHA1
267cdf0e10cSrcweir	{
268cdf0e10cSrcweir		Text [ en-US ] = "Thumbprint SHA1";
269cdf0e10cSrcweir	};
270cdf0e10cSrcweir	String STR_THUMBPRINT_MD5
271cdf0e10cSrcweir	{
272cdf0e10cSrcweir		Text [ en-US ] = "Thumbprint MD5";
273cdf0e10cSrcweir	};
274cdf0e10cSrcweir};
275cdf0e10cSrcweir
276cdf0e10cSrcweirTabPage RID_XMLSECTP_CERTPATH
277cdf0e10cSrcweir{
278cdf0e10cSrcweir    HelpId = HID_XMLSEC_TP_CERTPATH;
279cdf0e10cSrcweir	Size = MAP_APPFONT( TP_WIDTH, TP_HEIGHT );
280cdf0e10cSrcweir	OutputSize = TRUE;
281cdf0e10cSrcweir	Hide = TRUE;
282cdf0e10cSrcweir	SVLook = TRUE;
283cdf0e10cSrcweir	FixedText FT_CERTPATH
284cdf0e10cSrcweir	{
285cdf0e10cSrcweir        Pos = MAP_APPFONT( CV_COL_0, CVP_ROW_0 );
286cdf0e10cSrcweir		Size = MAP_APPFONT( CV_CONT_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT );
287cdf0e10cSrcweir		Text [ en-US ] = "Certification path";
288cdf0e10cSrcweir	};
289cdf0e10cSrcweir	Control LB_SIGNATURES
290cdf0e10cSrcweir	{
291cdf0e10cSrcweir        HelpId = HID_XMLSEC_CTRL_VIEWSIGNATURES;
292cdf0e10cSrcweir        Pos = MAP_APPFONT( CV_COL_0, CVP_ROW_1 );
293cdf0e10cSrcweir        Size = MAP_APPFONT( CV_CONT_WIDTH, REST_HEIGHT/3*2 );
294cdf0e10cSrcweir		SVLook = TRUE;
295cdf0e10cSrcweir		Border = TRUE;
296cdf0e10cSrcweir	};
297cdf0e10cSrcweir	PushButton BTN_VIEWCERT
298cdf0e10cSrcweir	{
299cdf0e10cSrcweir	    HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_CERTPATH:BTN_VIEWCERT";
300cdf0e10cSrcweir        Pos = MAP_APPFONT( CV_COL_1-(CV_COL_B-CV_COL_A), CVP_ROW_2 );
301cdf0e10cSrcweir        Size = MAP_APPFONT( CV_COL_B-CV_COL_A, RSC_CD_PUSHBUTTON_HEIGHT );
302cdf0e10cSrcweir        Text [ en-US ] = "View Certificate...";
303cdf0e10cSrcweir	};
304cdf0e10cSrcweir	FixedText FT_CERTSTATUS
305cdf0e10cSrcweir	{
306cdf0e10cSrcweir        Pos = MAP_APPFONT( CV_COL_0, CVP_ROW_3 );
307cdf0e10cSrcweir		Size = MAP_APPFONT( CV_CONT_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT );
308cdf0e10cSrcweir		Text [ en-US ] = "Certification status";
309cdf0e10cSrcweir	};
310cdf0e10cSrcweir	MultiLineEdit ML_CERTSTATUS
311cdf0e10cSrcweir	{
312cdf0e10cSrcweir	    HelpID = "xmlsecurity:MultiLineEdit:RID_XMLSECTP_CERTPATH:ML_CERTSTATUS";
313cdf0e10cSrcweir        Pos = MAP_APPFONT( CV_COL_0, CVP_ROW_4 );
314cdf0e10cSrcweir        Size = MAP_APPFONT( CV_CONT_WIDTH, REST_HEIGHT/3 );
315cdf0e10cSrcweir		ReadOnly = TRUE;
316cdf0e10cSrcweir		Border = TRUE;
317cdf0e10cSrcweir	};
318cdf0e10cSrcweir    Image IMG_CERT_SMALL
319cdf0e10cSrcweir    {
320cdf0e10cSrcweir        ImageBitmap = Bitmap { File = "certificate_16.png"; };
321cdf0e10cSrcweir        MaskColor = STD_MASKCOLOR;
322cdf0e10cSrcweir    };
323cdf0e10cSrcweir    Image IMG_CERT_SMALL_HC
324cdf0e10cSrcweir    {
325cdf0e10cSrcweir        ImageBitmap = Bitmap { File = "certificate_16_h.png"; };
326cdf0e10cSrcweir        MaskColor = STD_MASKCOLOR;
327cdf0e10cSrcweir    };
328cdf0e10cSrcweir    Image IMG_CERT_NOTVALIDATED_SMALL
329cdf0e10cSrcweir    {
330cdf0e10cSrcweir        ImageBitmap = Bitmap { File = "notcertificate_16.png"; };
331cdf0e10cSrcweir        MaskColor = STD_MASKCOLOR;
332cdf0e10cSrcweir    };
333cdf0e10cSrcweir    Image IMG_CERT_NOTVALIDATED_SMALL_HC
334cdf0e10cSrcweir    {
335cdf0e10cSrcweir        ImageBitmap = Bitmap { File = "notcertificate_16_h.png"; };
336cdf0e10cSrcweir        MaskColor = STD_MASKCOLOR;
337cdf0e10cSrcweir    };
338cdf0e10cSrcweir    String STR_PATH_CERT_OK
339cdf0e10cSrcweir    {
340cdf0e10cSrcweir		Text [ en-US ] = "The certificate is OK.";
341cdf0e10cSrcweir    };
342cdf0e10cSrcweir    String STR_PATH_CERT_NOT_VALIDATED
343cdf0e10cSrcweir    {
344cdf0e10cSrcweir		Text [ en-US ] = "The certificate could not be validated.";
345cdf0e10cSrcweir    };
346cdf0e10cSrcweir};
347