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