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