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 30#include "dp_gui.hrc" 31 32#define LOCAL_WIDTH (60 * RSC_BS_CHARWIDTH) 33#define LABEL_WIDTH (1 * RSC_BS_CHARWIDTH) 34#define LOCAL_LIST_HEIGHT1 (6 * RSC_BS_CHARHEIGHT) + 4 35#define LOCAL_LIST_HEIGHT2 (7 * RSC_BS_CHARHEIGHT) + 3 36 37ModalDialog RID_DLG_UPDATE { 38 HelpID = HID_DEPLOYMENT_GUI_UPDATE; 39 Size = MAP_APPFONT( 40 (RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH + 41 RSC_SP_DLG_INNERBORDER_RIGHT), 42 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + 43 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y + 44 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT + 45 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT2 + RSC_SP_FLGR_SPACE_Y + 46 RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_SPACE_Y + 47 RSC_CD_PUSHBUTTON_HEIGHT + RSC_SP_DLG_INNERBORDER_BOTTOM)); 48 Text[en-US] = "Extension Update"; 49 Moveable = TRUE; 50 Closeable = TRUE; 51 FixedText RID_DLG_UPDATE_CHECKING { 52 Pos = MAP_APPFONT( 53 RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH * 2 / 3, 54 RSC_SP_DLG_INNERBORDER_TOP); 55 Size = MAP_APPFONT( 56 (LOCAL_WIDTH - LOCAL_WIDTH * 2 / 3 - RSC_SP_CTRL_DESC_X - 57 RSC_CD_FIXEDTEXT_HEIGHT), 58 RSC_CD_FIXEDTEXT_HEIGHT); 59 Text[en-US] = "Checking..."; 60 Right = TRUE; 61 NoLabel = TRUE; 62 }; 63 FixedImage RID_DLG_UPDATE_THROBBER { 64 Pos = MAP_APPFONT( 65 RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH - RSC_CD_FIXEDTEXT_HEIGHT, 66 RSC_SP_DLG_INNERBORDER_TOP); 67 Size = MAP_APPFONT(RSC_CD_FIXEDTEXT_HEIGHT, RSC_CD_FIXEDTEXT_HEIGHT + 1); 68 }; 69 FixedText RID_DLG_UPDATE_UPDATE { 70 Disable = TRUE; 71 Pos = MAP_APPFONT( 72 RSC_SP_DLG_INNERBORDER_LEFT, RSC_SP_DLG_INNERBORDER_TOP); 73 Size = MAP_APPFONT( 74 LOCAL_WIDTH * 2 / 3 - RSC_SP_CTRL_GROUP_X, RSC_CD_FIXEDTEXT_HEIGHT); 75 Text[en-US] = "~Available extension updates"; 76 }; 77 Control RID_DLG_UPDATE_UPDATES { 78 HelpId = HID_DEPLOYMENT_GUI_UPDATE_AVAILABLE_UPDATES; 79 Disable = TRUE; 80 Border = TRUE; 81 Pos = MAP_APPFONT( 82 RSC_SP_DLG_INNERBORDER_LEFT, 83 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + 84 RSC_SP_CTRL_DESC_Y)); 85 Size = MAP_APPFONT(LOCAL_WIDTH, LOCAL_LIST_HEIGHT1); 86 TabStop = TRUE; 87 }; 88 CheckBox RID_DLG_UPDATE_ALL { 89 HelpID = "desktop:CheckBox:RID_DLG_UPDATE:RID_DLG_UPDATE_ALL"; 90 Disable = TRUE; 91 Pos = MAP_APPFONT( 92 RSC_SP_DLG_INNERBORDER_LEFT, 93 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + 94 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y)); 95 Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_CHECKBOX_HEIGHT); 96 Text[en-US] = "~Show all updates"; 97 }; 98 FixedLine RID_DLG_UPDATE_DESCRIPTION { 99 Disable = TRUE; 100 Pos = MAP_APPFONT( 101 RSC_SP_DLG_INNERBORDER_LEFT, 102 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + 103 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y + 104 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y)); 105 Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT); 106 Text[en-US] = "Description"; 107 }; 108 FixedText RID_DLG_UPDATE_PUBLISHER_LABEL 109 { 110 Pos = MAP_APPFONT( 111 RSC_SP_DLG_INNERBORDER_LEFT, 112 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + 113 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y + 114 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT + 115 RSC_SP_CTRL_DESC_Y)); 116 Size = MAP_APPFONT(LABEL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT); 117 Text[en-US] = "Publisher:"; 118 }; 119 FixedText RID_DLG_UPDATE_PUBLISHER_LINK 120 { 121 HelpId = HID_DEPLOYMENT_GUI_UPDATE_PUBLISHER; 122 Pos = MAP_APPFONT( 123 RSC_SP_DLG_INNERBORDER_LEFT + LABEL_WIDTH + RSC_SP_CTRL_DESC_X, 124 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + 125 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y + 126 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT + 127 RSC_SP_CTRL_DESC_Y)); 128 Size = MAP_APPFONT(LOCAL_WIDTH - LABEL_WIDTH - RSC_SP_CTRL_DESC_X, RSC_CD_FIXEDTEXT_HEIGHT); 129 }; 130 FixedText RID_DLG_UPDATE_RELEASENOTES_LABEL 131 { 132 Pos = MAP_APPFONT( 133 RSC_SP_DLG_INNERBORDER_LEFT, 134 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + 135 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y + 136 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT + 137 RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y)); 138 Size = MAP_APPFONT(LABEL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT); 139 Text[en-US] = "What is new:"; 140 }; 141 FixedText RID_DLG_UPDATE_RELEASENOTES_LINK 142 { 143 HelpId = HID_DEPLOYMENT_GUI_UPDATE_RELEASENOTES; 144 Pos = MAP_APPFONT( 145 RSC_SP_DLG_INNERBORDER_LEFT + LABEL_WIDTH + RSC_SP_CTRL_DESC_X, 146 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + 147 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y + 148 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT + 149 RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y)); 150 Size = MAP_APPFONT(LOCAL_WIDTH - LABEL_WIDTH - RSC_SP_CTRL_DESC_X, RSC_CD_FIXEDTEXT_HEIGHT); 151 Text[en-US] = "Release Notes"; 152 }; 153 MultiLineEdit RID_DLG_UPDATE_DESCRIPTIONS { 154 HelpID = "desktop:MultiLineEdit:RID_DLG_UPDATE:RID_DLG_UPDATE_DESCRIPTIONS"; 155 Disable = TRUE; 156 Border = TRUE; 157 Pos = MAP_APPFONT( 158 RSC_SP_DLG_INNERBORDER_LEFT, 159 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + 160 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y + 161 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT + 162 RSC_SP_CTRL_DESC_Y)); 163 Size = MAP_APPFONT(LOCAL_WIDTH, LOCAL_LIST_HEIGHT2); 164 ReadOnly = TRUE; 165 VScroll = TRUE; 166 IgnoreTab = TRUE; 167 }; 168 FixedLine RID_DLG_UPDATE_LINE { 169 Pos = MAP_APPFONT( 170 RSC_SP_DLG_INNERBORDER_LEFT, 171 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + 172 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y + 173 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT + 174 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT2 + RSC_SP_FLGR_SPACE_Y)); 175 Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT); 176 }; 177 HelpButton RID_DLG_UPDATE_HELP { 178 Pos = MAP_APPFONT( 179 RSC_SP_DLG_INNERBORDER_LEFT, 180 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + 181 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y + 182 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT + 183 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT2 + RSC_SP_FLGR_SPACE_Y + 184 RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_SPACE_Y)); 185 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT); 186 }; 187 PushButton RID_DLG_UPDATE_OK { 188 HelpID = "desktop:PushButton:RID_DLG_UPDATE:RID_DLG_UPDATE_OK"; 189 Disable = TRUE; 190 Pos = MAP_APPFONT( 191 (RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH - RSC_CD_PUSHBUTTON_WIDTH - 192 RSC_SP_CTRL_GROUP_X - RSC_CD_PUSHBUTTON_WIDTH), 193 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + 194 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y + 195 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT + 196 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT2 + RSC_SP_FLGR_SPACE_Y + 197 RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_SPACE_Y)); 198 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT); 199 Text[en-US] = "~Install"; 200 DefButton = TRUE; 201 }; 202 PushButton RID_DLG_UPDATE_CLOSE { 203 Pos = MAP_APPFONT( 204 RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH - RSC_CD_PUSHBUTTON_WIDTH, 205 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + 206 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y + 207 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT + 208 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT2 + RSC_SP_FLGR_SPACE_Y + 209 RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_SPACE_Y)); 210 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT); 211 Text[en-US] = "Close"; 212 }; 213 214 Image RID_DLG_UPDATE_NORMALALERT { 215 ImageBitmap = Bitmap { 216 File = "caution_12.png"; 217 }; 218 }; 219 Image RID_DLG_UPDATE_HIGHCONTRASTALERT { 220 ImageBitmap = Bitmap { 221 File = "caution_12_h.png"; 222 }; 223 }; 224 String RID_DLG_UPDATE_ERROR { 225 Text[en-US] = "Error"; 226 }; 227 String RID_DLG_UPDATE_NONE { 228 Text[en-US] = "No new updates are available."; 229 }; 230 String RID_DLG_UPDATE_NOINSTALLABLE { 231 Text[en-US] = "No installable updates are available. To see ignored or disabled updates, mark the check box 'Show all updates'."; 232 }; 233 String RID_DLG_UPDATE_FAILURE { 234 Text[en-US] = "An error occurred:"; 235 }; 236 String RID_DLG_UPDATE_UNKNOWNERROR { 237 Text[en-US] = "Unknown error."; 238 }; 239 String RID_DLG_UPDATE_NODESCRIPTION { 240 Text[en-US] = "No more details are available for this update."; 241 }; 242 String RID_DLG_UPDATE_NOINSTALL { 243 Text[en-US] = "The extension cannot be updated because:"; 244 }; 245 String RID_DLG_UPDATE_NODEPENDENCY { 246 Text[en-US] = "Required OpenOffice.org version doesn't match:"; 247 }; 248 String RID_DLG_UPDATE_NODEPENDENCY_CUR_VER { 249 Text[en-US] = "You have OpenOffice.org %VERSION"; 250 }; 251 String RID_DLG_UPDATE_BROWSERBASED { 252 Text[en-US] = "browser based update"; 253 }; 254 String RID_DLG_UPDATE_VERSION { 255 Text[en-US] = "Version"; 256 }; 257 String RID_DLG_UPDATE_IGNORE { 258 Text[en-US] = "Ignore this Update"; 259 }; 260 String RID_DLG_UPDATE_IGNORE_ALL { 261 Text[en-US] = "Ignore all Updates"; 262 }; 263 String RID_DLG_UPDATE_ENABLE { 264 Text[en-US] = "Enable Updates"; 265 }; 266 String RID_DLG_UPDATE_IGNORED_UPDATE { 267 Text[en-US] = "This update will be ignored.\n"; 268 }; 269}; 270 271WarningBox RID_WARNINGBOX_UPDATE_SHARED_EXTENSION 272{ 273 Buttons = WB_OK_CANCEL; 274 DefButton = WB_DEF_CANCEL; 275 Message[en-US] = "Make sure that no further users are working with the same " 276 "%PRODUCTNAME, when changing shared extensions in a multi user environment.\n" 277 "Click \'OK\' to update the extensions.\n" 278 "Click \'Cancel\' to stop updating the extensions."; 279}; 280 281