1*acbf353aSAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*acbf353aSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*acbf353aSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*acbf353aSAndrew Rist * distributed with this work for additional information 6*acbf353aSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*acbf353aSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*acbf353aSAndrew Rist * "License"); you may not use this file except in compliance 9*acbf353aSAndrew Rist * with the License. You may obtain a copy of the License at 10*acbf353aSAndrew Rist * 11*acbf353aSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*acbf353aSAndrew Rist * 13*acbf353aSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*acbf353aSAndrew Rist * software distributed under the License is distributed on an 15*acbf353aSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*acbf353aSAndrew Rist * KIND, either express or implied. See the License for the 17*acbf353aSAndrew Rist * specific language governing permissions and limitations 18*acbf353aSAndrew Rist * under the License. 19*acbf353aSAndrew Rist * 20*acbf353aSAndrew Rist *************************************************************/ 21*acbf353aSAndrew Rist 22*acbf353aSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir#include "sfx2/sfx.hrc" 25cdf0e10cSrcweir#include "securitypage.hrc" 26cdf0e10cSrcweir#include "helpid.hrc" 27cdf0e10cSrcweir#include "dialog.hrc" 28cdf0e10cSrcweir#include "sfxlocal.hrc" 29cdf0e10cSrcweir 30cdf0e10cSrcweir#include <svtools/controldims.hrc> 31cdf0e10cSrcweir 32cdf0e10cSrcweir 33cdf0e10cSrcweirTabPage TP_DOCINFOSECURITY 34cdf0e10cSrcweir{ 35cdf0e10cSrcweir HelpId = HID_DOCINFOSECURITY ; 36cdf0e10cSrcweir Hide = TRUE ; 37cdf0e10cSrcweir Size = MAP_APPFONT ( 260 , 185 ) ; 38cdf0e10cSrcweir 39cdf0e10cSrcweir FixedLine PASSWORD_TO_OPEN_FL 40cdf0e10cSrcweir { 41cdf0e10cSrcweir Pos = MAP_APPFONT( 6, 6 ); 42cdf0e10cSrcweir Size = MAP_APPFONT( 248, RSC_CD_FIXEDLINE_HEIGHT ); 43cdf0e10cSrcweir Text [ en-US ] = "File encryption password"; 44cdf0e10cSrcweir }; 45cdf0e10cSrcweir FixedText PASSWORD_TO_OPEN_FT 46cdf0e10cSrcweir { 47cdf0e10cSrcweir Pos = MAP_APPFONT( 12, 20 ); 48cdf0e10cSrcweir Size = MAP_APPFONT( 82, RSC_CD_FIXEDTEXT_HEIGHT ); 49cdf0e10cSrcweir Text [ en-US ] = "~Enter password to open"; 50cdf0e10cSrcweir }; 51cdf0e10cSrcweir Edit PASSWORD_TO_OPEN_ED 52cdf0e10cSrcweir { 53cdf0e10cSrcweir HelpId = HID_SECURITYTAB_PASSWORD_TO_OPEN; 54cdf0e10cSrcweir Pos = MAP_APPFONT( 100, 18 ); 55cdf0e10cSrcweir Size = MAP_APPFONT( 88, RSC_CD_TEXTBOX_HEIGHT ); 56cdf0e10cSrcweir Border = TRUE; 57cdf0e10cSrcweir PassWord = TRUE; 58cdf0e10cSrcweir }; 59cdf0e10cSrcweir FixedText CONFIRM_PASSWORD_TO_OPEN_FT 60cdf0e10cSrcweir { 61cdf0e10cSrcweir Pos = MAP_APPFONT( 12, 34 ); 62cdf0e10cSrcweir Size = MAP_APPFONT( 82, RSC_CD_FIXEDTEXT_HEIGHT ); 63cdf0e10cSrcweir Text [ en-US ] = "~Reenter password to open"; 64cdf0e10cSrcweir }; 65cdf0e10cSrcweir Edit CONFIRM_PASSWORD_TO_OPEN_ED 66cdf0e10cSrcweir { 67cdf0e10cSrcweir HelpId = HID_SECURITYTAB_CONFIRM_PASSWORD_TO_OPEN; 68cdf0e10cSrcweir Pos = MAP_APPFONT( 100, 32 ); 69cdf0e10cSrcweir Size = MAP_APPFONT( 88, RSC_CD_TEXTBOX_HEIGHT ); 70cdf0e10cSrcweir Border = TRUE; 71cdf0e10cSrcweir PassWord = TRUE; 72cdf0e10cSrcweir }; 73cdf0e10cSrcweir FixedText PASSWORD_INFO_FT 74cdf0e10cSrcweir { 75cdf0e10cSrcweir Pos = MAP_APPFONT( 12, 48 ); 76cdf0e10cSrcweir Size = MAP_APPFONT( 236, 3 * RSC_CD_FIXEDTEXT_HEIGHT ); 77cdf0e10cSrcweir Text [ en-US ] = 78cdf0e10cSrcweir "Note: After a password has been set, the document will only open "\ 79cdf0e10cSrcweir "with the password. Should you lose the password, there will be "\ 80cdf0e10cSrcweir "no way to recover the document. Please also note that this password "\ 81cdf0e10cSrcweir "is case-sensitive."; 82cdf0e10cSrcweir WordBreak = TRUE; 83cdf0e10cSrcweir }; 84cdf0e10cSrcweir FixedLine PASSWORD_TO_MODIFY_FL 85cdf0e10cSrcweir { 86cdf0e10cSrcweir Pos = MAP_APPFONT( 6, 78 ); 87cdf0e10cSrcweir Size = MAP_APPFONT( 248, RSC_CD_FIXEDLINE_HEIGHT ); 88cdf0e10cSrcweir Text [ en-US ] = "File sharing password"; 89cdf0e10cSrcweir }; 90cdf0e10cSrcweir FixedText PASSWORD_TO_MODIFY_FT 91cdf0e10cSrcweir { 92cdf0e10cSrcweir Pos = MAP_APPFONT( 12, 92 ); 93cdf0e10cSrcweir Size = MAP_APPFONT( 82, RSC_CD_FIXEDTEXT_HEIGHT ); 94cdf0e10cSrcweir Text [ en-US ] = "Enter password to modify"; 95cdf0e10cSrcweir }; 96cdf0e10cSrcweir Edit PASSWORD_TO_MODIFY_ED 97cdf0e10cSrcweir { 98cdf0e10cSrcweir HelpId = HID_SECURITYTAB_PASSWORD_TO_MODIFY; 99cdf0e10cSrcweir Pos = MAP_APPFONT( 100, 90 ); 100cdf0e10cSrcweir Size = MAP_APPFONT( 88, RSC_CD_TEXTBOX_HEIGHT ); 101cdf0e10cSrcweir Border = TRUE; 102cdf0e10cSrcweir PassWord = TRUE; 103cdf0e10cSrcweir }; 104cdf0e10cSrcweir FixedText CONFIRM_PASSWORD_TO_MODIFY_FT 105cdf0e10cSrcweir { 106cdf0e10cSrcweir Pos = MAP_APPFONT( 12, 106 ); 107cdf0e10cSrcweir Size = MAP_APPFONT( 82, RSC_CD_FIXEDTEXT_HEIGHT ); 108cdf0e10cSrcweir Text [ en-US ] = "Reenter password to modify"; 109cdf0e10cSrcweir }; 110cdf0e10cSrcweir Edit CONFIRM_PASSWORD_TO_MODIFY_ED 111cdf0e10cSrcweir { 112cdf0e10cSrcweir HelpId = HID_SECURITYTAB_CONFIRM_PASSWORD_TO_MODIFY; 113cdf0e10cSrcweir Pos = MAP_APPFONT( 100, 104 ); 114cdf0e10cSrcweir Size = MAP_APPFONT( 88, RSC_CD_TEXTBOX_HEIGHT ); 115cdf0e10cSrcweir Border = TRUE; 116cdf0e10cSrcweir PassWord = TRUE; 117cdf0e10cSrcweir }; 118cdf0e10cSrcweir FixedLine OPTIONS_FL 119cdf0e10cSrcweir { 120cdf0e10cSrcweir Pos = MAP_APPFONT( 6, 120 ); 121cdf0e10cSrcweir Size = MAP_APPFONT( 248, RSC_CD_FIXEDLINE_HEIGHT ); 122cdf0e10cSrcweir Text [ en-US ] = "File sharing options"; 123cdf0e10cSrcweir }; 124cdf0e10cSrcweir CheckBox OPEN_READONLY_CB 125cdf0e10cSrcweir { 126cdf0e10cSrcweir HelpId = HID_SECURITYTAB_OPEN_FILE_READONLY; 127cdf0e10cSrcweir Pos = MAP_APPFONT( 12, 133 ); 128cdf0e10cSrcweir Size = MAP_APPFONT( 176, RSC_CD_CHECKBOX_HEIGHT ); 129cdf0e10cSrcweir Text [ en-US ] = "~Open file read-only"; 130cdf0e10cSrcweir }; 131cdf0e10cSrcweir CheckBox RECORD_CHANGES_CB 132cdf0e10cSrcweir { 133cdf0e10cSrcweir HelpId = HID_SECURITYTAB_RECORD_CHANGES; 134cdf0e10cSrcweir Pos = MAP_APPFONT( 12, 147 ); 135cdf0e10cSrcweir Size = MAP_APPFONT( 176, RSC_CD_CHECKBOX_HEIGHT ); 136cdf0e10cSrcweir Text [ en-US ] = "Record ~changes"; 137cdf0e10cSrcweir }; 138cdf0e10cSrcweir PushButton CHANGE_PROTECTION_PB 139cdf0e10cSrcweir { 140cdf0e10cSrcweir HelpId = HID_SECURITYTAB_PROTECTION; 141cdf0e10cSrcweir Pos = MAP_APPFONT( 194, 145 ); 142cdf0e10cSrcweir Size = MAP_APPFONT( 60, RSC_CD_PUSHBUTTON_HEIGHT ); 143cdf0e10cSrcweir }; 144cdf0e10cSrcweir String STR_PROTECT 145cdf0e10cSrcweir { 146cdf0e10cSrcweir Text [ en-US ] = "~Protect..."; 147cdf0e10cSrcweir }; 148cdf0e10cSrcweir String STR_UNPROTECT 149cdf0e10cSrcweir { 150cdf0e10cSrcweir Text [ en-US ] = "~Unprotect..."; 151cdf0e10cSrcweir }; 152cdf0e10cSrcweir String STR_END_REDLINING_WARNING 153cdf0e10cSrcweir { 154cdf0e10cSrcweir Text [ en-US ] = "This action will exit the change recording mode.\nAny information about changes will be lost.\n\nExit change recording mode?\n\n" ; 155cdf0e10cSrcweir }; 156cdf0e10cSrcweir}; 157cdf0e10cSrcweir 158cdf0e10cSrcweirString RID_SFX_PROTECT_RECORDS 159cdf0e10cSrcweir{ 160cdf0e10cSrcweir Text [ en-US ] = "Protect Records" ; 161cdf0e10cSrcweir}; 162cdf0e10cSrcweirString RID_SFX_UNPROTECT_RECORDS 163cdf0e10cSrcweir{ 164cdf0e10cSrcweir Text [ en-US ] = "Unprotect Records" ; 165cdf0e10cSrcweir}; 166cdf0e10cSrcweirString RID_SFX_INCORRECT_PASSWORD 167cdf0e10cSrcweir{ 168cdf0e10cSrcweir Text [ en-US ] = "Incorrect password" ; 169cdf0e10cSrcweir}; 170cdf0e10cSrcweir 171