1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
28 #include "svtools/controldims.hrc"
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
37 ModalDialog RID_DLG_UPDATE {
38 HelpID = HID_DEPLOYMENT_GUI_UPDATE;
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";
51 FixedText RID_DLG_UPDATE_CHECKING {
53 RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH * 2 / 3,
54 RSC_SP_DLG_INNERBORDER_TOP);
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...";
63 Control RID_DLG_UPDATE_THROBBER {
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);
69 FixedText RID_DLG_UPDATE_UPDATE {
72 RSC_SP_DLG_INNERBORDER_LEFT, RSC_SP_DLG_INNERBORDER_TOP);
74 LOCAL_WIDTH * 2 / 3 - RSC_SP_CTRL_GROUP_X, RSC_CD_FIXEDTEXT_HEIGHT);
75 Text[en-US] = "~Available extension updates";
77 Control RID_DLG_UPDATE_UPDATES {
78 HelpId = HID_DEPLOYMENT_GUI_UPDATE_AVAILABLE_UPDATES;
82 RSC_SP_DLG_INNERBORDER_LEFT,
83 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
85 Size = MAP_APPFONT(LOCAL_WIDTH, LOCAL_LIST_HEIGHT1);
88 CheckBox RID_DLG_UPDATE_ALL {
91 RSC_SP_DLG_INNERBORDER_LEFT,
92 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
93 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y));
94 Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_CHECKBOX_HEIGHT);
95 Text[en-US] = "~Show all updates";
97 FixedLine RID_DLG_UPDATE_DESCRIPTION {
100 RSC_SP_DLG_INNERBORDER_LEFT,
101 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
102 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y +
103 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y));
104 Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT);
105 Text[en-US] = "Description";
107 FixedText RID_DLG_UPDATE_PUBLISHER_LABEL
110 RSC_SP_DLG_INNERBORDER_LEFT,
111 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
112 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y +
113 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT +
114 RSC_SP_CTRL_DESC_Y));
115 Size = MAP_APPFONT(LABEL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT);
116 Text[en-US] = "Publisher:";
118 FixedText RID_DLG_UPDATE_PUBLISHER_LINK
120 HelpId = HID_DEPLOYMENT_GUI_UPDATE_PUBLISHER;
122 RSC_SP_DLG_INNERBORDER_LEFT + LABEL_WIDTH + RSC_SP_CTRL_DESC_X,
123 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
124 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y +
125 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT +
126 RSC_SP_CTRL_DESC_Y));
127 Size = MAP_APPFONT(LOCAL_WIDTH - LABEL_WIDTH - RSC_SP_CTRL_DESC_X, RSC_CD_FIXEDTEXT_HEIGHT);
129 FixedText RID_DLG_UPDATE_RELEASENOTES_LABEL
132 RSC_SP_DLG_INNERBORDER_LEFT,
133 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
134 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y +
135 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT +
136 RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y));
137 Size = MAP_APPFONT(LABEL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT);
138 Text[en-US] = "What is new:";
140 FixedText RID_DLG_UPDATE_RELEASENOTES_LINK
142 HelpId = HID_DEPLOYMENT_GUI_UPDATE_RELEASENOTES;
144 RSC_SP_DLG_INNERBORDER_LEFT + LABEL_WIDTH + RSC_SP_CTRL_DESC_X,
145 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
146 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y +
147 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT +
148 RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y));
149 Size = MAP_APPFONT(LOCAL_WIDTH - LABEL_WIDTH - RSC_SP_CTRL_DESC_X, RSC_CD_FIXEDTEXT_HEIGHT);
150 Text[en-US] = "Release Notes";
152 MultiLineEdit RID_DLG_UPDATE_DESCRIPTIONS {
156 RSC_SP_DLG_INNERBORDER_LEFT,
157 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
158 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y +
159 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT +
160 RSC_SP_CTRL_DESC_Y));
161 Size = MAP_APPFONT(LOCAL_WIDTH, LOCAL_LIST_HEIGHT2);
166 FixedLine RID_DLG_UPDATE_LINE {
168 RSC_SP_DLG_INNERBORDER_LEFT,
169 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
170 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y +
171 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT +
172 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT2 + RSC_SP_FLGR_SPACE_Y));
173 Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT);
175 HelpButton RID_DLG_UPDATE_HELP {
177 RSC_SP_DLG_INNERBORDER_LEFT,
178 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
179 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y +
180 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT +
181 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT2 + RSC_SP_FLGR_SPACE_Y +
182 RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_SPACE_Y));
183 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT);
185 PushButton RID_DLG_UPDATE_OK {
188 (RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH - RSC_CD_PUSHBUTTON_WIDTH -
189 RSC_SP_CTRL_GROUP_X - RSC_CD_PUSHBUTTON_WIDTH),
190 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
191 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y +
192 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT +
193 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT2 + RSC_SP_FLGR_SPACE_Y +
194 RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_SPACE_Y));
195 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT);
196 Text[en-US] = "~Install";
199 CancelButton RID_DLG_UPDATE_CANCEL {
201 RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH - RSC_CD_PUSHBUTTON_WIDTH,
202 (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
203 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y +
204 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT +
205 RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT2 + RSC_SP_FLGR_SPACE_Y +
206 RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_SPACE_Y));
207 Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT);
210 Image RID_DLG_UPDATE_NORMALALERT {
211 ImageBitmap = Bitmap {
212 File = "caution_12.png";
215 Image RID_DLG_UPDATE_HIGHCONTRASTALERT {
216 ImageBitmap = Bitmap {
217 File = "caution_12_h.png";
220 String RID_DLG_UPDATE_ERROR {
221 Text[en-US] = "Error";
223 String RID_DLG_UPDATE_NONE {
224 Text[en-US] = "No new updates are available.";
226 String RID_DLG_UPDATE_NOINSTALLABLE {
227 Text[en-US] = "No installable updates are available. To see all updates, mark the check box 'Show all updates'.";
229 String RID_DLG_UPDATE_FAILURE {
230 Text[en-US] = "An error occurred:";
232 String RID_DLG_UPDATE_UNKNOWNERROR {
233 Text[en-US] = "Unknown error.";
235 String RID_DLG_UPDATE_NODESCRIPTION {
236 Text[en-US] = "No descriptions available for this extension.";
238 String RID_DLG_UPDATE_NOINSTALL {
239 Text[en-US] = "The extension cannot be updated because:";
241 String RID_DLG_UPDATE_NODEPENDENCY {
242 Text[en-US] = "Required OpenOffice.org version doesn't match:";
244 String RID_DLG_UPDATE_NODEPENDENCY_CUR_VER {
245 Text[en-US] = "You have OpenOffice.org %VERSION";
247 String RID_DLG_UPDATE_NOPERMISSION {
248 Text[en-US] = "No write permission (shared extension).";
250 String RID_DLG_UPDATE_NOPERMISSION_VISTA {
251 Text[en-US] = "No write permission. %PRODUCTNAME needs to run as administrator.\n"
252 "Please follow these steps to update this shared extension:\n"
253 "1. Close Extension Manager dialog.\n"
254 "2. Exit %PRODUCTNAME.\n"
255 "3. Exit %PRODUCTNAME Quickstarter located in the tray area of Windows.\n"
256 "4. Run %PRODUCTNAME as administrator. In order to do this call the context menu of the %PRODUCTNAME program icon and choose \'Run as administrator\'.\n"
257 "5. Call the Extension Manager dialog and update this shared extension.\n";
259 String RID_DLG_UPDATE_BROWSERBASED {
260 Text[en-US] = "browser based update";
263 String RID_DLG_UPDATE_VERSION {
264 Text[en-US] = "Version";
268 WarningBox RID_WARNINGBOX_UPDATE_SHARED_EXTENSION
270 Buttons = WB_OK_CANCEL;
271 DefButton = WB_DEF_CANCEL;
272 Message[en-US] = "Make sure that no further users are working with the same "
273 "%PRODUCTNAME, when changing shared extensions in a multi user environment.\n"
274 "Click \'OK\' to update the extensions.\n"
275 "Click \'Cancel\' to stop updating the extensions.";