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