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