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