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