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