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