xref: /aoo42x/main/cui/source/dialogs/passwdomdlg.src (revision 0e2af6af)
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
25#include <cuires.hrc>
26#include "passwdomdlg.hrc"
27#include "helpid.hrc"
28
29
30ModalDialog RID_DLG_PASSWORD_TO_OPEN_MODIFY
31{
32    Size = MAP_APPFONT( 171, 150 );
33    Text [ en-US ] = "Set Password";
34    HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY;
35    Border = TRUE ;
36    Moveable = TRUE ;
37    OutputSize = TRUE ;
38    SVLook = TRUE ;
39
40    FixedLine FL_FILE_ENCRYPTION
41    {
42        Pos = MAP_APPFONT( 3, 3 );
43        Size = MAP_APPFONT( 165, 8 );
44        Text [ en-US ] = "File encryption password";
45    };
46
47    FixedText FT_PASSWD_TO_OPEN
48    {
49        Pos = MAP_APPFONT( 6, 17 );
50        Size = MAP_APPFONT( 159, 8 );
51        Text [ en-US ] = "~Enter password to open";
52        WordBreak = TRUE;
53    };
54
55    Edit ED_PASSWD_TO_OPEN
56    {
57        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_PASSWORD_TO_OPEN;
58        Pos = MAP_APPFONT( 6, 28 );
59        Size = MAP_APPFONT( 159, 12 );
60        Border = TRUE ;
61        PassWord = TRUE ;
62    };
63
64    FixedText FT_REENTER_PASSWD_TO_OPEN
65    {
66        Pos = MAP_APPFONT( 6, 45 );
67        Size = MAP_APPFONT( 159, 8 );
68        Text [ en-US ] = "Confirm password";
69        WordBreak = TRUE;
70    };
71
72    Edit ED_REENTER_PASSWD_TO_OPEN
73    {
74        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_CONFIRM_PASSWORD_TO_OPEN;
75        Pos = MAP_APPFONT( 6, 56 );
76        Size = MAP_APPFONT( 159, 12 );
77        Border = TRUE ;
78        PassWord = TRUE ;
79    };
80/*
81    FixedImage FI_PASSWD_TO_OPEN_MATCH
82    {
83        Pos = MAP_APPFONT ( 150, 42 ) ;
84        Size = MAP_APPFONT ( 12 , 12 ) ;
85    };
86*/
87    FixedText FT_PASSWD_NOTE
88    {
89        Pos = MAP_APPFONT( 6, 80 );
90        Size = MAP_APPFONT( 159, 4*8 );     // some extra space for translation in other languages
91        Text [ en-US ] = "Note: After a password has been set, the document will only open with "\
92                "the password. Should you lose the password, there will be no way to "\
93                "recover the document. Please also note that this password is case-sensitive.";
94        WordBreak = TRUE;
95    };
96
97    FixedLine FL_BUTTONS
98    {
99        Pos = MAP_APPFONT( 0, 117 );
100        Size = MAP_APPFONT( 171, 8 );
101    };
102
103    MoreButton BTN_MORE_FEWER_OPTIONS
104    {
105        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_MORE;
106        Pos = MAP_APPFONT( 6 , 130 ) ;
107        Size = MAP_APPFONT( 50 , 14 ) ;
108        Delta = 92 ;
109        MapUnit = MAP_APPFONT ;
110        State = FALSE ;
111    };
112
113    OKButton BTN_OK
114    {
115        Pos = MAP_APPFONT( 62, 130 );
116        Size = MAP_APPFONT( 50, 14 );
117        DefButton = TRUE ;
118    };
119
120    CancelButton BTN_CANCEL
121    {
122        Pos = MAP_APPFONT( 115, 130 );
123        Size = MAP_APPFONT( 50, 14 );
124    };
125
126    FixedLine FL_FILE_SHARING_OPTIONS
127    {
128        Pos = MAP_APPFONT( 3, 154 );
129        Size = MAP_APPFONT( 165, 8 );
130        Text [ en-US ] = "File sharing password";
131    };
132
133    CheckBox CB_OPEN_READONLY
134    {
135        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_FILE_READONLY;
136        Pos = MAP_APPFONT( 6, 170 );
137        Size = MAP_APPFONT( 159, 8 );
138
139        Text [ en-US ] = "Open file read-only";
140    };
141
142    FixedText FT_PASSWD_TO_MODIFY
143    {
144        Pos = MAP_APPFONT( 6, 186 );
145        Size = MAP_APPFONT( 159, 8 );
146        Text [ en-US ] = "Enter password to allow editing";
147        WordBreak = TRUE;
148    };
149
150    Edit ED_PASSWD_TO_MODIFY
151    {
152        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_PASSWORD_TO_MODIFY;
153        Pos = MAP_APPFONT( 6, 196 );
154        Size = MAP_APPFONT( 159, 12 );
155        Border = TRUE ;
156        PassWord = TRUE ;
157    };
158
159    FixedText FT_REENTER_PASSWD_TO_MODIFY
160    {
161        Pos = MAP_APPFONT( 6, 214 );
162        Size = MAP_APPFONT( 159, 8 );
163        Text [ en-US ] = "Confirm password";
164        WordBreak = TRUE;
165    };
166
167    Edit ED_REENTER_PASSWD_TO_MODIFY
168    {
169        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_CONFIRM_PASSWORD_TO_MODIFY;
170        Pos = MAP_APPFONT( 6, 224 );
171        Size = MAP_APPFONT( 159, 12 );
172        Border = TRUE ;
173        PassWord = TRUE ;
174    };
175/*
176    FixedImage FI_PASSWD_TO_MODIFY_MATCH
177    {
178        Pos = MAP_APPFONT ( 150, 224 ) ;
179        Size = MAP_APPFONT ( 12 , 12 ) ;
180    };
181*/
182
183    String STR_PASSWD_MUST_BE_CONFIRMED
184    {
185        Text [ en-US ] = "Password must be confirmed" ;
186    };
187
188    String STR_MORE_OPTIONS
189    {
190        Text [ en-US ] = "More ~Options" ;
191    };
192
193    String STR_FEWER_OPTIONS
194    {
195        Text [ en-US ] = "Fewer ~Options" ;
196    };
197
198    String STR_ONE_PASSWORD_MISMATCH
199    {
200        Text [ en-US ] = "The confirmation password did not match the password. Set the password again by entering the same password in both boxes." ;
201    };
202
203    String STR_TWO_PASSWORDS_MISMATCH
204    {
205        Text [ en-US ] = "The confirmation passwords did not match the original passwords. Set the passwords again." ;
206    };
207
208    String STR_INVALID_STATE_FOR_OK_BUTTON
209    {
210        Text [ en-US ] = "Please enter a password to open or to modify, or check the open read-only option to continue." ;
211    };
212
213	// this missing string was detected late - so for 3.4 we just add an english string
214    String STR_INVALID_STATE_FOR_OK_BUTTON_V2
215    {
216		Text = "Set the password by entering the same password in both boxes." ;
217	};
218/*
219    Image IMG_PASSWD_MATCH
220    {
221        ImageBitmap = Bitmap { File = "apply.png"; };
222    };
223
224    Image IMG_PASSWD_MATCH_HC
225    {
226        ImageBitmap = Bitmap { File = "apply_h.png"; };
227    };
228*/
229};
230
231