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