13cbdc576SAndrew Rist/**************************************************************
2f7d959ddSMatthias 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
10f7d959ddSMatthias Seidel *
113cbdc576SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12f7d959ddSMatthias 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.
19f7d959ddSMatthias Seidel *
203cbdc576SAndrew Rist *************************************************************/
213cbdc576SAndrew Rist
223cbdc576SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#include "dialogs.hrc"
25cdf0e10cSrcweir#include "helpids.hrc"
26cdf0e10cSrcweir#include "digitalsignaturesdialog.hrc"
27cdf0e10cSrcweir
28cdf0e10cSrcweirModalDialog RID_XMLSECDLG_DIGSIG
29cdf0e10cSrcweir{
30f7d959ddSMatthias Seidel	HelpId = HID_XMLSEC_DLG_DIGSIG ;
31*a5a898d6Smseidel	Size = MAP_APPFONT ( 249, 191 ) ;
32f7d959ddSMatthias Seidel	OutputSize = TRUE ;
33f7d959ddSMatthias Seidel	Closeable = TRUE ;
34f7d959ddSMatthias Seidel	Moveable = TRUE ;
35f7d959ddSMatthias Seidel	SVLook = TRUE ;
36cdf0e10cSrcweir
37f7d959ddSMatthias Seidel	Text [ en-US ] = "Digital Signatures" ;
38cdf0e10cSrcweir
39cdf0e10cSrcweir	FixedText FT_HINT_DOC
40cdf0e10cSrcweir	{
41f7d959ddSMatthias Seidel		Pos = MAP_APPFONT ( 6, 3 ) ;
42f7d959ddSMatthias Seidel		Size = MAP_APPFONT ( 222, 8 ) ;
43f7d959ddSMatthias Seidel		Hide = TRUE ;
44f7d959ddSMatthias Seidel		Text [ en-US ] = "The following have signed the document content:" ;
45cdf0e10cSrcweir	};
46cdf0e10cSrcweir	FixedText FT_HINT_BASIC
47cdf0e10cSrcweir	{
48f7d959ddSMatthias Seidel		Pos = MAP_APPFONT ( 6, 3 ) ;
49f7d959ddSMatthias Seidel		Size = MAP_APPFONT ( 222, 8 ) ;
50f7d959ddSMatthias Seidel		Hide = TRUE ;
51f7d959ddSMatthias Seidel		Text [ en-US ] = "The following have signed the document macro:" ;
52cdf0e10cSrcweir	};
53cdf0e10cSrcweir	FixedText FT_HINT_PACK
54cdf0e10cSrcweir	{
55f7d959ddSMatthias Seidel		Pos = MAP_APPFONT ( 6, 3 ) ;
56f7d959ddSMatthias Seidel		Size = MAP_APPFONT ( 222, 8 ) ;
57f7d959ddSMatthias Seidel		Hide = TRUE ;
58f7d959ddSMatthias Seidel		Text [ en-US ] = "The following have signed this package:" ;
59cdf0e10cSrcweir	};
60cdf0e10cSrcweir	Control LB_SIGNATURES
61cdf0e10cSrcweir	{
62f7d959ddSMatthias Seidel		HelpId = HID_XMLSEC_CTRL_SIGNATURESDLG ;
63f7d959ddSMatthias Seidel		Pos = MAP_APPFONT ( 6, 14 ) ;
64*a5a898d6Smseidel		Size = MAP_APPFONT ( 237, 109 ) ;
65f7d959ddSMatthias Seidel		SVLook = TRUE ;
66f7d959ddSMatthias Seidel		Border = TRUE ;
67cdf0e10cSrcweir	};
68cdf0e10cSrcweir	String STR_HEADERBAR
69cdf0e10cSrcweir	{
70f7d959ddSMatthias Seidel		Text [ en-US ] = "\tSigned by\tDigital ID issued by\tDate" ;
71cdf0e10cSrcweir	};
72cdf0e10cSrcweir	String STR_VALID_SIGNATURE
73f7d959ddSMatthias Seidel	{
74f7d959ddSMatthias Seidel		Text [ en-US ] = "Valid signature" ;
75f7d959ddSMatthias Seidel	};
76cdf0e10cSrcweir	String STR_NO_INFO_TO_VERIFY
77f7d959ddSMatthias Seidel	{
78f7d959ddSMatthias Seidel		Text [ en-US ] = "Certificate could not be validated" ;
79f7d959ddSMatthias Seidel	};
80cdf0e10cSrcweir	String STR_INVALID_SIGNATURE
81f7d959ddSMatthias Seidel	{
82f7d959ddSMatthias Seidel		Text [ en-US ] = "The signatures in this document are invalid" ;
83f7d959ddSMatthias Seidel	};
84f7d959ddSMatthias Seidel
85cdf0e10cSrcweir	FixedImage IMG_STATE_VALID
86cdf0e10cSrcweir	{
87f7d959ddSMatthias Seidel		Pos = MAP_APPFONT ( 6, 127 ) ;
88f7d959ddSMatthias Seidel		Size = MAP_APPFONT ( 33, 22 ) ;
89cdf0e10cSrcweir		Fixed = Image
90cdf0e10cSrcweir		{
91f7d959ddSMatthias Seidel			ImageBitmap = Bitmap { File = "signet_11x16.png"; } ;
92cdf0e10cSrcweir		};
93cdf0e10cSrcweir	};
94cdf0e10cSrcweir	FixedText FI_STATE_VALID
95cdf0e10cSrcweir	{
96f7d959ddSMatthias Seidel		Pos = MAP_APPFONT ( 6, 127 ) ;
97f7d959ddSMatthias Seidel		Size = MAP_APPFONT ( 222, 8 ) ;
98f7d959ddSMatthias Seidel		Hide = TRUE ;
99f7d959ddSMatthias Seidel		Text [ en-US ] = "The signatures in this document are valid" ;
100cdf0e10cSrcweir	};
101cdf0e10cSrcweir	FixedText FI_STATE_OLDSIGNATURE
102f7d959ddSMatthias Seidel	{
103f7d959ddSMatthias Seidel		Pos = MAP_APPFONT ( 6, 127 ) ;
104f7d959ddSMatthias Seidel		Size = MAP_APPFONT ( 222, 8 ) ;
105f7d959ddSMatthias Seidel		Hide = TRUE ;
106f7d959ddSMatthias Seidel		Text [ en-US ] = "Not all parts of the document are signed" ;
107f7d959ddSMatthias Seidel	};
108f7d959ddSMatthias Seidel	FixedImage IMG_STATE_BROKEN
109f7d959ddSMatthias Seidel	{
110f7d959ddSMatthias Seidel		Pos = MAP_APPFONT ( 6, 127 ) ;
111f7d959ddSMatthias Seidel		Size = MAP_APPFONT ( 33, 22 ) ;
112f7d959ddSMatthias Seidel		Fixed = Image
113f7d959ddSMatthias Seidel		{
114f7d959ddSMatthias Seidel			ImageBitmap = Bitmap { File = "caution_11x16.png"; } ;
115f7d959ddSMatthias Seidel		};
116f7d959ddSMatthias Seidel	};
117f7d959ddSMatthias Seidel	FixedText FI_STATE_BROKEN
118f7d959ddSMatthias Seidel	{
119f7d959ddSMatthias Seidel		Pos = MAP_APPFONT ( 6, 127 ) ;
120f7d959ddSMatthias Seidel		Size = MAP_APPFONT ( 222, 8 ) ;
121f7d959ddSMatthias Seidel		Hide = TRUE ;
122f7d959ddSMatthias Seidel		Text [ en-US ] = "The signatures in this document are invalid" ;
123f7d959ddSMatthias Seidel	};
124f7d959ddSMatthias Seidel	FixedImage IMG_STATE_NOTVALIDATED
125f7d959ddSMatthias Seidel	{
126f7d959ddSMatthias Seidel		Pos = MAP_APPFONT ( 6, 127 ) ;
127f7d959ddSMatthias Seidel		Size = MAP_APPFONT ( 33, 22 ) ;
128f7d959ddSMatthias Seidel		Fixed = Image
129f7d959ddSMatthias Seidel		{
130f7d959ddSMatthias Seidel			ImageBitmap = Bitmap { File = "notcertificate_16.png"; } ;
131f7d959ddSMatthias Seidel		};
132f7d959ddSMatthias Seidel	};
133f7d959ddSMatthias Seidel	FixedText FI_STATE_NOTVALIDATED
134f7d959ddSMatthias Seidel	{
135f7d959ddSMatthias Seidel		Pos = MAP_APPFONT ( 6, 127 ) ;
136f7d959ddSMatthias Seidel		Size = MAP_APPFONT ( 222, 8 ) ;
137f7d959ddSMatthias Seidel		Hide = TRUE ;
138f7d959ddSMatthias Seidel	};
139f7d959ddSMatthias Seidel	PushButton BTN_VIEWCERT
140f7d959ddSMatthias Seidel	{
141f7d959ddSMatthias Seidel		HelpID = "xmlsecurity:PushButton:RID_XMLSECDLG_DIGSIG:BTN_VIEWCERT" ;
142f7d959ddSMatthias Seidel		Pos = MAP_APPFONT ( 6, 142 ) ;
143*a5a898d6Smseidel		Size = MAP_APPFONT ( 75, 14 ) ;
144f7d959ddSMatthias Seidel		Text [ en-US ] = "View Certificate..." ;
145cdf0e10cSrcweir	};
146cdf0e10cSrcweir	PushButton BTN_ADDCERT
147cdf0e10cSrcweir	{
148f7d959ddSMatthias Seidel		HelpID = "xmlsecurity:PushButton:RID_XMLSECDLG_DIGSIG:BTN_ADDCERT" ;
149*a5a898d6Smseidel		Pos = MAP_APPFONT ( 87, 142 ) ;
150*a5a898d6Smseidel		Size = MAP_APPFONT ( 75, 14 ) ;
151f7d959ddSMatthias Seidel		Text [ en-US ] = "Sign Document..." ;
152cdf0e10cSrcweir	};
153cdf0e10cSrcweir	PushButton BTN_REMOVECERT
154cdf0e10cSrcweir	{
155f7d959ddSMatthias Seidel		HelpID = "xmlsecurity:PushButton:RID_XMLSECDLG_DIGSIG:BTN_REMOVECERT" ;
156*a5a898d6Smseidel		Pos = MAP_APPFONT ( 168, 142 ) ;
157*a5a898d6Smseidel		Size = MAP_APPFONT ( 75, 14 ) ;
158f7d959ddSMatthias Seidel		Text [ en-US ] = "Remove" ;
159cdf0e10cSrcweir	};
160f7d959ddSMatthias Seidel	FixedLine FL_BOTTOM_SEP
161cdf0e10cSrcweir	{
162f7d959ddSMatthias Seidel		Pos = MAP_APPFONT ( 0, 160 ) ;
163*a5a898d6Smseidel		Size = MAP_APPFONT ( 249, 8 ) ;
164cdf0e10cSrcweir	};
165cdf0e10cSrcweir	OKButton BTN_OK
166cdf0e10cSrcweir	{
167cdf0e10cSrcweir		DefButton = TRUE;
168*a5a898d6Smseidel		Pos = MAP_APPFONT ( 193, 171 ) ;
169f7d959ddSMatthias Seidel		Size = MAP_APPFONT ( 50, 14 ) ;
170f7d959ddSMatthias Seidel		Text [ en-US ] = "Close" ;
171cdf0e10cSrcweir	};
172cdf0e10cSrcweir	HelpButton BTN_HELP
173cdf0e10cSrcweir	{
174f7d959ddSMatthias Seidel		Pos = MAP_APPFONT ( 6, 171 ) ;
175f7d959ddSMatthias Seidel		Size = MAP_APPFONT ( 50, 14 ) ;
176f7d959ddSMatthias Seidel	};
177f7d959ddSMatthias Seidel	Image IMG_STATE_VALID_HC
178f7d959ddSMatthias Seidel	{
179f7d959ddSMatthias Seidel		ImageBitmap = Bitmap { File = "signet_11x16_h.png"; } ;
180f7d959ddSMatthias Seidel	};
181f7d959ddSMatthias Seidel	Image IMG_STATE_BROKEN_HC
182f7d959ddSMatthias Seidel	{
183f7d959ddSMatthias Seidel		ImageBitmap = Bitmap { File = "caution_11x16_h.png"; } ;
184f7d959ddSMatthias Seidel	};
185f7d959ddSMatthias Seidel	Image IMG_STATE_NOTVALIDATED_HC
186f7d959ddSMatthias Seidel	{
187f7d959ddSMatthias Seidel		ImageBitmap = Bitmap { File = "notcertificate_16_h.png"; } ;
188f7d959ddSMatthias Seidel	};
189cdf0e10cSrcweir};
190cdf0e10cSrcweir
191cdf0e10cSrcweir
192cdf0e10cSrcweirErrorBox RID_XMLSECDLG_OLD_ODF_FORMAT
193cdf0e10cSrcweir{
194f7d959ddSMatthias Seidel	Buttons = WB_OK ;
195f7d959ddSMatthias Seidel	DefButton = WB_DEF_OK ;
196*a5a898d6Smseidel	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{
202f7d959ddSMatthias Seidel	Buttons = WB_YES_NO ;
203f7d959ddSMatthias Seidel	DefButton = WB_DEF_NO ;
204f7d959ddSMatthias Seidel	Message [ en-US ] = "Adding or removing a macro signature will remove all document signatures.\nDo you really want to continue?" ;
205cdf0e10cSrcweir};
206cdf0e10cSrcweir
207f7d959ddSMatthias Seidel// ********************************************************************** EOF
208*a5a898d6Smseidel
209