1*b1cdbd2cSJim Jagielski/************************************************************** 2*b1cdbd2cSJim Jagielski * 3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one 4*b1cdbd2cSJim Jagielski * or more contributor license agreements. See the NOTICE file 5*b1cdbd2cSJim Jagielski * distributed with this work for additional information 6*b1cdbd2cSJim Jagielski * regarding copyright ownership. The ASF licenses this file 7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the 8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance 9*b1cdbd2cSJim Jagielski * with the License. You may obtain a copy of the License at 10*b1cdbd2cSJim Jagielski * 11*b1cdbd2cSJim Jagielski * http://www.apache.org/licenses/LICENSE-2.0 12*b1cdbd2cSJim Jagielski * 13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing, 14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an 15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*b1cdbd2cSJim Jagielski * KIND, either express or implied. See the License for the 17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations 18*b1cdbd2cSJim Jagielski * under the License. 19*b1cdbd2cSJim Jagielski * 20*b1cdbd2cSJim Jagielski *************************************************************/ 21*b1cdbd2cSJim Jagielski 22*b1cdbd2cSJim Jagielski 23*b1cdbd2cSJim Jagielski 24*b1cdbd2cSJim Jagielski#include "dialogs.hrc" 25*b1cdbd2cSJim Jagielski#include "helpids.hrc" 26*b1cdbd2cSJim Jagielski#include "digitalsignaturesdialog.hrc" 27*b1cdbd2cSJim Jagielski 28*b1cdbd2cSJim JagielskiModalDialog RID_XMLSECDLG_DIGSIG 29*b1cdbd2cSJim Jagielski{ 30*b1cdbd2cSJim Jagielski HelpId = HID_XMLSEC_DLG_DIGSIG; 31*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 234, 191 ); 32*b1cdbd2cSJim Jagielski OutputSize = TRUE; 33*b1cdbd2cSJim Jagielski Closeable = TRUE; 34*b1cdbd2cSJim Jagielski Moveable = TRUE; 35*b1cdbd2cSJim Jagielski SVLook = TRUE; 36*b1cdbd2cSJim Jagielski 37*b1cdbd2cSJim Jagielski Text [ en-US ] = "Digital Signatures"; 38*b1cdbd2cSJim Jagielski 39*b1cdbd2cSJim Jagielski FixedText FT_HINT_DOC 40*b1cdbd2cSJim Jagielski { 41*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 6, 3 ); 42*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 222, 8 ); 43*b1cdbd2cSJim Jagielski Hide = TRUE; 44*b1cdbd2cSJim Jagielski Text [ en-US ] = "The following have signed the document content:"; 45*b1cdbd2cSJim Jagielski }; 46*b1cdbd2cSJim Jagielski FixedText FT_HINT_BASIC 47*b1cdbd2cSJim Jagielski { 48*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 6, 3 ); 49*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 222, 8 ); 50*b1cdbd2cSJim Jagielski Hide = TRUE; 51*b1cdbd2cSJim Jagielski Text [ en-US ] = "The following have signed the document macro:"; 52*b1cdbd2cSJim Jagielski }; 53*b1cdbd2cSJim Jagielski FixedText FT_HINT_PACK 54*b1cdbd2cSJim Jagielski { 55*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 6, 3 ); 56*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 222, 8 ); 57*b1cdbd2cSJim Jagielski Hide = TRUE; 58*b1cdbd2cSJim Jagielski Text [ en-US ] = "The following have signed this package:"; 59*b1cdbd2cSJim Jagielski }; 60*b1cdbd2cSJim Jagielski Control LB_SIGNATURES 61*b1cdbd2cSJim Jagielski { 62*b1cdbd2cSJim Jagielski HelpId = HID_XMLSEC_CTRL_SIGNATURESDLG; 63*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 6, 14 ); 64*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 222, 109 ); 65*b1cdbd2cSJim Jagielski SVLook = TRUE; 66*b1cdbd2cSJim Jagielski Border = TRUE; 67*b1cdbd2cSJim Jagielski }; 68*b1cdbd2cSJim Jagielski String STR_HEADERBAR 69*b1cdbd2cSJim Jagielski { 70*b1cdbd2cSJim Jagielski Text [ en-US ] = "\tSigned by\tDigital ID issued by\tDate"; 71*b1cdbd2cSJim Jagielski }; 72*b1cdbd2cSJim Jagielski String STR_VALID_SIGNATURE 73*b1cdbd2cSJim Jagielski { 74*b1cdbd2cSJim Jagielski Text [ en-US ] = "Valid signature"; 75*b1cdbd2cSJim Jagielski }; 76*b1cdbd2cSJim Jagielski String STR_NO_INFO_TO_VERIFY 77*b1cdbd2cSJim Jagielski { 78*b1cdbd2cSJim Jagielski Text [ en-US ] = "Certificate could not be validated"; 79*b1cdbd2cSJim Jagielski }; 80*b1cdbd2cSJim Jagielski String STR_INVALID_SIGNATURE 81*b1cdbd2cSJim Jagielski { 82*b1cdbd2cSJim Jagielski Text [ en-US ] = "The signatures in this document are invalid"; 83*b1cdbd2cSJim Jagielski }; 84*b1cdbd2cSJim Jagielski 85*b1cdbd2cSJim Jagielski FixedImage IMG_STATE_VALID 86*b1cdbd2cSJim Jagielski { 87*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 6, 127 ); 88*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 33, 22 ); 89*b1cdbd2cSJim Jagielski Fixed = Image 90*b1cdbd2cSJim Jagielski { 91*b1cdbd2cSJim Jagielski ImageBitmap = Bitmap { File = "signet_11x16.png"; }; 92*b1cdbd2cSJim Jagielski MaskColor = STD_MASKCOLOR; 93*b1cdbd2cSJim Jagielski }; 94*b1cdbd2cSJim Jagielski }; 95*b1cdbd2cSJim Jagielski FixedText FI_STATE_VALID 96*b1cdbd2cSJim Jagielski { 97*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 6, 127 ); 98*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 222, 8 ); 99*b1cdbd2cSJim Jagielski Hide = TRUE; 100*b1cdbd2cSJim Jagielski Text [ en-US ] = "The signatures in this document are valid"; 101*b1cdbd2cSJim Jagielski }; 102*b1cdbd2cSJim Jagielski FixedText FI_STATE_OLDSIGNATURE 103*b1cdbd2cSJim Jagielski { 104*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 6, 127 ); 105*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 222, 8 ); 106*b1cdbd2cSJim Jagielski Hide = TRUE; 107*b1cdbd2cSJim Jagielski Text [ en-US ] = "Not all parts of the document are signed"; 108*b1cdbd2cSJim Jagielski }; 109*b1cdbd2cSJim Jagielski FixedImage IMG_STATE_BROKEN 110*b1cdbd2cSJim Jagielski { 111*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 6, 127 ); 112*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 33, 22 ); 113*b1cdbd2cSJim Jagielski Fixed = Image 114*b1cdbd2cSJim Jagielski { 115*b1cdbd2cSJim Jagielski ImageBitmap = Bitmap { File = "caution_11x16.png"; }; 116*b1cdbd2cSJim Jagielski MaskColor = STD_MASKCOLOR; 117*b1cdbd2cSJim Jagielski }; 118*b1cdbd2cSJim Jagielski }; 119*b1cdbd2cSJim Jagielski FixedText FI_STATE_BROKEN 120*b1cdbd2cSJim Jagielski { 121*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 6, 127 ); 122*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 222, 8 ); 123*b1cdbd2cSJim Jagielski Hide = TRUE; 124*b1cdbd2cSJim Jagielski Text [ en-US ] = "The signatures in this document are invalid"; 125*b1cdbd2cSJim Jagielski }; 126*b1cdbd2cSJim Jagielski FixedImage IMG_STATE_NOTVALIDATED 127*b1cdbd2cSJim Jagielski { 128*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 6, 127 ); 129*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 33, 22 ); 130*b1cdbd2cSJim Jagielski Fixed = Image 131*b1cdbd2cSJim Jagielski { 132*b1cdbd2cSJim Jagielski ImageBitmap = Bitmap { File = "notcertificate_16.png"; }; 133*b1cdbd2cSJim Jagielski MaskColor = STD_MASKCOLOR; 134*b1cdbd2cSJim Jagielski }; 135*b1cdbd2cSJim Jagielski }; 136*b1cdbd2cSJim Jagielski FixedText FI_STATE_NOTVALIDATED 137*b1cdbd2cSJim Jagielski { 138*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 6, 127 ); 139*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 222, 8 ); 140*b1cdbd2cSJim Jagielski Hide = TRUE; 141*b1cdbd2cSJim Jagielski }; 142*b1cdbd2cSJim Jagielski PushButton BTN_VIEWCERT 143*b1cdbd2cSJim Jagielski { 144*b1cdbd2cSJim Jagielski HelpID = "xmlsecurity:PushButton:RID_XMLSECDLG_DIGSIG:BTN_VIEWCERT"; 145*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 6, 142 ); 146*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 70, 14 ); 147*b1cdbd2cSJim Jagielski Text [ en-US ] = "View Certificate..."; 148*b1cdbd2cSJim Jagielski }; 149*b1cdbd2cSJim Jagielski PushButton BTN_ADDCERT 150*b1cdbd2cSJim Jagielski { 151*b1cdbd2cSJim Jagielski HelpID = "xmlsecurity:PushButton:RID_XMLSECDLG_DIGSIG:BTN_ADDCERT"; 152*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 82, 142 ); 153*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 70, 14 ); 154*b1cdbd2cSJim Jagielski Text [ en-US ] = "Sign Document..."; 155*b1cdbd2cSJim Jagielski }; 156*b1cdbd2cSJim Jagielski PushButton BTN_REMOVECERT 157*b1cdbd2cSJim Jagielski { 158*b1cdbd2cSJim Jagielski HelpID = "xmlsecurity:PushButton:RID_XMLSECDLG_DIGSIG:BTN_REMOVECERT"; 159*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 158, 142 ); 160*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 70, 14 ); 161*b1cdbd2cSJim Jagielski Text [ en-US ] = "Remove"; 162*b1cdbd2cSJim Jagielski }; 163*b1cdbd2cSJim Jagielski FixedLine FL_BOTTOM_SEP 164*b1cdbd2cSJim Jagielski { 165*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 0, 160 ); 166*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 234, 8 ); 167*b1cdbd2cSJim Jagielski }; 168*b1cdbd2cSJim Jagielski OKButton BTN_OK 169*b1cdbd2cSJim Jagielski { 170*b1cdbd2cSJim Jagielski DefButton = TRUE; 171*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 178, 171 ); 172*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 50, 14 ); 173*b1cdbd2cSJim Jagielski Text [ en-US ] = "Close"; 174*b1cdbd2cSJim Jagielski }; 175*b1cdbd2cSJim Jagielski HelpButton BTN_HELP 176*b1cdbd2cSJim Jagielski { 177*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 6, 171 ); 178*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 50, 14 ); 179*b1cdbd2cSJim Jagielski }; 180*b1cdbd2cSJim Jagielski Image IMG_STATE_VALID_HC 181*b1cdbd2cSJim Jagielski { 182*b1cdbd2cSJim Jagielski ImageBitmap = Bitmap { File = "signet_11x16_h.png"; }; 183*b1cdbd2cSJim Jagielski MaskColor = STD_MASKCOLOR; 184*b1cdbd2cSJim Jagielski }; 185*b1cdbd2cSJim Jagielski Image IMG_STATE_BROKEN_HC 186*b1cdbd2cSJim Jagielski { 187*b1cdbd2cSJim Jagielski ImageBitmap = Bitmap { File = "caution_11x16_h.png"; }; 188*b1cdbd2cSJim Jagielski MaskColor = STD_MASKCOLOR; 189*b1cdbd2cSJim Jagielski }; 190*b1cdbd2cSJim Jagielski Image IMG_STATE_NOTVALIDATED_HC 191*b1cdbd2cSJim Jagielski { 192*b1cdbd2cSJim Jagielski ImageBitmap = Bitmap { File = "notcertificate_16_h.png"; }; 193*b1cdbd2cSJim Jagielski MaskColor = STD_MASKCOLOR; 194*b1cdbd2cSJim Jagielski }; 195*b1cdbd2cSJim Jagielski}; 196*b1cdbd2cSJim Jagielski 197*b1cdbd2cSJim Jagielski 198*b1cdbd2cSJim JagielskiErrorBox RID_XMLSECDLG_OLD_ODF_FORMAT 199*b1cdbd2cSJim Jagielski{ 200*b1cdbd2cSJim Jagielski Buttons = WB_OK ; 201*b1cdbd2cSJim Jagielski DefButton = WB_DEF_OK ; 202*b1cdbd2cSJim Jagielski Message [ en-US ] = "This document contains signatures in ODF 1.1 format. " 203*b1cdbd2cSJim Jagielski "Signing documents in %PRODUCTNAME %PRODUCTVERSION requires ODF 1.2 format version. " 204*b1cdbd2cSJim Jagielski "Thus no signatures can be added or removed to this document.\n\n" 205*b1cdbd2cSJim Jagielski "Save document in ODF 1.2 format and add all desired signatures again."; 206*b1cdbd2cSJim Jagielski}; 207*b1cdbd2cSJim Jagielski 208*b1cdbd2cSJim Jagielski 209*b1cdbd2cSJim JagielskiQueryBox MSG_XMLSECDLG_QUERY_REMOVEDOCSIGNBEFORESIGN 210*b1cdbd2cSJim Jagielski{ 211*b1cdbd2cSJim Jagielski Buttons = WB_YES_NO ; 212*b1cdbd2cSJim Jagielski DefButton = WB_DEF_NO ; 213*b1cdbd2cSJim Jagielski Message [ en-US ] = "Adding or removing a macro signature will remove all document signatures.\n" 214*b1cdbd2cSJim Jagielski "Do you really want to continue?"; 215*b1cdbd2cSJim Jagielski}; 216*b1cdbd2cSJim Jagielski 217*b1cdbd2cSJim Jagielski 218