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 33#define LOCAL_WIDTH (60 * RSC_BS_CHARWIDTH) 34#define LOCAL_LIST_HEIGHT (7 * RSC_BS_CHARHEIGHT) 35#define LOCAL_BUTTON_WIDTH 80 36 37ModalDialog RID_DLG_UPDATEINSTALL { 38 HelpId = HID_DEPLOYMENT_GUI_UPDATEINSTALL; 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 + RSC_CD_CHECKBOX_HEIGHT + 44 RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT + 45 RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT + 46 RSC_SP_FLGR_SPACE_Y + LOCAL_LIST_HEIGHT + 47 RSC_SP_FLGR_SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + 48 RSC_SP_FLGR_SPACE_Y + RSC_CD_PUSHBUTTON_HEIGHT + 49 RSC_SP_DLG_INNERBORDER_BOTTOM)); 50 Text[en-US] = "Download and Installation"; 51 Moveable = TRUE; 52 Closeable = TRUE; 53 FixedText RID_DLG_UPDATE_INSTALL_DOWNLOADING { 54 Pos = MAP_APPFONT( 55 RSC_SP_DLG_INNERBORDER_LEFT, RSC_SP_DLG_INNERBORDER_TOP); 56 Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT); 57 Text[en-US] = "Downloading extensions..."; 58 NoLabel = TRUE; 59 }; 60 61 Window RID_DLG_UPDATE_INSTALL_STATUSBAR { 62 Pos = MAP_APPFONT( 63 RSC_SP_DLG_INNERBORDER_LEFT, 64 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + 65 RSC_SP_CTRL_DESC_Y)); 66 67 Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_CHECKBOX_HEIGHT); 68 Border = TRUE; 69 }; 70 71 FixedText RID_DLG_UPDATE_INSTALL_EXTENSION_NAME { 72 Pos = MAP_APPFONT( 73 RSC_SP_DLG_INNERBORDER_LEFT, 74 RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + 75 RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_DESC_Y); 76 Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT); 77 Text[en-US] = ""; 78 NoLabel = TRUE; 79 }; 80 81 FixedText RID_DLG_UPDATE_INSTALL_RESULTS { 82 Pos = MAP_APPFONT( 83 RSC_SP_DLG_INNERBORDER_LEFT, 84 RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + 85 RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT + 86 RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT + 87 RSC_SP_CTRL_Y); 88 Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT); 89 Text[en-US] = "Result"; 90 }; 91 92 MultiLineEdit RID_DLG_UPDATE_INSTALL_INFO { 93 HelpID = "desktop:MultiLineEdit:RID_DLG_UPDATEINSTALL:RID_DLG_UPDATE_INSTALL_INFO"; 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 + RSC_CD_CHECKBOX_HEIGHT + 98 RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT + 99 RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT + 100 RSC_SP_CTRL_DESC_Y); 101 102 Size = MAP_APPFONT(LOCAL_WIDTH, LOCAL_LIST_HEIGHT); 103 Border = TRUE; 104 ReadOnly = TRUE; 105 VScroll = TRUE; 106 TabStop = FALSE; 107 }; 108 109 FixedLine RID_DLG_UPDATE_INSTALL_LINE { 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 + RSC_CD_CHECKBOX_HEIGHT + 114 RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT + 115 RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT + 116 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT + 117 RSC_SP_FLGR_SPACE_Y); 118 119 Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT); 120 }; 121 122 OKButton RID_DLG_UPDATE_INSTALL_OK { 123 Disable = TRUE; 124 Pos = MAP_APPFONT( 125 RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH - LOCAL_BUTTON_WIDTH - 126 RSC_SP_CTRL_GROUP_X - RSC_CD_PUSHBUTTON_WIDTH, 127 RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + 128 RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT + 129 RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT + 130 RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT + 131 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT + 132 RSC_SP_FLGR_SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + 133 RSC_SP_FLGR_SPACE_Y); 134 135 136 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT); 137 Text[en-US] = "OK"; 138 }; 139 140 CancelButton RID_DLG_UPDATE_INSTALL_ABORT { 141 Pos = MAP_APPFONT( 142 RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH - LOCAL_BUTTON_WIDTH, 143 RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + 144 RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT + 145 RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT + 146 RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT + 147 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT + 148 RSC_SP_FLGR_SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + 149 RSC_SP_FLGR_SPACE_Y); 150 151 Size = MAP_APPFONT(LOCAL_BUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT); 152 Text[en-US] = "Cancel Update"; 153 DefButton = TRUE; 154 }; 155 156 HelpButton RID_DLG_UPDATE_INSTALL_HELP { 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 + RSC_CD_CHECKBOX_HEIGHT + 161 RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT + 162 RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT + 163 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT + 164 RSC_SP_FLGR_SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + 165 RSC_SP_FLGR_SPACE_Y); 166 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT); 167 }; 168 169 170 String RID_DLG_UPDATE_INSTALL_INSTALLING { 171 Text[en-US] = "Installing extensions..."; 172 }; 173 174 String RID_DLG_UPDATE_INSTALL_FINISHED { 175 Text[en-US] = "Installation finished"; 176 }; 177 178 String RID_DLG_UPDATE_INSTALL_NO_ERRORS { 179 Text[en-US] = "No errors."; 180 }; 181 182 String RID_DLG_UPDATE_INSTALL_ERROR_DOWNLOAD { 183 Text[en-US] = "Error while downloading extension %NAME. "; 184 }; 185 186 String RID_DLG_UPDATE_INSTALL_THIS_ERROR_OCCURRED { 187 Text[en-US] = "The error message is: "; 188 }; 189 190 191 String RID_DLG_UPDATE_INSTALL_ERROR_INSTALLATION { 192 Text[en-US] = "Error while installing extension %NAME. "; 193 }; 194 195 String RID_DLG_UPDATE_INSTALL_ERROR_LIC_DECLINED { 196 Text[en-US] = "The license agreement for extension %NAME was refused. "; 197 }; 198 199 String RID_DLG_UPDATE_INSTALL_EXTENSION_NOINSTALL{ 200 Text[en-US] = "The extension will not be installed."; 201 }; 202 203}; 204 205