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