xref: /trunk/main/cui/source/dialogs/passwdomdlg.src (revision 0a252a6c22a81186f9c06389f71ca29d32e40bde)
10e2af6afSAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
30e2af6afSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
40e2af6afSAndrew Rist * or more contributor license agreements.  See the NOTICE file
50e2af6afSAndrew Rist * distributed with this work for additional information
60e2af6afSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
70e2af6afSAndrew Rist * to you under the Apache License, Version 2.0 (the
80e2af6afSAndrew Rist * "License"); you may not use this file except in compliance
90e2af6afSAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
110e2af6afSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
130e2af6afSAndrew Rist * Unless required by applicable law or agreed to in writing,
140e2af6afSAndrew Rist * software distributed under the License is distributed on an
150e2af6afSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
160e2af6afSAndrew Rist * KIND, either express or implied.  See the License for the
170e2af6afSAndrew Rist * specific language governing permissions and limitations
180e2af6afSAndrew Rist * under the License.
19cdf0e10cSrcweir *
200e2af6afSAndrew Rist *************************************************************/
210e2af6afSAndrew Rist
220e2af6afSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#include <cuires.hrc>
25cdf0e10cSrcweir#include "passwdomdlg.hrc"
26cdf0e10cSrcweir#include "helpid.hrc"
27cdf0e10cSrcweir
28cdf0e10cSrcweir
29cdf0e10cSrcweirModalDialog RID_DLG_PASSWORD_TO_OPEN_MODIFY
30cdf0e10cSrcweir{
31cdf0e10cSrcweir    Size = MAP_APPFONT ( 171, 150 ) ;
32cdf0e10cSrcweir    Text [ en-US ] = "Set Password" ;
33cdf0e10cSrcweir    HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY ;
34cdf0e10cSrcweir    Border = TRUE ;
35cdf0e10cSrcweir    Moveable = TRUE ;
36cdf0e10cSrcweir    OutputSize = TRUE ;
37cdf0e10cSrcweir    SVLook = TRUE ;
38cdf0e10cSrcweir
39cdf0e10cSrcweir    FixedLine FL_FILE_ENCRYPTION
40cdf0e10cSrcweir    {
41cdf0e10cSrcweir        Pos = MAP_APPFONT ( 3, 3 ) ;
42cdf0e10cSrcweir        Size = MAP_APPFONT ( 165, 8 ) ;
43cdf0e10cSrcweir        Text [ en-US ] = "File encryption password" ;
44cdf0e10cSrcweir    };
45cdf0e10cSrcweir
46cdf0e10cSrcweir    FixedText FT_PASSWD_TO_OPEN
47cdf0e10cSrcweir    {
48cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6, 17 ) ;
49cdf0e10cSrcweir        Size = MAP_APPFONT ( 159, 8 ) ;
50cdf0e10cSrcweir        Text [ en-US ] = "~Enter password to open" ;
51cdf0e10cSrcweir        WordBreak = TRUE ;
52cdf0e10cSrcweir    };
53cdf0e10cSrcweir
54cdf0e10cSrcweir    Edit ED_PASSWD_TO_OPEN
55cdf0e10cSrcweir    {
56cdf0e10cSrcweir        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_PASSWORD_TO_OPEN ;
57cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6, 28 ) ;
58cdf0e10cSrcweir        Size = MAP_APPFONT ( 159, 12 ) ;
59cdf0e10cSrcweir        Border = TRUE ;
60cdf0e10cSrcweir        PassWord = TRUE ;
61cdf0e10cSrcweir    };
62cdf0e10cSrcweir
63cdf0e10cSrcweir    FixedText FT_REENTER_PASSWD_TO_OPEN
64cdf0e10cSrcweir    {
65cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6, 45 ) ;
66cdf0e10cSrcweir        Size = MAP_APPFONT ( 159, 8 ) ;
67cdf0e10cSrcweir        Text [ en-US ] = "Confirm password" ;
68cdf0e10cSrcweir        WordBreak = TRUE ;
69cdf0e10cSrcweir    };
70cdf0e10cSrcweir
71cdf0e10cSrcweir    Edit ED_REENTER_PASSWD_TO_OPEN
72cdf0e10cSrcweir    {
73cdf0e10cSrcweir        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_CONFIRM_PASSWORD_TO_OPEN ;
74cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6, 56 ) ;
75cdf0e10cSrcweir        Size = MAP_APPFONT ( 159, 12 ) ;
76cdf0e10cSrcweir        Border = TRUE ;
77cdf0e10cSrcweir        PassWord = TRUE ;
78cdf0e10cSrcweir    };
79cdf0e10cSrcweir/*
80cdf0e10cSrcweir    FixedImage FI_PASSWD_TO_OPEN_MATCH
81cdf0e10cSrcweir    {
82cdf0e10cSrcweir        Pos = MAP_APPFONT ( 150, 42 ) ;
83cdf0e10cSrcweir        Size = MAP_APPFONT ( 12, 12 ) ;
84cdf0e10cSrcweir    };
85cdf0e10cSrcweir*/
86cdf0e10cSrcweir    FixedText FT_PASSWD_NOTE
87cdf0e10cSrcweir    {
88cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6, 80 ) ;
89cdf0e10cSrcweir        Size = MAP_APPFONT ( 159, 4*8 ) ; // some extra space for translation in other languages
90*0a252a6cSmseidel        Text [ en-US ] = "Note: After a password has been set, the document will only open with the password. Should you lose the password, there will be no way to recover the document. Please also note that this password is case-sensitive." ;
91cdf0e10cSrcweir        WordBreak = TRUE ;
92cdf0e10cSrcweir    };
93cdf0e10cSrcweir
94cdf0e10cSrcweir    FixedLine FL_BUTTONS
95cdf0e10cSrcweir    {
96cdf0e10cSrcweir        Pos = MAP_APPFONT ( 0, 117 ) ;
97cdf0e10cSrcweir        Size = MAP_APPFONT ( 171, 8 ) ;
98cdf0e10cSrcweir    };
99cdf0e10cSrcweir
100cdf0e10cSrcweir    MoreButton BTN_MORE_FEWER_OPTIONS
101cdf0e10cSrcweir    {
102cdf0e10cSrcweir        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_MORE ;
103cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6, 130 ) ;
104cdf0e10cSrcweir        Size = MAP_APPFONT ( 50, 14 ) ;
105cdf0e10cSrcweir        Delta = 92 ;
106cdf0e10cSrcweir        MapUnit = MAP_APPFONT ;
107cdf0e10cSrcweir        State = FALSE ;
108cdf0e10cSrcweir    };
109cdf0e10cSrcweir
110cdf0e10cSrcweir    OKButton BTN_OK
111cdf0e10cSrcweir    {
112cdf0e10cSrcweir        Pos = MAP_APPFONT ( 62, 130 ) ;
113cdf0e10cSrcweir        Size = MAP_APPFONT ( 50, 14 ) ;
114cdf0e10cSrcweir        DefButton = TRUE ;
115cdf0e10cSrcweir    };
116cdf0e10cSrcweir
117cdf0e10cSrcweir    CancelButton BTN_CANCEL
118cdf0e10cSrcweir    {
119cdf0e10cSrcweir        Pos = MAP_APPFONT ( 115, 130 ) ;
120cdf0e10cSrcweir        Size = MAP_APPFONT ( 50, 14 ) ;
121cdf0e10cSrcweir    };
122cdf0e10cSrcweir
123cdf0e10cSrcweir    FixedLine FL_FILE_SHARING_OPTIONS
124cdf0e10cSrcweir    {
125cdf0e10cSrcweir        Pos = MAP_APPFONT ( 3, 154 ) ;
126cdf0e10cSrcweir        Size = MAP_APPFONT ( 165, 8 ) ;
127cdf0e10cSrcweir        Text [ en-US ] = "File sharing password" ;
128cdf0e10cSrcweir    };
129cdf0e10cSrcweir
130cdf0e10cSrcweir    CheckBox CB_OPEN_READONLY
131cdf0e10cSrcweir    {
132cdf0e10cSrcweir        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_FILE_READONLY ;
133cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6, 170 ) ;
134cdf0e10cSrcweir        Size = MAP_APPFONT ( 159, 8 ) ;
135cdf0e10cSrcweir        Text [ en-US ] = "Open file read-only" ;
136cdf0e10cSrcweir    };
137cdf0e10cSrcweir
138cdf0e10cSrcweir    FixedText FT_PASSWD_TO_MODIFY
139cdf0e10cSrcweir    {
140cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6, 186 ) ;
141cdf0e10cSrcweir        Size = MAP_APPFONT ( 159, 8 ) ;
142cdf0e10cSrcweir        Text [ en-US ] = "Enter password to allow editing" ;
143cdf0e10cSrcweir        WordBreak = TRUE ;
144cdf0e10cSrcweir    };
145cdf0e10cSrcweir
146cdf0e10cSrcweir    Edit ED_PASSWD_TO_MODIFY
147cdf0e10cSrcweir    {
148cdf0e10cSrcweir        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_PASSWORD_TO_MODIFY ;
149cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6, 196 ) ;
150cdf0e10cSrcweir        Size = MAP_APPFONT ( 159, 12 ) ;
151cdf0e10cSrcweir        Border = TRUE ;
152cdf0e10cSrcweir        PassWord = TRUE ;
153cdf0e10cSrcweir    };
154cdf0e10cSrcweir
155cdf0e10cSrcweir    FixedText FT_REENTER_PASSWD_TO_MODIFY
156cdf0e10cSrcweir    {
157cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6, 214 ) ;
158cdf0e10cSrcweir        Size = MAP_APPFONT ( 159, 8 ) ;
159cdf0e10cSrcweir        Text [ en-US ] = "Confirm password" ;
160cdf0e10cSrcweir        WordBreak = TRUE ;
161cdf0e10cSrcweir    };
162cdf0e10cSrcweir
163cdf0e10cSrcweir    Edit ED_REENTER_PASSWD_TO_MODIFY
164cdf0e10cSrcweir    {
165cdf0e10cSrcweir        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_CONFIRM_PASSWORD_TO_MODIFY ;
166cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6, 224 ) ;
167cdf0e10cSrcweir        Size = MAP_APPFONT ( 159, 12 ) ;
168cdf0e10cSrcweir        Border = TRUE ;
169cdf0e10cSrcweir        PassWord = TRUE ;
170cdf0e10cSrcweir    };
171cdf0e10cSrcweir/*
172cdf0e10cSrcweir    FixedImage FI_PASSWD_TO_MODIFY_MATCH
173cdf0e10cSrcweir    {
174cdf0e10cSrcweir        Pos = MAP_APPFONT ( 150, 224 ) ;
175cdf0e10cSrcweir        Size = MAP_APPFONT ( 12, 12 ) ;
176cdf0e10cSrcweir    };
177cdf0e10cSrcweir*/
178cdf0e10cSrcweir
179cdf0e10cSrcweir    String STR_PASSWD_MUST_BE_CONFIRMED
180cdf0e10cSrcweir    {
181cdf0e10cSrcweir        Text [ en-US ] = "Password must be confirmed" ;
182cdf0e10cSrcweir    };
183cdf0e10cSrcweir
184cdf0e10cSrcweir    String STR_MORE_OPTIONS
185cdf0e10cSrcweir    {
186cdf0e10cSrcweir        Text [ en-US ] = "More ~Options" ;
187cdf0e10cSrcweir    };
188cdf0e10cSrcweir
189cdf0e10cSrcweir    String STR_FEWER_OPTIONS
190cdf0e10cSrcweir    {
191cdf0e10cSrcweir        Text [ en-US ] = "Fewer ~Options" ;
192cdf0e10cSrcweir    };
193cdf0e10cSrcweir
194cdf0e10cSrcweir    String STR_ONE_PASSWORD_MISMATCH
195cdf0e10cSrcweir    {
196cdf0e10cSrcweir        Text [ en-US ] = "The confirmation password did not match the password. Set the password again by entering the same password in both boxes." ;
197cdf0e10cSrcweir    };
198cdf0e10cSrcweir
199cdf0e10cSrcweir    String STR_TWO_PASSWORDS_MISMATCH
200cdf0e10cSrcweir    {
201cdf0e10cSrcweir        Text [ en-US ] = "The confirmation passwords did not match the original passwords. Set the passwords again." ;
202cdf0e10cSrcweir    };
203cdf0e10cSrcweir
204cdf0e10cSrcweir    String STR_INVALID_STATE_FOR_OK_BUTTON
205cdf0e10cSrcweir    {
206cdf0e10cSrcweir        Text [ en-US ] = "Please enter a password to open or to modify, or check the open read-only option to continue." ;
207cdf0e10cSrcweir    };
208f327988fSMathias Bauer
209f327988fSMathias Bauer    String STR_INVALID_STATE_FOR_OK_BUTTON_V2
210f327988fSMathias Bauer    {
211*0a252a6cSmseidel        Text [ en-US ] = "Set the password by entering the same password in both boxes." ;
212f327988fSMathias Bauer    };
213cdf0e10cSrcweir/*
214cdf0e10cSrcweir    Image IMG_PASSWD_MATCH
215cdf0e10cSrcweir    {
216cdf0e10cSrcweir        ImageBitmap = Bitmap {File = "apply.png" ;} ;
217cdf0e10cSrcweir    };
218cdf0e10cSrcweir
219cdf0e10cSrcweir    Image IMG_PASSWD_MATCH_HC
220cdf0e10cSrcweir    {
221cdf0e10cSrcweir        ImageBitmap = Bitmap {File = "apply_h.png" ;} ;
222cdf0e10cSrcweir    };
223cdf0e10cSrcweir*/
224cdf0e10cSrcweir};
225cdf0e10cSrcweir
226*0a252a6cSmseidel// ********************************************************************** EOF
227