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