13cbdc576SAndrew Rist/**************************************************************
23311a446SMatthias Seidel *
33cbdc576SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
43cbdc576SAndrew Rist * or more contributor license agreements.  See the NOTICE file
53cbdc576SAndrew Rist * distributed with this work for additional information
63cbdc576SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
73cbdc576SAndrew Rist * to you under the Apache License, Version 2.0 (the
83cbdc576SAndrew Rist * "License"); you may not use this file except in compliance
93cbdc576SAndrew Rist * with the License.  You may obtain a copy of the License at
103311a446SMatthias Seidel *
113cbdc576SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
123311a446SMatthias Seidel *
133cbdc576SAndrew Rist * Unless required by applicable law or agreed to in writing,
143cbdc576SAndrew Rist * software distributed under the License is distributed on an
153cbdc576SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
163cbdc576SAndrew Rist * KIND, either express or implied.  See the License for the
173cbdc576SAndrew Rist * specific language governing permissions and limitations
183cbdc576SAndrew Rist * under the License.
193311a446SMatthias Seidel *
203cbdc576SAndrew Rist *************************************************************/
213cbdc576SAndrew Rist
22*02f7a3b7Smseidel
23cdf0e10cSrcweir
24cdf0e10cSrcweir#include "dialogs.hrc"
25cdf0e10cSrcweir#include "helpids.hrc"
26cdf0e10cSrcweir#include "digitalsignaturesdialog.hrc"
27cdf0e10cSrcweir
28cdf0e10cSrcweirModalDialog RID_XMLSECDLG_DIGSIG
29cdf0e10cSrcweir{
303311a446SMatthias Seidel	HelpId = HID_XMLSEC_DLG_DIGSIG ;
31f5dd352cSMatthias Seidel	Size = MAP_APPFONT ( 249, 191 ) ;
323311a446SMatthias Seidel	OutputSize = TRUE ;
333311a446SMatthias Seidel	Closeable = TRUE ;
343311a446SMatthias Seidel	Moveable = TRUE ;
353311a446SMatthias Seidel	SVLook = TRUE ;
36cdf0e10cSrcweir
373311a446SMatthias Seidel	Text [ en-US ] = "Digital Signatures" ;
38cdf0e10cSrcweir
39cdf0e10cSrcweir	FixedText FT_HINT_DOC
40cdf0e10cSrcweir	{
413311a446SMatthias Seidel		Pos = MAP_APPFONT ( 6, 3 ) ;
423311a446SMatthias Seidel		Size = MAP_APPFONT ( 222, 8 ) ;
433311a446SMatthias Seidel		Hide = TRUE ;
443311a446SMatthias Seidel		Text [ en-US ] = "The following have signed the document content:" ;
45cdf0e10cSrcweir	};
46cdf0e10cSrcweir	FixedText FT_HINT_BASIC
47cdf0e10cSrcweir	{
483311a446SMatthias Seidel		Pos = MAP_APPFONT ( 6, 3 ) ;
493311a446SMatthias Seidel		Size = MAP_APPFONT ( 222, 8 ) ;
503311a446SMatthias Seidel		Hide = TRUE ;
513311a446SMatthias Seidel		Text [ en-US ] = "The following have signed the document macro:" ;
52cdf0e10cSrcweir	};
53cdf0e10cSrcweir	FixedText FT_HINT_PACK
54cdf0e10cSrcweir	{
553311a446SMatthias Seidel		Pos = MAP_APPFONT ( 6, 3 ) ;
563311a446SMatthias Seidel		Size = MAP_APPFONT ( 222, 8 ) ;
573311a446SMatthias Seidel		Hide = TRUE ;
583311a446SMatthias Seidel		Text [ en-US ] = "The following have signed this package:" ;
59cdf0e10cSrcweir	};
60cdf0e10cSrcweir	Control LB_SIGNATURES
61cdf0e10cSrcweir	{
623311a446SMatthias Seidel		HelpId = HID_XMLSEC_CTRL_SIGNATURESDLG ;
633311a446SMatthias Seidel		Pos = MAP_APPFONT ( 6, 14 ) ;
64f5dd352cSMatthias Seidel		Size = MAP_APPFONT ( 237, 109 ) ;
653311a446SMatthias Seidel		SVLook = TRUE ;
663311a446SMatthias Seidel		Border = TRUE ;
67cdf0e10cSrcweir	};
68cdf0e10cSrcweir	String STR_HEADERBAR
69cdf0e10cSrcweir	{
703311a446SMatthias Seidel		Text [ en-US ] = "\tSigned by\tDigital ID issued by\tDate" ;
71cdf0e10cSrcweir	};
72cdf0e10cSrcweir	String STR_VALID_SIGNATURE
733311a446SMatthias Seidel	{
743311a446SMatthias Seidel		Text [ en-US ] = "Valid signature" ;
753311a446SMatthias Seidel	};
76cdf0e10cSrcweir	String STR_NO_INFO_TO_VERIFY
773311a446SMatthias Seidel	{
783311a446SMatthias Seidel		Text [ en-US ] = "Certificate could not be validated" ;
793311a446SMatthias Seidel	};
80cdf0e10cSrcweir	String STR_INVALID_SIGNATURE
813311a446SMatthias Seidel	{
823311a446SMatthias Seidel		Text [ en-US ] = "The signatures in this document are invalid" ;
833311a446SMatthias Seidel	};
843311a446SMatthias Seidel
85cdf0e10cSrcweir	FixedImage IMG_STATE_VALID
86cdf0e10cSrcweir	{
873311a446SMatthias Seidel		Pos = MAP_APPFONT ( 6, 127 ) ;
883311a446SMatthias Seidel		Size = MAP_APPFONT ( 33, 22 ) ;
89cdf0e10cSrcweir		Fixed = Image
90cdf0e10cSrcweir		{
913311a446SMatthias Seidel			ImageBitmap = Bitmap { File = "signet_11x16.png"; } ;
92cdf0e10cSrcweir		};
93cdf0e10cSrcweir	};
94cdf0e10cSrcweir	FixedText FI_STATE_VALID
95cdf0e10cSrcweir	{
963311a446SMatthias Seidel		Pos = MAP_APPFONT ( 6, 127 ) ;
973311a446SMatthias Seidel		Size = MAP_APPFONT ( 222, 8 ) ;
983311a446SMatthias Seidel		Hide = TRUE ;
993311a446SMatthias Seidel		Text [ en-US ] = "The signatures in this document are valid" ;
100cdf0e10cSrcweir	};
101cdf0e10cSrcweir	FixedText FI_STATE_OLDSIGNATURE
1023311a446SMatthias Seidel	{
1033311a446SMatthias Seidel		Pos = MAP_APPFONT ( 6, 127 ) ;
1043311a446SMatthias Seidel		Size = MAP_APPFONT ( 222, 8 ) ;
1053311a446SMatthias Seidel		Hide = TRUE ;
1063311a446SMatthias Seidel		Text [ en-US ] = "Not all parts of the document are signed" ;
1073311a446SMatthias Seidel	};
1083311a446SMatthias Seidel	FixedImage IMG_STATE_BROKEN
1093311a446SMatthias Seidel	{
1103311a446SMatthias Seidel		Pos = MAP_APPFONT ( 6, 127 ) ;
1113311a446SMatthias Seidel		Size = MAP_APPFONT ( 33, 22 ) ;
1123311a446SMatthias Seidel		Fixed = Image
1133311a446SMatthias Seidel		{
1143311a446SMatthias Seidel			ImageBitmap = Bitmap { File = "caution_11x16.png"; } ;
1153311a446SMatthias Seidel		};
1163311a446SMatthias Seidel	};
1173311a446SMatthias Seidel	FixedText FI_STATE_BROKEN
1183311a446SMatthias Seidel	{
1193311a446SMatthias Seidel		Pos = MAP_APPFONT ( 6, 127 ) ;
1203311a446SMatthias Seidel		Size = MAP_APPFONT ( 222, 8 ) ;
1213311a446SMatthias Seidel		Hide = TRUE ;
1223311a446SMatthias Seidel		Text [ en-US ] = "The signatures in this document are invalid" ;
1233311a446SMatthias Seidel	};
1243311a446SMatthias Seidel	FixedImage IMG_STATE_NOTVALIDATED
1253311a446SMatthias Seidel	{
1263311a446SMatthias Seidel		Pos = MAP_APPFONT ( 6, 127 ) ;
1273311a446SMatthias Seidel		Size = MAP_APPFONT ( 33, 22 ) ;
1283311a446SMatthias Seidel		Fixed = Image
1293311a446SMatthias Seidel		{
130c3d049fdSMatthias Seidel			ImageBitmap = Bitmap { File = "notcertificate_11x16.png"; } ;
1313311a446SMatthias Seidel		};
1323311a446SMatthias Seidel	};
1333311a446SMatthias Seidel	FixedText FI_STATE_NOTVALIDATED
1343311a446SMatthias Seidel	{
1353311a446SMatthias Seidel		Pos = MAP_APPFONT ( 6, 127 ) ;
1363311a446SMatthias Seidel		Size = MAP_APPFONT ( 222, 8 ) ;
1373311a446SMatthias Seidel		Hide = TRUE ;
1383311a446SMatthias Seidel	};
1393311a446SMatthias Seidel	PushButton BTN_VIEWCERT
1403311a446SMatthias Seidel	{
1413311a446SMatthias Seidel		HelpID = "xmlsecurity:PushButton:RID_XMLSECDLG_DIGSIG:BTN_VIEWCERT" ;
1423311a446SMatthias Seidel		Pos = MAP_APPFONT ( 6, 142 ) ;
143f5dd352cSMatthias Seidel		Size = MAP_APPFONT ( 75, 14 ) ;
1443311a446SMatthias Seidel		Text [ en-US ] = "View Certificate..." ;
145cdf0e10cSrcweir	};
146cdf0e10cSrcweir	PushButton BTN_ADDCERT
147cdf0e10cSrcweir	{
1483311a446SMatthias Seidel		HelpID = "xmlsecurity:PushButton:RID_XMLSECDLG_DIGSIG:BTN_ADDCERT" ;
149f5dd352cSMatthias Seidel		Pos = MAP_APPFONT ( 87, 142 ) ;
150f5dd352cSMatthias Seidel		Size = MAP_APPFONT ( 75, 14 ) ;
1513311a446SMatthias Seidel		Text [ en-US ] = "Sign Document..." ;
152cdf0e10cSrcweir	};
153cdf0e10cSrcweir	PushButton BTN_REMOVECERT
154cdf0e10cSrcweir	{
1553311a446SMatthias Seidel		HelpID = "xmlsecurity:PushButton:RID_XMLSECDLG_DIGSIG:BTN_REMOVECERT" ;
156f5dd352cSMatthias Seidel		Pos = MAP_APPFONT ( 168, 142 ) ;
157f5dd352cSMatthias Seidel		Size = MAP_APPFONT ( 75, 14 ) ;
1583311a446SMatthias Seidel		Text [ en-US ] = "Remove" ;
159cdf0e10cSrcweir	};
1603311a446SMatthias Seidel	FixedLine FL_BOTTOM_SEP
161cdf0e10cSrcweir	{
1623311a446SMatthias Seidel		Pos = MAP_APPFONT ( 0, 160 ) ;
163f5dd352cSMatthias Seidel		Size = MAP_APPFONT ( 249, 8 ) ;
164cdf0e10cSrcweir	};
165cdf0e10cSrcweir	OKButton BTN_OK
166cdf0e10cSrcweir	{
167cdf0e10cSrcweir		DefButton = TRUE;
168f5dd352cSMatthias Seidel		Pos = MAP_APPFONT ( 193, 171 ) ;
1693311a446SMatthias Seidel		Size = MAP_APPFONT ( 50, 14 ) ;
1703311a446SMatthias Seidel		Text [ en-US ] = "Close" ;
171cdf0e10cSrcweir	};
172cdf0e10cSrcweir	HelpButton BTN_HELP
173cdf0e10cSrcweir	{
1743311a446SMatthias Seidel		Pos = MAP_APPFONT ( 6, 171 ) ;
1753311a446SMatthias Seidel		Size = MAP_APPFONT ( 50, 14 ) ;
1763311a446SMatthias Seidel	};
1773311a446SMatthias Seidel	Image IMG_STATE_VALID_HC
1783311a446SMatthias Seidel	{
1793311a446SMatthias Seidel		ImageBitmap = Bitmap { File = "signet_11x16_h.png"; } ;
1803311a446SMatthias Seidel	};
1813311a446SMatthias Seidel	Image IMG_STATE_BROKEN_HC
1823311a446SMatthias Seidel	{
1833311a446SMatthias Seidel		ImageBitmap = Bitmap { File = "caution_11x16_h.png"; } ;
1843311a446SMatthias Seidel	};
1853311a446SMatthias Seidel	Image IMG_STATE_NOTVALIDATED_HC
1863311a446SMatthias Seidel	{
187c3d049fdSMatthias Seidel		ImageBitmap = Bitmap { File = "notcertificate_11x16_h.png"; } ;
1883311a446SMatthias Seidel	};
189cdf0e10cSrcweir};
190cdf0e10cSrcweir
191cdf0e10cSrcweir
192cdf0e10cSrcweirErrorBox RID_XMLSECDLG_OLD_ODF_FORMAT
193cdf0e10cSrcweir{
1943311a446SMatthias Seidel	Buttons = WB_OK ;
1953311a446SMatthias Seidel	DefButton = WB_DEF_OK ;
196f5dd352cSMatthias Seidel	Message [ en-US ] = "This document contains signatures in ODF 1.1 format. Signing documents in %PRODUCTNAME %PRODUCTVERSION requires ODF 1.2 format version. Thus no signatures can be added or removed to this document.\n\nSave document in ODF 1.2 format and add all desired signatures again." ;
197cdf0e10cSrcweir};
198cdf0e10cSrcweir
199cdf0e10cSrcweir
200cdf0e10cSrcweirQueryBox MSG_XMLSECDLG_QUERY_REMOVEDOCSIGNBEFORESIGN
201cdf0e10cSrcweir{
2023311a446SMatthias Seidel	Buttons = WB_YES_NO ;
2033311a446SMatthias Seidel	DefButton = WB_DEF_NO ;
2043311a446SMatthias Seidel	Message [ en-US ] = "Adding or removing a macro signature will remove all document signatures.\nDo you really want to continue?" ;
205cdf0e10cSrcweir};
206cdf0e10cSrcweir
2073311a446SMatthias Seidel// ********************************************************************** EOF
208