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