1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: dp_gui_dialog2.src,v $
11 * $Revision: 1.2.86.1 $
13 * This file is part of OpenOffice.org.
15 * OpenOffice.org is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU Lesser General Public License version 3
17 * only, as published by the Free Software Foundation.
19 * OpenOffice.org is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU Lesser General Public License version 3 for more details
23 * (a copy is included in the LICENSE file that accompanied this code).
25 * You should have received a copy of the GNU Lesser General Public License
26 * version 3 along with OpenOffice.org. If not, see
27 * <http://www.openoffice.org/license.html>
28 * for a copy of the LGPLv3 License.
30 ************************************************************************/
32 #include "svtools/controldims.hrc"
35 ModelessDialog RID_DLG_EXTENSION_MANAGER
37 HelpId = HID_PACKAGE_MANAGER;
38 Text [ en-US ] = "Extension Manager";
40 Size = MAP_APPFONT( 300, 200 );
48 PushButton RID_EM_BTN_ADD
51 Text [ en-US ] = "~Add...";
52 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
55 PushButton RID_EM_BTN_CHECK_UPDATES
58 Text [ en-US ] = "Check for ~Updates...";
59 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
62 FixedText RID_EM_FT_GET_EXTENSIONS
66 Text [ en-US ] = "Get more extensions online...";
67 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT );
70 FixedText RID_EM_FT_PROGRESS
74 Text [ en-US ] = "Adding %EXTENSION_NAME";
75 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT );
78 CancelButton RID_EM_BTN_CANCEL
82 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
85 OKButton RID_EM_BTN_CLOSE
89 Text [ en-US ] = "Close";
90 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
93 HelpButton RID_EM_BTN_HELP
96 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
100 ModalDialog RID_DLG_UPDATE_REQUIRED
102 HelpId = HID_PACKAGE_MANAGER_UPD_REQ;
103 Text [ en-US ] = "Extension Update Required";
105 Size = MAP_APPFONT( 300, 200 );
113 FixedText RID_EM_FT_MSG
115 Text [ en-US ] = "%PRODUCTNAME has been updated to a new version. Some installed %PRODUCTNAME extensions are not compatible with this version and need to be updated before they can be used.";
118 Size = MAP_APPFONT( 280, 3*RSC_BS_CHARHEIGHT );
119 Pos = MAP_APPFONT( 5, 5 );
122 FixedText RID_EM_FT_PROGRESS
126 Text [ en-US ] = "Adding %EXTENSION_NAME";
127 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT );
130 HelpButton RID_EM_BTN_HELP
133 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
136 PushButton RID_EM_BTN_CHECK_UPDATES
139 Text [ en-US ] = "Check for ~Updates...";
140 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
143 PushButton RID_EM_BTN_CLOSE
147 Text [ en-US ] = "Disable all";
148 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
151 CancelButton RID_EM_BTN_CANCEL
155 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
160 Image RID_IMG_WARNING
162 ImageBitmap = Bitmap { File = "caution_16.png"; };
165 Image RID_IMG_WARNING_HC
167 ImageBitmap = Bitmap { File = "caution_16_h.png"; };
172 ImageBitmap = Bitmap { File = "shared_16.png"; };
175 Image RID_IMG_LOCKED_HC
177 ImageBitmap = Bitmap { File = "shared_16_h.png"; };
180 Image RID_IMG_EXTENSION
182 ImageBitmap = Bitmap { File = "extension_32.png"; };
185 Image RID_IMG_EXTENSION_HC
187 ImageBitmap = Bitmap { File = "extension_32_h.png"; };
190 QueryBox RID_QUERYBOX_INSTALL_FOR_ALL
192 Buttons = WB_YES_NO_CANCEL;
193 DefButton = WB_DEF_YES;
194 Message[en-US] = "Make sure that no further users are working with the same %PRODUCTNAME, when installing an extension for all users in a multi user environment.\n\nFor whom do you want to install the extension?\n";
199 // ---------------------------------------------------
200 // row 1 | multi line edit
201 // ---------------------------------------------------
202 // row 2 | fixed text
203 // ---------------------------------------------------
204 // row 3 | img | fixed text | fixed text | button
205 // ----------------------------------------------------
206 // row 4 | img | fixed text | fixed text
207 // ---------------------------------------------------
209 // ---------------------------------------------------
210 // row 6 | | |button | button
211 // ---------------------------------------------------
212 // | col 1 | col 2 | col3 | col4 | col5
214 //To change the overall size of the multi line edit change
215 //ROW1_HEIGHT and COL3_WIDTH
217 #define ROW1_Y RSC_SP_DLG_INNERBORDER_TOP
218 #define ROW1_HEIGHT 16*RSC_CD_FIXEDTEXT_HEIGHT
219 #define ROW2_Y ROW1_Y+ROW1_HEIGHT+RSC_SP_CTRL_GROUP_Y
220 #define ROW2_HEIGHT 2*RSC_CD_FIXEDTEXT_HEIGHT
221 #define ROW3_Y ROW2_Y+ROW2_HEIGHT+RSC_SP_CTRL_GROUP_Y
222 #define ROW3_HEIGHT 3*RSC_CD_FIXEDTEXT_HEIGHT
223 #define ROW4_Y ROW3_Y+ROW3_HEIGHT+RSC_SP_CTRL_GROUP_Y
224 #define ROW4_HEIGHT 3*RSC_CD_FIXEDTEXT_HEIGHT
225 #define ROW5_Y ROW4_Y+ROW4_HEIGHT+RSC_SP_CTRL_GROUP_Y
226 #define ROW5_HEIGHT RSC_CD_FIXEDTEXT_HEIGHT
227 #define ROW6_Y ROW5_Y+ROW5_HEIGHT+RSC_SP_CTRL_GROUP_Y
228 #define ROW6_HEIGHT RSC_CD_PUSHBUTTON_HEIGHT
230 #define LIC_DLG_HEIGHT ROW6_Y+ROW6_HEIGHT+RSC_SP_DLG_INNERBORDER_BOTTOM
232 #define COL1_X RSC_SP_DLG_INNERBORDER_LEFT
233 #define IMG_ARROW_WIDTH 16
234 #define COL1_WIDTH IMG_ARROW_WIDTH
235 #define COL2_X COL1_X+COL1_WIDTH
236 #define COL2_WIDTH 10
237 #define COL3_X COL2_X+COL2_WIDTH+RSC_SP_CTRL_GROUP_X
238 #define COL3_WIDTH 150
239 #define COL4_X COL3_X+COL3_WIDTH
240 #define COL4_WIDTH RSC_CD_PUSHBUTTON_WIDTH+RSC_SP_CTRL_GROUP_X
241 #define COL5_X COL4_X+COL4_WIDTH
243 #define LIC_DLG_WIDTH COL5_X+RSC_CD_PUSHBUTTON_WIDTH+RSC_SP_DLG_INNERBORDER_RIGHT
244 #define BODYWIDTH LIC_DLG_WIDTH-RSC_SP_DLG_INNERBORDER_LEFT-RSC_SP_DLG_INNERBORDER_RIGHT