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 28#include "svtools/controldims.hrc" 29#include "dp_gui.hrc" 30 31ModelessDialog RID_DLG_EXTENSION_MANAGER 32{ 33 HelpId = HID_PACKAGE_MANAGER; 34 Text [ en-US ] = "Extension Manager"; 35 36 Size = MAP_APPFONT( 300, 200 ); 37 OutputSize = TRUE; 38 SVLook = TRUE; 39 Moveable = TRUE; 40 Closeable = TRUE; 41 Sizeable = TRUE; 42 Hide = TRUE; 43 44 PushButton RID_EM_BTN_ADD 45 { 46 HelpID = "desktop:PushButton:RID_DLG_EXTENSION_MANAGER:RID_EM_BTN_ADD"; 47 TabStop = TRUE; 48 Text [ en-US ] = "~Add..."; 49 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 50 }; 51 52 PushButton RID_EM_BTN_CHECK_UPDATES 53 { 54 HelpID = "desktop:PushButton:RID_DLG_EXTENSION_MANAGER:RID_EM_BTN_CHECK_UPDATES"; 55 TabStop = TRUE; 56 Text [ en-US ] = "Check for ~Updates..."; 57 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 58 }; 59 60 FixedText RID_EM_FT_GET_EXTENSIONS 61 { 62 NoLabel = TRUE; 63 TabStop = TRUE; 64 Text [ en-US ] = "Get more extensions online..."; 65 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ); 66 }; 67 68 FixedText RID_EM_FT_PROGRESS 69 { 70 Hide = TRUE; 71 Right = TRUE; 72 Text [ en-US ] = "Adding %EXTENSION_NAME"; 73 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ); 74 }; 75 76 CancelButton RID_EM_BTN_CANCEL 77 { 78 TabStop = TRUE; 79 Hide = TRUE; 80 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 81 }; 82 83 OKButton RID_EM_BTN_CLOSE 84 { 85 TabStop = TRUE; 86 DefButton = TRUE; 87 Text [ en-US ] = "Close"; 88 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 89 }; 90 91 HelpButton RID_EM_BTN_HELP 92 { 93 TabStop = TRUE; 94 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 95 }; 96}; 97 98ModalDialog RID_DLG_UPDATE_REQUIRED 99{ 100 HelpId = HID_PACKAGE_MANAGER_UPD_REQ; 101 Text [ en-US ] = "Extension Update Required"; 102 103 Size = MAP_APPFONT( 300, 200 ); 104 OutputSize = TRUE; 105 SVLook = TRUE; 106 Moveable = TRUE; 107 Closeable = TRUE; 108 Sizeable = TRUE; 109 Hide = TRUE; 110 111 FixedText RID_EM_FT_MSG 112 { 113 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."; 114 WordBreak = TRUE; 115 NoLabel = TRUE; 116 Size = MAP_APPFONT( 280, 3*RSC_BS_CHARHEIGHT ); 117 Pos = MAP_APPFONT( 5, 5 ); 118 }; 119 120 FixedText RID_EM_FT_PROGRESS 121 { 122 Hide = TRUE; 123 Right = TRUE; 124 Text [ en-US ] = "Adding %EXTENSION_NAME"; 125 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ); 126 }; 127 128 HelpButton RID_EM_BTN_HELP 129 { 130 TabStop = TRUE; 131 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 132 }; 133 134 PushButton RID_EM_BTN_CHECK_UPDATES 135 { 136 HelpID = "desktop:PushButton:RID_DLG_UPDATE_REQUIRED:RID_EM_BTN_CHECK_UPDATES"; 137 TabStop = TRUE; 138 Text [ en-US ] = "Check for ~Updates..."; 139 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 140 }; 141 142 PushButton RID_EM_BTN_CLOSE 143 { 144 HelpID = "desktop:PushButton:RID_DLG_UPDATE_REQUIRED:RID_EM_BTN_CLOSE"; 145 TabStop = TRUE; 146 DefButton = TRUE; 147 Text [ en-US ] = "Disable all"; 148 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 149 }; 150 151 CancelButton RID_EM_BTN_CANCEL 152 { 153 TabStop = TRUE; 154 Hide = TRUE; 155 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 156 }; 157 158}; 159 160Image RID_IMG_WARNING 161{ 162 ImageBitmap = Bitmap { File = "caution_16.png"; }; 163}; 164 165Image RID_IMG_WARNING_HC 166{ 167 ImageBitmap = Bitmap { File = "caution_16_h.png"; }; 168}; 169 170Image RID_IMG_LOCKED 171{ 172 ImageBitmap = Bitmap { File = "lock_16.png"; }; 173}; 174 175Image RID_IMG_LOCKED_HC 176{ 177 ImageBitmap = Bitmap { File = "lock_16_h.png"; }; 178}; 179 180Image RID_IMG_SHARED 181{ 182 ImageBitmap = Bitmap { File = "shared_16.png"; }; 183}; 184 185Image RID_IMG_SHARED_HC 186{ 187 ImageBitmap = Bitmap { File = "shared_16_h.png"; }; 188}; 189 190Image RID_IMG_EXTENSION 191{ 192 ImageBitmap = Bitmap { File = "extension_32.png"; }; 193}; 194 195Image RID_IMG_EXTENSION_HC 196{ 197 ImageBitmap = Bitmap { File = "extension_32_h.png"; }; 198}; 199 200QueryBox RID_QUERYBOX_INSTALL_FOR_ALL 201{ 202 Buttons = WB_YES_NO_CANCEL; 203 DefButton = WB_DEF_YES; 204 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"; 205}; 206 207 208// Dialog layout 209// --------------------------------------------------- 210// row 1 | multi line edit 211// --------------------------------------------------- 212// row 2 | fixed text 213// --------------------------------------------------- 214// row 3 | img | fixed text | fixed text | button 215// ---------------------------------------------------- 216// row 4 | img | fixed text | fixed text 217// --------------------------------------------------- 218// row 5 |fixed line 219// --------------------------------------------------- 220// row 6 | | |button | button 221// --------------------------------------------------- 222// | col 1 | col 2 | col3 | col4 | col5 223 224//To change the overall size of the multi line edit change 225//ROW1_HEIGHT and COL3_WIDTH 226 227#define ROW1_Y RSC_SP_DLG_INNERBORDER_TOP 228#define ROW1_HEIGHT 16*RSC_CD_FIXEDTEXT_HEIGHT 229#define ROW2_Y ROW1_Y+ROW1_HEIGHT+RSC_SP_CTRL_GROUP_Y 230#define ROW2_HEIGHT 2*RSC_CD_FIXEDTEXT_HEIGHT 231#define ROW3_Y ROW2_Y+ROW2_HEIGHT+RSC_SP_CTRL_GROUP_Y 232#define ROW3_HEIGHT 3*RSC_CD_FIXEDTEXT_HEIGHT 233#define ROW4_Y ROW3_Y+ROW3_HEIGHT+RSC_SP_CTRL_GROUP_Y 234#define ROW4_HEIGHT 3*RSC_CD_FIXEDTEXT_HEIGHT 235#define ROW5_Y ROW4_Y+ROW4_HEIGHT+RSC_SP_CTRL_GROUP_Y 236#define ROW5_HEIGHT RSC_CD_FIXEDTEXT_HEIGHT 237#define ROW6_Y ROW5_Y+ROW5_HEIGHT+RSC_SP_CTRL_GROUP_Y 238#define ROW6_HEIGHT RSC_CD_PUSHBUTTON_HEIGHT 239 240#define LIC_DLG_HEIGHT ROW6_Y+ROW6_HEIGHT+RSC_SP_DLG_INNERBORDER_BOTTOM 241 242#define COL1_X RSC_SP_DLG_INNERBORDER_LEFT 243#define IMG_ARROW_WIDTH 16 244#define COL1_WIDTH IMG_ARROW_WIDTH 245#define COL2_X COL1_X+COL1_WIDTH 246#define COL2_WIDTH 10 247#define COL3_X COL2_X+COL2_WIDTH+RSC_SP_CTRL_GROUP_X 248#define COL3_WIDTH 150 249#define COL4_X COL3_X+COL3_WIDTH 250#define COL4_WIDTH RSC_CD_PUSHBUTTON_WIDTH+RSC_SP_CTRL_GROUP_X 251#define COL5_X COL4_X+COL4_WIDTH 252 253#define LIC_DLG_WIDTH COL5_X+RSC_CD_PUSHBUTTON_WIDTH+RSC_SP_DLG_INNERBORDER_RIGHT 254#define BODYWIDTH LIC_DLG_WIDTH-RSC_SP_DLG_INNERBORDER_LEFT-RSC_SP_DLG_INNERBORDER_RIGHT 255 256 257