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