xref: /trunk/main/cui/source/dialogs/passwdomdlg.src (revision cdf0e10c)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27
28
29#include <cuires.hrc>
30#include "passwdomdlg.hrc"
31#include "helpid.hrc"
32
33
34ModalDialog RID_DLG_PASSWORD_TO_OPEN_MODIFY
35{
36    Size = MAP_APPFONT( 171, 150 );
37    Text [ en-US ] = "Set Password";
38    HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY;
39    Border = TRUE ;
40    Moveable = TRUE ;
41    OutputSize = TRUE ;
42    SVLook = TRUE ;
43
44    FixedLine FL_FILE_ENCRYPTION
45    {
46        Pos = MAP_APPFONT( 3, 3 );
47        Size = MAP_APPFONT( 165, 8 );
48        Text [ en-US ] = "File encryption password";
49    };
50
51    FixedText FT_PASSWD_TO_OPEN
52    {
53        Pos = MAP_APPFONT( 6, 17 );
54        Size = MAP_APPFONT( 159, 8 );
55        Text [ en-US ] = "~Enter password to open";
56        WordBreak = TRUE;
57    };
58
59    Edit ED_PASSWD_TO_OPEN
60    {
61        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_PASSWORD_TO_OPEN;
62        Pos = MAP_APPFONT( 6, 28 );
63        Size = MAP_APPFONT( 159, 12 );
64        Border = TRUE ;
65        PassWord = TRUE ;
66    };
67
68    FixedText FT_REENTER_PASSWD_TO_OPEN
69    {
70        Pos = MAP_APPFONT( 6, 45 );
71        Size = MAP_APPFONT( 159, 8 );
72        Text [ en-US ] = "Confirm password";
73        WordBreak = TRUE;
74    };
75
76    Edit ED_REENTER_PASSWD_TO_OPEN
77    {
78        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_CONFIRM_PASSWORD_TO_OPEN;
79        Pos = MAP_APPFONT( 6, 56 );
80        Size = MAP_APPFONT( 159, 12 );
81        Border = TRUE ;
82        PassWord = TRUE ;
83    };
84/*
85    FixedImage FI_PASSWD_TO_OPEN_MATCH
86    {
87        Pos = MAP_APPFONT ( 150, 42 ) ;
88        Size = MAP_APPFONT ( 12 , 12 ) ;
89    };
90*/
91    FixedText FT_PASSWD_NOTE
92    {
93        Pos = MAP_APPFONT( 6, 80 );
94        Size = MAP_APPFONT( 159, 4*8 );     // some extra space for translation in other languages
95        Text [ en-US ] = "Note: After a password has been set, the document will only open with "\
96                "the password. Should you lose the password, there will be no way to "\
97                "recover the document. Please also note that this password is case-sensitive.";
98        WordBreak = TRUE;
99    };
100
101    FixedLine FL_BUTTONS
102    {
103        Pos = MAP_APPFONT( 0, 117 );
104        Size = MAP_APPFONT( 171, 8 );
105    };
106
107    MoreButton BTN_MORE_FEWER_OPTIONS
108    {
109        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_MORE;
110        Pos = MAP_APPFONT( 6 , 130 ) ;
111        Size = MAP_APPFONT( 50 , 14 ) ;
112        Delta = 92 ;
113        MapUnit = MAP_APPFONT ;
114        State = FALSE ;
115    };
116
117    OKButton BTN_OK
118    {
119        Pos = MAP_APPFONT( 62, 130 );
120        Size = MAP_APPFONT( 50, 14 );
121        DefButton = TRUE ;
122    };
123
124    CancelButton BTN_CANCEL
125    {
126        Pos = MAP_APPFONT( 115, 130 );
127        Size = MAP_APPFONT( 50, 14 );
128    };
129
130    FixedLine FL_FILE_SHARING_OPTIONS
131    {
132        Pos = MAP_APPFONT( 3, 154 );
133        Size = MAP_APPFONT( 165, 8 );
134        Text [ en-US ] = "File sharing password";
135    };
136
137    CheckBox CB_OPEN_READONLY
138    {
139        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_FILE_READONLY;
140        Pos = MAP_APPFONT( 6, 170 );
141        Size = MAP_APPFONT( 159, 8 );
142
143        Text [ en-US ] = "Open file read-only";
144    };
145
146    FixedText FT_PASSWD_TO_MODIFY
147    {
148        Pos = MAP_APPFONT( 6, 186 );
149        Size = MAP_APPFONT( 159, 8 );
150        Text [ en-US ] = "Enter password to allow editing";
151        WordBreak = TRUE;
152    };
153
154    Edit ED_PASSWD_TO_MODIFY
155    {
156        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_PASSWORD_TO_MODIFY;
157        Pos = MAP_APPFONT( 6, 196 );
158        Size = MAP_APPFONT( 159, 12 );
159        Border = TRUE ;
160        PassWord = TRUE ;
161    };
162
163    FixedText FT_REENTER_PASSWD_TO_MODIFY
164    {
165        Pos = MAP_APPFONT( 6, 214 );
166        Size = MAP_APPFONT( 159, 8 );
167        Text [ en-US ] = "Confirm password";
168        WordBreak = TRUE;
169    };
170
171    Edit ED_REENTER_PASSWD_TO_MODIFY
172    {
173        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_CONFIRM_PASSWORD_TO_MODIFY;
174        Pos = MAP_APPFONT( 6, 224 );
175        Size = MAP_APPFONT( 159, 12 );
176        Border = TRUE ;
177        PassWord = TRUE ;
178    };
179/*
180    FixedImage FI_PASSWD_TO_MODIFY_MATCH
181    {
182        Pos = MAP_APPFONT ( 150, 224 ) ;
183        Size = MAP_APPFONT ( 12 , 12 ) ;
184    };
185*/
186
187    String STR_PASSWD_MUST_BE_CONFIRMED
188    {
189        Text [ en-US ] = "Password must be confirmed" ;
190    };
191
192    String STR_MORE_OPTIONS
193    {
194        Text [ en-US ] = "More ~Options" ;
195    };
196
197    String STR_FEWER_OPTIONS
198    {
199        Text [ en-US ] = "Fewer ~Options" ;
200    };
201
202    String STR_ONE_PASSWORD_MISMATCH
203    {
204        Text [ en-US ] = "The confirmation password did not match the password. Set the password again by entering the same password in both boxes." ;
205    };
206
207    String STR_TWO_PASSWORDS_MISMATCH
208    {
209        Text [ en-US ] = "The confirmation passwords did not match the original passwords. Set the passwords again." ;
210    };
211
212    String STR_INVALID_STATE_FOR_OK_BUTTON
213    {
214        Text [ en-US ] = "Please enter a password to open or to modify, or check the open read-only option to continue." ;
215    };
216/*
217    Image IMG_PASSWD_MATCH
218    {
219        ImageBitmap = Bitmap { File = "apply.png"; };
220    };
221
222    Image IMG_PASSWD_MATCH_HC
223    {
224        ImageBitmap = Bitmap { File = "apply_h.png"; };
225    };
226*/
227};
228
229