1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22#include "svtools/controldims.hrc"
23#include "dp_gui.hrc"
24
25String RID_STR_ADD_PACKAGES
26{
27	Text [ en-US ] = "Add Extension(s)" ;
28};
29String RID_CTX_ITEM_REMOVE
30{
31	Text [ en-US ] = "~Remove" ;
32};
33String RID_CTX_ITEM_ENABLE
34{
35	Text [ en-US ] = "~Enable" ;
36};
37String RID_CTX_ITEM_DISABLE
38{
39	Text [ en-US ] = "~Disable" ;
40};
41String RID_CTX_ITEM_CHECK_UPDATE
42{
43	Text [ en-US ] = "~Update..." ;
44};
45String RID_CTX_ITEM_OPTIONS
46{
47	Text [ en-US ] = "~Options..." ;
48};
49
50String RID_STR_ADDING_PACKAGES
51{
52	Text [ en-US ] = "Adding %EXTENSION_NAME" ;
53};
54
55String RID_STR_REMOVING_PACKAGES
56{
57	Text [ en-US ] = "Removing %EXTENSION_NAME" ;
58};
59
60String RID_STR_ENABLING_PACKAGES
61{
62	Text [ en-US ] = "Enabling %EXTENSION_NAME" ;
63};
64
65String RID_STR_DISABLING_PACKAGES
66{
67	Text [ en-US ] = "Disabling %EXTENSION_NAME" ;
68};
69
70String RID_STR_ACCEPT_LICENSE
71{
72	Text [ en-US ] = "Accept license for %EXTENSION_NAME" ;
73};
74
75String RID_STR_INSTALL_FOR_ALL
76{
77	Text [ en-US ] = "~For all users" ;
78};
79
80String RID_STR_INSTALL_FOR_ME
81{
82	Text [ en-US ] = "~Only for me" ;
83};
84
85String RID_STR_ERROR_UNKNOWN_STATUS
86{
87	Text [ en-US ] = "Error: The status of this extension is unknown" ;
88};
89
90String RID_STR_CLOSE_BTN
91{
92	Text [ en-US ] = "Close" ;
93};
94
95String RID_STR_EXIT_BTN
96{
97	Text [ en-US ] = "Quit" ;
98};
99
100String RID_STR_NO_ADMIN_PRIVILEGE
101{
102	Text [ en-US ] = "%PRODUCTNAME has been updated to a new version. "
103					 "Some shared %PRODUCTNAME extensions are not compatible with this version and need to be updated before %PRODUCTNAME can be started.\n\n"
104					 "Updating of shared extension requires administrator privileges. Contact your system administrator to update the following shared extensions:" ;
105};
106
107String RID_STR_ERROR_MISSING_DEPENDENCIES
108{
109	Text [ en-US ] = "The extension cannot be enabled as the following system dependencies are not fulfilled:" ;
110};
111
112String RID_STR_ERROR_MISSING_LICENSE
113{
114	Text [ en-US ] = "This extension is disabled because you haven't accepted the license yet.\n" ;
115};
116
117String RID_STR_SHOW_LICENSE_CMD
118{
119	Text [ en-US ] = "Show license" ;
120};
121
122// Dialog layout
123// ------------------------------------------------
124//	row1 | multi line edit
125// ------------------------------------------------
126//  row2 | fixed text
127// ------------------------------------------------
128//  row3 | img  | fixed text  | fixed text | button
129// ------------------------------------------------
130//  row4 | img  | fixed text  | fixed text
131// ------------------------------------------------
132//  row5 |fixed line
133// ------------------------------------------------
134//  row6 |                    | button     | button
135// ------------------------------------------------
136//       | col1 | col2 | col3 | col4       | col5
137
138// To change the overall size of the multi line edit change
139// ROW1_HEIGHT and COL3_WIDTH
140
141#define ROW1_Y RSC_SP_DLG_INNERBORDER_TOP
142#define ROW1_HEIGHT 16 * RSC_CD_FIXEDTEXT_HEIGHT
143#define ROW2_Y ROW1_Y + ROW1_HEIGHT + RSC_SP_CTRL_GROUP_Y
144#define ROW2_HEIGHT 3 * RSC_CD_FIXEDTEXT_HEIGHT
145#define ROW3_Y ROW2_Y + ROW2_HEIGHT + RSC_SP_CTRL_GROUP_Y
146#define ROW3_HEIGHT 3 * RSC_CD_FIXEDTEXT_HEIGHT
147#define ROW4_Y ROW3_Y + ROW3_HEIGHT + RSC_SP_CTRL_GROUP_Y
148#define ROW4_HEIGHT 3 * RSC_CD_FIXEDTEXT_HEIGHT
149#define ROW5_Y ROW4_Y + ROW4_HEIGHT + RSC_SP_CTRL_GROUP_Y
150#define ROW5_HEIGHT RSC_CD_FIXEDTEXT_HEIGHT
151#define ROW6_Y ROW5_Y + ROW5_HEIGHT + RSC_SP_CTRL_GROUP_Y
152#define ROW6_HEIGHT RSC_CD_PUSHBUTTON_HEIGHT
153
154#define LIC_DLG_HEIGHT ROW6_Y + ROW6_HEIGHT + RSC_SP_DLG_INNERBORDER_BOTTOM
155
156#define COL1_X RSC_SP_DLG_INNERBORDER_LEFT
157#define IMG_ARROW_WIDTH 16
158#define COL1_WIDTH IMG_ARROW_WIDTH
159#define COL2_X COL1_X + COL1_WIDTH
160#define COL2_WIDTH 10
161#define COL3_X COL2_X + COL2_WIDTH + RSC_SP_CTRL_GROUP_X
162#define COL3_WIDTH 150
163#define COL4_X COL3_X + COL3_WIDTH
164#define COL4_WIDTH RSC_CD_PUSHBUTTON_WIDTH + RSC_SP_CTRL_GROUP_X
165#define COL5_X COL4_X + COL4_WIDTH
166
167#define LIC_DLG_WIDTH COL5_X + RSC_CD_PUSHBUTTON_WIDTH + RSC_SP_DLG_INNERBORDER_RIGHT
168#define BODYWIDTH LIC_DLG_WIDTH - RSC_SP_DLG_INNERBORDER_LEFT - RSC_SP_DLG_INNERBORDER_RIGHT
169
170ModalDialog RID_DLG_LICENSE
171{
172	HelpID = "desktop:ModalDialog:RID_DLG_LICENSE" ;
173	Text [ en-US ] = "Extension Software License Agreement" ;
174
175	Size = MAP_APPFONT ( LIC_DLG_WIDTH, LIC_DLG_HEIGHT ) ;
176	OutputSize = TRUE ;
177	SVLook = TRUE ;
178	Moveable = TRUE ;
179	Closeable = TRUE ;
180	Sizeable = FALSE ;
181//	Hide = TRUE ;
182
183	MultiLineEdit ML_LICENSE
184	{
185		HelpID = "desktop:MultiLineEdit:RID_DLG_LICENSE:ML_LICENSE" ;
186		Pos = MAP_APPFONT ( COL1_X, ROW1_Y ) ;
187		Size = MAP_APPFONT ( BODYWIDTH, ROW1_HEIGHT ) ;
188		Border = TRUE ;
189		VScroll = TRUE ;
190		ReadOnly = TRUE ;
191	};
192
193	FixedText FT_LICENSE_HEADER
194	{
195		Pos = MAP_APPFONT ( COL1_X, ROW2_Y ) ;
196		Size = MAP_APPFONT ( COL1_WIDTH + COL2_WIDTH + COL3_WIDTH + COL4_WIDTH, ROW2_HEIGHT ) ;
197		WordBreak = TRUE ;
198		NoLabel = TRUE ;
199		Text [ en-US ] = "Please follow these steps to proceed with the installation of the extension:" ;
200	};
201	FixedText FT_LICENSE_BODY_1
202	{
203		Pos = MAP_APPFONT ( COL2_X, ROW3_Y ) ;
204		Size = MAP_APPFONT ( COL2_WIDTH, ROW3_HEIGHT ) ;
205		NoLabel = TRUE ;
206		Text [ en-US ] = "1." ;
207	};
208	// spans col3 + col4
209	FixedText FT_LICENSE_BODY_1_TXT
210	{
211		Pos = MAP_APPFONT ( COL3_X, ROW3_Y ) ;
212		Size = MAP_APPFONT ( COL3_WIDTH + COL4_WIDTH, ROW3_HEIGHT ) ;
213		WordBreak = TRUE ;
214		NoLabel = TRUE ;
215		Text [ en-US ] = "Read the complete License Agreement. Use the scroll bar or the \'Scroll Down\' button in this dialog to view the entire license text." ;
216	};
217	FixedText FT_LICENSE_BODY_2
218	{
219		Pos = MAP_APPFONT ( COL2_X, ROW4_Y ) ;
220		Size = MAP_APPFONT ( COL2_WIDTH, ROW4_HEIGHT ) ;
221		NoLabel = TRUE ;
222		Text [ en-US ] = "2." ;
223	};
224	FixedText FT_LICENSE_BODY_2_TXT
225	{
226		Pos = MAP_APPFONT ( COL3_X, ROW4_Y ) ;
227		Size = MAP_APPFONT ( COL3_WIDTH + COL4_WIDTH, ROW4_HEIGHT ) ;
228		WordBreak = TRUE ;
229		NoLabel = TRUE ;
230		Text [ en-US ] = "Accept the License Agreement for the extension by pressing the \'Accept\' button." ;
231
232	};
233	PushButton PB_LICENSE_DOWN
234	{
235		HelpID = "desktop:PushButton:RID_DLG_LICENSE:PB_LICENSE_DOWN" ;
236		TabStop = TRUE ;
237		Pos = MAP_APPFONT ( COL5_X, ROW3_Y ) ;
238		Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ;
239		Text [ en-US ] = "~Scroll Down" ;
240
241	};
242	FixedLine FL_LICENSE
243	{
244		Pos = MAP_APPFONT ( 0, ROW5_Y ) ;
245		Size = MAP_APPFONT ( LIC_DLG_WIDTH, ROW5_HEIGHT ) ;
246	};
247
248	FixedImage FI_LICENSE_ARROW1
249	{
250		Pos = MAP_APPFONT ( COL1_X, ROW3_Y ) ;
251		Size = ( 16, 16 ) ;
252		Fixed = Image
253		{
254			ImageBitmap = Bitmap { File = "sc06300.png"; } ;
255		};
256	};
257
258	FixedImage FI_LICENSE_ARROW2
259	{
260		Pos = MAP_APPFONT ( COL1_X, ROW4_Y ) ;
261		Size = ( 16, 16 ) ;
262		Fixed = Image
263		{
264			ImageBitmap = Bitmap { File = "sc06300.png"; } ;
265		};
266	};
267
268	Image IMG_LICENCE_ARROW_HC
269	{
270		ImageBitmap = Bitmap { File = "sch06300.png"; } ;
271	};
272
273	OKButton BTN_LICENSE_ACCEPT
274	{
275		Pos = MAP_APPFONT ( COL4_X, ROW6_Y ) ;
276		Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ;
277
278		TabStop = TRUE ;
279		DefButton = TRUE ;
280		Text [ en-US ] = "Accept" ;
281	};
282
283	CancelButton BTN_LICENSE_DECLINE
284	{
285		Pos = MAP_APPFONT ( COL5_X, ROW6_Y ) ;
286		Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ;
287		Text [ en-US ] = "Decline" ;
288		TabStop = TRUE ;
289	};
290};
291
292ModalDialog RID_DLG_SHOW_LICENSE
293{
294	Text [ en-US ] = "Extension Software License Agreement" ;
295	Size = MAP_APPFONT ( 300, 200 ) ;
296	OutputSize = TRUE ;
297	SVLook = TRUE ;
298	Moveable = TRUE ;
299	Closeable = TRUE ;
300	Sizeable = TRUE ;
301
302	MultiLineEdit ML_LICENSE
303	{
304		Pos = MAP_APPFONT ( 5, 5 ) ;
305		Size = MAP_APPFONT ( 300 - 10, 200 - 15 - RSC_CD_PUSHBUTTON_HEIGHT ) ;
306		Border = TRUE ;
307		VScroll = TRUE ;
308		ReadOnly = TRUE ;
309	};
310
311	OKButton RID_EM_BTN_CLOSE
312	{
313		TabStop = TRUE ;
314		DefButton = TRUE ;
315		Text [ en-US ] = "Close" ;
316		Pos = MAP_APPFONT ( (300 - RSC_CD_PUSHBUTTON_WIDTH) / 2, 200 - 5 - RSC_CD_PUSHBUTTON_HEIGHT ) ;
317		Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ;
318	};
319};
320
321
322WarningBox RID_WARNINGBOX_INSTALL_EXTENSION {
323	Buttons = WB_OK_CANCEL ;
324	DefButton = WB_DEF_OK ;
325	Message [en-US] = "You are about to install the extension \'%NAME\'.\n"
326					  "Click \'OK\' to proceed with the installation.\n"
327					  "Click \'Cancel\' to stop the installation." ;
328};
329
330WarningBox RID_WARNINGBOX_REMOVE_EXTENSION {
331	Buttons = WB_OK_CANCEL ;
332	DefButton = WB_DEF_CANCEL ;
333	Message [en-US] = "You are about to remove the extension \'%NAME\'.\n"
334					  "Click \'OK\' to remove the extension.\n"
335					  "Click \'Cancel\' to stop removing the extension." ;
336};
337
338WARNINGBOX RID_WARNINGBOX_REMOVE_SHARED_EXTENSION
339{
340	Buttons = WB_OK_CANCEL ;
341	DefButton = WB_DEF_CANCEL ;
342	Message [en-US] = "Make sure that no further users are working with the same "
343					  "%PRODUCTNAME, when changing shared extensions in a multi user environment.\n"
344					  "Click \'OK\' to remove the extension.\n"
345					  "Click \'Cancel\' to stop removing the extension.";
346};
347
348WARNINGBOX RID_WARNINGBOX_ENABLE_SHARED_EXTENSION
349{
350	Buttons = WB_OK_CANCEL ;
351	DefButton = WB_DEF_CANCEL ;
352	Message [en-US] = "Make sure that no further users are working with the same "
353					  "%PRODUCTNAME, when changing shared extensions in a multi user environment.\n"
354					  "Click \'OK\' to enable the extension.\n"
355					  "Click \'Cancel\' to stop enabling the extension." ;
356};
357
358WARNINGBOX RID_WARNINGBOX_DISABLE_SHARED_EXTENSION
359{
360	Buttons = WB_OK_CANCEL ;
361	DefButton = WB_DEF_CANCEL ;
362	Message [en-US] = "Make sure that no further users are working with the same "
363					  "%PRODUCTNAME, when changing shared extensions in a multi user environment.\n"
364					  "Click \'OK\' to disable the extension.\n"
365					  "Click \'Cancel\' to stop disabling the extension." ;
366};
367
368
369String RID_STR_UNSUPPORTED_PLATFORM
370{
371	Text [ en-US ] = "The extension \'%Name\' does not work on this computer." ;
372};
373
374// ********************************************************************** EOF
375