xref: /trunk/main/cui/source/dialogs/passwdomdlg.src (revision 09d89288a77c4c17af30e3795daa4e6c1b41f376)
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
22cdf0e10cSrcweir#include <cuires.hrc>
23cdf0e10cSrcweir#include "passwdomdlg.hrc"
24cdf0e10cSrcweir#include "helpid.hrc"
25cdf0e10cSrcweir
26cdf0e10cSrcweirModalDialog RID_DLG_PASSWORD_TO_OPEN_MODIFY
27cdf0e10cSrcweir{
28384ab1ebSmseidel    Size = MAP_APPFONT ( 200, 155 ) ;
29cdf0e10cSrcweir    Text [ en-US ] = "Set Password" ;
30cdf0e10cSrcweir    HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY ;
31cdf0e10cSrcweir    Border = TRUE ;
32cdf0e10cSrcweir    Moveable = TRUE ;
33cdf0e10cSrcweir    OutputSize = TRUE ;
34cdf0e10cSrcweir    SVLook = TRUE ;
35cdf0e10cSrcweir
36cdf0e10cSrcweir    FixedLine FL_FILE_ENCRYPTION
37cdf0e10cSrcweir    {
38cdf0e10cSrcweir        Pos = MAP_APPFONT ( 3, 3 ) ;
39384ab1ebSmseidel        Size = MAP_APPFONT ( 194, 8 ) ;
40cdf0e10cSrcweir        Text [ en-US ] = "File encryption password" ;
41cdf0e10cSrcweir    };
42cdf0e10cSrcweir
43cdf0e10cSrcweir    FixedText FT_PASSWD_TO_OPEN
44cdf0e10cSrcweir    {
45cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6, 17 ) ;
46384ab1ebSmseidel        Size = MAP_APPFONT ( 188, 8 ) ;
47cdf0e10cSrcweir        Text [ en-US ] = "~Enter password to open" ;
48cdf0e10cSrcweir        WordBreak = TRUE ;
49cdf0e10cSrcweir    };
50cdf0e10cSrcweir
51cdf0e10cSrcweir    Edit ED_PASSWD_TO_OPEN
52cdf0e10cSrcweir    {
53cdf0e10cSrcweir        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_PASSWORD_TO_OPEN ;
54cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6, 28 ) ;
55384ab1ebSmseidel        Size = MAP_APPFONT ( 188, 12 ) ;
56cdf0e10cSrcweir        Border = TRUE ;
57cdf0e10cSrcweir        PassWord = TRUE ;
58cdf0e10cSrcweir    };
59cdf0e10cSrcweir
60cdf0e10cSrcweir    FixedText FT_REENTER_PASSWD_TO_OPEN
61cdf0e10cSrcweir    {
62cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6, 45 ) ;
63384ab1ebSmseidel        Size = MAP_APPFONT ( 188, 8 ) ;
64cdf0e10cSrcweir        Text [ en-US ] = "Confirm password" ;
65cdf0e10cSrcweir        WordBreak = TRUE ;
66cdf0e10cSrcweir    };
67cdf0e10cSrcweir
68cdf0e10cSrcweir    Edit ED_REENTER_PASSWD_TO_OPEN
69cdf0e10cSrcweir    {
70cdf0e10cSrcweir        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_CONFIRM_PASSWORD_TO_OPEN ;
71cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6, 56 ) ;
72384ab1ebSmseidel        Size = MAP_APPFONT ( 188, 12 ) ;
73cdf0e10cSrcweir        Border = TRUE ;
74cdf0e10cSrcweir        PassWord = TRUE ;
75cdf0e10cSrcweir    };
76cdf0e10cSrcweir/*
77cdf0e10cSrcweir    FixedImage FI_PASSWD_TO_OPEN_MATCH
78cdf0e10cSrcweir    {
79cdf0e10cSrcweir        Pos = MAP_APPFONT ( 150, 42 ) ;
80cdf0e10cSrcweir        Size = MAP_APPFONT ( 12, 12 ) ;
81cdf0e10cSrcweir    };
82cdf0e10cSrcweir*/
83cdf0e10cSrcweir    FixedText FT_PASSWD_NOTE
84cdf0e10cSrcweir    {
85384ab1ebSmseidel        Pos = MAP_APPFONT ( 6, 77 ) ;
86384ab1ebSmseidel        Size = MAP_APPFONT ( 188, 5 * 8 ) ; // some extra space for translation in other languages
870a252a6cSmseidel        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." ;
88cdf0e10cSrcweir        WordBreak = TRUE ;
89cdf0e10cSrcweir    };
90cdf0e10cSrcweir
91cdf0e10cSrcweir    FixedLine FL_BUTTONS
92cdf0e10cSrcweir    {
93384ab1ebSmseidel        Pos = MAP_APPFONT ( 0, 122 ) ;
94384ab1ebSmseidel        Size = MAP_APPFONT ( 200, 8 ) ;
95cdf0e10cSrcweir    };
96cdf0e10cSrcweir
97cdf0e10cSrcweir    MoreButton BTN_MORE_FEWER_OPTIONS
98cdf0e10cSrcweir    {
99cdf0e10cSrcweir        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_MORE ;
100384ab1ebSmseidel        Pos = MAP_APPFONT ( 6, 135 ) ;
101*b464c4e8Smseidel        Size = MAP_APPFONT ( 65, 14 ) ;
102cdf0e10cSrcweir        Delta = 92 ;
103cdf0e10cSrcweir        MapUnit = MAP_APPFONT ;
104cdf0e10cSrcweir        State = FALSE ;
105cdf0e10cSrcweir    };
106cdf0e10cSrcweir
107cdf0e10cSrcweir    OKButton BTN_OK
108cdf0e10cSrcweir    {
109384ab1ebSmseidel        Pos = MAP_APPFONT ( 91, 135 ) ;
110cdf0e10cSrcweir        Size = MAP_APPFONT ( 50, 14 ) ;
111cdf0e10cSrcweir        DefButton = TRUE ;
112cdf0e10cSrcweir    };
113cdf0e10cSrcweir
114cdf0e10cSrcweir    CancelButton BTN_CANCEL
115cdf0e10cSrcweir    {
116384ab1ebSmseidel        Pos = MAP_APPFONT ( 144, 135 ) ;
117cdf0e10cSrcweir        Size = MAP_APPFONT ( 50, 14 ) ;
118cdf0e10cSrcweir    };
119cdf0e10cSrcweir
120cdf0e10cSrcweir    FixedLine FL_FILE_SHARING_OPTIONS
121cdf0e10cSrcweir    {
122cdf0e10cSrcweir        Pos = MAP_APPFONT ( 3, 154 ) ;
123384ab1ebSmseidel        Size = MAP_APPFONT ( 194, 8 ) ;
124cdf0e10cSrcweir        Text [ en-US ] = "File sharing password" ;
125cdf0e10cSrcweir    };
126cdf0e10cSrcweir
127cdf0e10cSrcweir    CheckBox CB_OPEN_READONLY
128cdf0e10cSrcweir    {
129cdf0e10cSrcweir        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_FILE_READONLY ;
130cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6, 170 ) ;
131384ab1ebSmseidel        Size = MAP_APPFONT ( 188, 8 ) ;
132cdf0e10cSrcweir        Text [ en-US ] = "Open file read-only" ;
133cdf0e10cSrcweir    };
134cdf0e10cSrcweir
135cdf0e10cSrcweir    FixedText FT_PASSWD_TO_MODIFY
136cdf0e10cSrcweir    {
137cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6, 186 ) ;
138384ab1ebSmseidel        Size = MAP_APPFONT ( 188, 8 ) ;
139cdf0e10cSrcweir        Text [ en-US ] = "Enter password to allow editing" ;
140cdf0e10cSrcweir        WordBreak = TRUE ;
141cdf0e10cSrcweir    };
142cdf0e10cSrcweir
143cdf0e10cSrcweir    Edit ED_PASSWD_TO_MODIFY
144cdf0e10cSrcweir    {
145cdf0e10cSrcweir        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_PASSWORD_TO_MODIFY ;
146cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6, 196 ) ;
147384ab1ebSmseidel        Size = MAP_APPFONT ( 188, 12 ) ;
148cdf0e10cSrcweir        Border = TRUE ;
149cdf0e10cSrcweir        PassWord = TRUE ;
150cdf0e10cSrcweir    };
151cdf0e10cSrcweir
152cdf0e10cSrcweir    FixedText FT_REENTER_PASSWD_TO_MODIFY
153cdf0e10cSrcweir    {
154cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6, 214 ) ;
155384ab1ebSmseidel        Size = MAP_APPFONT ( 188, 8 ) ;
156cdf0e10cSrcweir        Text [ en-US ] = "Confirm password" ;
157cdf0e10cSrcweir        WordBreak = TRUE ;
158cdf0e10cSrcweir    };
159cdf0e10cSrcweir
160cdf0e10cSrcweir    Edit ED_REENTER_PASSWD_TO_MODIFY
161cdf0e10cSrcweir    {
162cdf0e10cSrcweir        HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_CONFIRM_PASSWORD_TO_MODIFY ;
163cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6, 224 ) ;
164384ab1ebSmseidel        Size = MAP_APPFONT ( 188, 12 ) ;
165cdf0e10cSrcweir        Border = TRUE ;
166cdf0e10cSrcweir        PassWord = TRUE ;
167cdf0e10cSrcweir    };
168cdf0e10cSrcweir/*
169cdf0e10cSrcweir    FixedImage FI_PASSWD_TO_MODIFY_MATCH
170cdf0e10cSrcweir    {
171cdf0e10cSrcweir        Pos = MAP_APPFONT ( 150, 224 ) ;
172cdf0e10cSrcweir        Size = MAP_APPFONT ( 12, 12 ) ;
173cdf0e10cSrcweir    };
174cdf0e10cSrcweir*/
175cdf0e10cSrcweir
176cdf0e10cSrcweir    String STR_PASSWD_MUST_BE_CONFIRMED
177cdf0e10cSrcweir    {
178cdf0e10cSrcweir        Text [ en-US ] = "Password must be confirmed" ;
179cdf0e10cSrcweir    };
180cdf0e10cSrcweir
181cdf0e10cSrcweir    String STR_MORE_OPTIONS
182cdf0e10cSrcweir    {
183cdf0e10cSrcweir        Text [ en-US ] = "More ~Options" ;
184cdf0e10cSrcweir    };
185cdf0e10cSrcweir
186cdf0e10cSrcweir    String STR_FEWER_OPTIONS
187cdf0e10cSrcweir    {
188cdf0e10cSrcweir        Text [ en-US ] = "Fewer ~Options" ;
189cdf0e10cSrcweir    };
190cdf0e10cSrcweir
191cdf0e10cSrcweir    String STR_ONE_PASSWORD_MISMATCH
192cdf0e10cSrcweir    {
193cdf0e10cSrcweir        Text [ en-US ] = "The confirmation password did not match the password. Set the password again by entering the same password in both boxes." ;
194cdf0e10cSrcweir    };
195cdf0e10cSrcweir
196cdf0e10cSrcweir    String STR_TWO_PASSWORDS_MISMATCH
197cdf0e10cSrcweir    {
198cdf0e10cSrcweir        Text [ en-US ] = "The confirmation passwords did not match the original passwords. Set the passwords again." ;
199cdf0e10cSrcweir    };
200cdf0e10cSrcweir
201cdf0e10cSrcweir    String STR_INVALID_STATE_FOR_OK_BUTTON
202cdf0e10cSrcweir    {
203cdf0e10cSrcweir        Text [ en-US ] = "Please enter a password to open or to modify, or check the open read-only option to continue." ;
204cdf0e10cSrcweir    };
205f327988fSMathias Bauer
206f327988fSMathias Bauer    String STR_INVALID_STATE_FOR_OK_BUTTON_V2
207f327988fSMathias Bauer    {
2080a252a6cSmseidel        Text [ en-US ] = "Set the password by entering the same password in both boxes." ;
209f327988fSMathias Bauer    };
210cdf0e10cSrcweir/*
211cdf0e10cSrcweir    Image IMG_PASSWD_MATCH
212cdf0e10cSrcweir    {
213cdf0e10cSrcweir        ImageBitmap = Bitmap {File = "apply.png" ;} ;
214cdf0e10cSrcweir    };
215cdf0e10cSrcweir
216cdf0e10cSrcweir    Image IMG_PASSWD_MATCH_HC
217cdf0e10cSrcweir    {
218cdf0e10cSrcweir        ImageBitmap = Bitmap {File = "apply_h.png" ;} ;
219cdf0e10cSrcweir    };
220cdf0e10cSrcweir*/
221cdf0e10cSrcweir};
222cdf0e10cSrcweir
2230a252a6cSmseidel// ********************************************************************** EOF
224