1*cdf0e10cSrcweir/************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir#include "dialogs.hrc" 29*cdf0e10cSrcweir#include "helpids.hrc" 30*cdf0e10cSrcweir#include "digitalsignaturesdialog.hrc" 31*cdf0e10cSrcweir 32*cdf0e10cSrcweirModalDialog RID_XMLSECDLG_DIGSIG 33*cdf0e10cSrcweir{ 34*cdf0e10cSrcweir HelpId = HID_XMLSEC_DLG_DIGSIG; 35*cdf0e10cSrcweir Size = MAP_APPFONT( 234, 191 ); 36*cdf0e10cSrcweir OutputSize = TRUE; 37*cdf0e10cSrcweir Closeable = TRUE; 38*cdf0e10cSrcweir Moveable = TRUE; 39*cdf0e10cSrcweir SVLook = TRUE; 40*cdf0e10cSrcweir 41*cdf0e10cSrcweir Text [ en-US ] = "Digital Signatures"; 42*cdf0e10cSrcweir 43*cdf0e10cSrcweir FixedText FT_HINT_DOC 44*cdf0e10cSrcweir { 45*cdf0e10cSrcweir Pos = MAP_APPFONT( 6, 3 ); 46*cdf0e10cSrcweir Size = MAP_APPFONT( 222, 8 ); 47*cdf0e10cSrcweir Hide = TRUE; 48*cdf0e10cSrcweir Text [ en-US ] = "The following have signed the document content:"; 49*cdf0e10cSrcweir }; 50*cdf0e10cSrcweir FixedText FT_HINT_BASIC 51*cdf0e10cSrcweir { 52*cdf0e10cSrcweir Pos = MAP_APPFONT( 6, 3 ); 53*cdf0e10cSrcweir Size = MAP_APPFONT( 222, 8 ); 54*cdf0e10cSrcweir Hide = TRUE; 55*cdf0e10cSrcweir Text [ en-US ] = "The following have signed the document macro:"; 56*cdf0e10cSrcweir }; 57*cdf0e10cSrcweir FixedText FT_HINT_PACK 58*cdf0e10cSrcweir { 59*cdf0e10cSrcweir Pos = MAP_APPFONT( 6, 3 ); 60*cdf0e10cSrcweir Size = MAP_APPFONT( 222, 8 ); 61*cdf0e10cSrcweir Hide = TRUE; 62*cdf0e10cSrcweir Text [ en-US ] = "The following have signed this package:"; 63*cdf0e10cSrcweir }; 64*cdf0e10cSrcweir Control LB_SIGNATURES 65*cdf0e10cSrcweir { 66*cdf0e10cSrcweir HelpId = HID_XMLSEC_CTRL_SIGNATURESDLG; 67*cdf0e10cSrcweir Pos = MAP_APPFONT( 6, 14 ); 68*cdf0e10cSrcweir Size = MAP_APPFONT( 222, 109 ); 69*cdf0e10cSrcweir SVLook = TRUE; 70*cdf0e10cSrcweir Border = TRUE; 71*cdf0e10cSrcweir }; 72*cdf0e10cSrcweir String STR_HEADERBAR 73*cdf0e10cSrcweir { 74*cdf0e10cSrcweir Text [ en-US ] = "\tSigned by\tDigital ID issued by\tDate"; 75*cdf0e10cSrcweir }; 76*cdf0e10cSrcweir String STR_VALID_SIGNATURE 77*cdf0e10cSrcweir { 78*cdf0e10cSrcweir Text [ en-US ] = "Valid signature"; 79*cdf0e10cSrcweir }; 80*cdf0e10cSrcweir String STR_NO_INFO_TO_VERIFY 81*cdf0e10cSrcweir { 82*cdf0e10cSrcweir Text [ en-US ] = "Certificate could not be validated"; 83*cdf0e10cSrcweir }; 84*cdf0e10cSrcweir String STR_INVALID_SIGNATURE 85*cdf0e10cSrcweir { 86*cdf0e10cSrcweir Text [ en-US ] = "The signatures in this document are invalid"; 87*cdf0e10cSrcweir }; 88*cdf0e10cSrcweir 89*cdf0e10cSrcweir FixedImage IMG_STATE_VALID 90*cdf0e10cSrcweir { 91*cdf0e10cSrcweir Pos = MAP_APPFONT( 6, 127 ); 92*cdf0e10cSrcweir Size = MAP_APPFONT( 33, 22 ); 93*cdf0e10cSrcweir Fixed = Image 94*cdf0e10cSrcweir { 95*cdf0e10cSrcweir ImageBitmap = Bitmap { File = "signet_11x16.png"; }; 96*cdf0e10cSrcweir MaskColor = STD_MASKCOLOR; 97*cdf0e10cSrcweir }; 98*cdf0e10cSrcweir }; 99*cdf0e10cSrcweir FixedText FI_STATE_VALID 100*cdf0e10cSrcweir { 101*cdf0e10cSrcweir Pos = MAP_APPFONT( 6, 127 ); 102*cdf0e10cSrcweir Size = MAP_APPFONT( 222, 8 ); 103*cdf0e10cSrcweir Hide = TRUE; 104*cdf0e10cSrcweir Text [ en-US ] = "The signatures in this document are valid"; 105*cdf0e10cSrcweir }; 106*cdf0e10cSrcweir FixedText FI_STATE_OLDSIGNATURE 107*cdf0e10cSrcweir { 108*cdf0e10cSrcweir Pos = MAP_APPFONT( 6, 127 ); 109*cdf0e10cSrcweir Size = MAP_APPFONT( 222, 8 ); 110*cdf0e10cSrcweir Hide = TRUE; 111*cdf0e10cSrcweir Text [ en-US ] = "Not all parts of the document are signed"; 112*cdf0e10cSrcweir }; 113*cdf0e10cSrcweir FixedImage IMG_STATE_BROKEN 114*cdf0e10cSrcweir { 115*cdf0e10cSrcweir Pos = MAP_APPFONT( 6, 127 ); 116*cdf0e10cSrcweir Size = MAP_APPFONT( 33, 22 ); 117*cdf0e10cSrcweir Fixed = Image 118*cdf0e10cSrcweir { 119*cdf0e10cSrcweir ImageBitmap = Bitmap { File = "caution_11x16.png"; }; 120*cdf0e10cSrcweir MaskColor = STD_MASKCOLOR; 121*cdf0e10cSrcweir }; 122*cdf0e10cSrcweir }; 123*cdf0e10cSrcweir FixedText FI_STATE_BROKEN 124*cdf0e10cSrcweir { 125*cdf0e10cSrcweir Pos = MAP_APPFONT( 6, 127 ); 126*cdf0e10cSrcweir Size = MAP_APPFONT( 222, 8 ); 127*cdf0e10cSrcweir Hide = TRUE; 128*cdf0e10cSrcweir Text [ en-US ] = "The signatures in this document are invalid"; 129*cdf0e10cSrcweir }; 130*cdf0e10cSrcweir FixedImage IMG_STATE_NOTVALIDATED 131*cdf0e10cSrcweir { 132*cdf0e10cSrcweir Pos = MAP_APPFONT( 6, 127 ); 133*cdf0e10cSrcweir Size = MAP_APPFONT( 33, 22 ); 134*cdf0e10cSrcweir Fixed = Image 135*cdf0e10cSrcweir { 136*cdf0e10cSrcweir ImageBitmap = Bitmap { File = "notcertificate_16.png"; }; 137*cdf0e10cSrcweir MaskColor = STD_MASKCOLOR; 138*cdf0e10cSrcweir }; 139*cdf0e10cSrcweir }; 140*cdf0e10cSrcweir FixedText FI_STATE_NOTVALIDATED 141*cdf0e10cSrcweir { 142*cdf0e10cSrcweir Pos = MAP_APPFONT( 6, 127 ); 143*cdf0e10cSrcweir Size = MAP_APPFONT( 222, 8 ); 144*cdf0e10cSrcweir Hide = TRUE; 145*cdf0e10cSrcweir }; 146*cdf0e10cSrcweir PushButton BTN_VIEWCERT 147*cdf0e10cSrcweir { 148*cdf0e10cSrcweir HelpID = "xmlsecurity:PushButton:RID_XMLSECDLG_DIGSIG:BTN_VIEWCERT"; 149*cdf0e10cSrcweir Pos = MAP_APPFONT( 6, 142 ); 150*cdf0e10cSrcweir Size = MAP_APPFONT( 70, 14 ); 151*cdf0e10cSrcweir Text [ en-US ] = "View Certificate..."; 152*cdf0e10cSrcweir }; 153*cdf0e10cSrcweir PushButton BTN_ADDCERT 154*cdf0e10cSrcweir { 155*cdf0e10cSrcweir HelpID = "xmlsecurity:PushButton:RID_XMLSECDLG_DIGSIG:BTN_ADDCERT"; 156*cdf0e10cSrcweir Pos = MAP_APPFONT( 82, 142 ); 157*cdf0e10cSrcweir Size = MAP_APPFONT( 70, 14 ); 158*cdf0e10cSrcweir Text [ en-US ] = "Sign Document..."; 159*cdf0e10cSrcweir }; 160*cdf0e10cSrcweir PushButton BTN_REMOVECERT 161*cdf0e10cSrcweir { 162*cdf0e10cSrcweir HelpID = "xmlsecurity:PushButton:RID_XMLSECDLG_DIGSIG:BTN_REMOVECERT"; 163*cdf0e10cSrcweir Pos = MAP_APPFONT( 158, 142 ); 164*cdf0e10cSrcweir Size = MAP_APPFONT( 70, 14 ); 165*cdf0e10cSrcweir Text [ en-US ] = "Remove"; 166*cdf0e10cSrcweir }; 167*cdf0e10cSrcweir FixedLine FL_BOTTOM_SEP 168*cdf0e10cSrcweir { 169*cdf0e10cSrcweir Pos = MAP_APPFONT( 0, 160 ); 170*cdf0e10cSrcweir Size = MAP_APPFONT( 234, 8 ); 171*cdf0e10cSrcweir }; 172*cdf0e10cSrcweir OKButton BTN_OK 173*cdf0e10cSrcweir { 174*cdf0e10cSrcweir DefButton = TRUE; 175*cdf0e10cSrcweir Pos = MAP_APPFONT( 178, 171 ); 176*cdf0e10cSrcweir Size = MAP_APPFONT( 50, 14 ); 177*cdf0e10cSrcweir Text [ en-US ] = "Close"; 178*cdf0e10cSrcweir }; 179*cdf0e10cSrcweir HelpButton BTN_HELP 180*cdf0e10cSrcweir { 181*cdf0e10cSrcweir Pos = MAP_APPFONT( 6, 171 ); 182*cdf0e10cSrcweir Size = MAP_APPFONT( 50, 14 ); 183*cdf0e10cSrcweir }; 184*cdf0e10cSrcweir Image IMG_STATE_VALID_HC 185*cdf0e10cSrcweir { 186*cdf0e10cSrcweir ImageBitmap = Bitmap { File = "signet_11x16_h.png"; }; 187*cdf0e10cSrcweir MaskColor = STD_MASKCOLOR; 188*cdf0e10cSrcweir }; 189*cdf0e10cSrcweir Image IMG_STATE_BROKEN_HC 190*cdf0e10cSrcweir { 191*cdf0e10cSrcweir ImageBitmap = Bitmap { File = "caution_11x16_h.png"; }; 192*cdf0e10cSrcweir MaskColor = STD_MASKCOLOR; 193*cdf0e10cSrcweir }; 194*cdf0e10cSrcweir Image IMG_STATE_NOTVALIDATED_HC 195*cdf0e10cSrcweir { 196*cdf0e10cSrcweir ImageBitmap = Bitmap { File = "notcertificate_16_h.png"; }; 197*cdf0e10cSrcweir MaskColor = STD_MASKCOLOR; 198*cdf0e10cSrcweir }; 199*cdf0e10cSrcweir}; 200*cdf0e10cSrcweir 201*cdf0e10cSrcweir 202*cdf0e10cSrcweirErrorBox RID_XMLSECDLG_OLD_ODF_FORMAT 203*cdf0e10cSrcweir{ 204*cdf0e10cSrcweir Buttons = WB_OK ; 205*cdf0e10cSrcweir DefButton = WB_DEF_OK ; 206*cdf0e10cSrcweir Message [ en-US ] = 207*cdf0e10cSrcweir "This document contains signatures in ODF 1.1 (OpenOffice.org 2.x) format. " 208*cdf0e10cSrcweir "Signing documents in %PRODUCTNAME %PRODUCTVERSION requires ODF 1.2 format version. " 209*cdf0e10cSrcweir "Thus no signatures can be added or removed to this document.\n\n" 210*cdf0e10cSrcweir "Save document in ODF 1.2 format and add all desired signatures again."; 211*cdf0e10cSrcweir}; 212*cdf0e10cSrcweir 213*cdf0e10cSrcweir 214*cdf0e10cSrcweirQueryBox MSG_XMLSECDLG_QUERY_REMOVEDOCSIGNBEFORESIGN 215*cdf0e10cSrcweir{ 216*cdf0e10cSrcweir Buttons = WB_YES_NO ; 217*cdf0e10cSrcweir DefButton = WB_DEF_NO ; 218*cdf0e10cSrcweir Message [ en-US ] = "Adding or removing a macro signature will remove all document signatures.\n" 219*cdf0e10cSrcweir "Do you really want to continue?"; 220*cdf0e10cSrcweir}; 221*cdf0e10cSrcweir 222*cdf0e10cSrcweir 223