Update ooo320-m1
[ooovba.git] / desktop / source / deployment / gui / dp_gui_updatedialog.src
blob03b5ee9f676d2afa59c3de5448cafcd22a603d56
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  * 
5  * Copyright 2008 by Sun Microsystems, Inc.
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  ************************************************************************/
28 #include "svtools/controldims.hrc"
30 #include "dp_gui.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;
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     Control 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);
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         Disable = TRUE;
90         Pos = MAP_APPFONT(
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";
96     };
97     FixedLine RID_DLG_UPDATE_DESCRIPTION {
98         Disable = TRUE;
99         Pos = MAP_APPFONT(
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";
106     };
107     FixedText RID_DLG_UPDATE_PUBLISHER_LABEL
108     {
109         Pos = MAP_APPFONT(
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:";
117     };
118     FixedText RID_DLG_UPDATE_PUBLISHER_LINK
119     {
120         HelpId = HID_DEPLOYMENT_GUI_UPDATE_PUBLISHER;
121         Pos = MAP_APPFONT(
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);
128     };
129     FixedText RID_DLG_UPDATE_RELEASENOTES_LABEL
130     {
131         Pos = MAP_APPFONT(
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:";
139     };
140     FixedText RID_DLG_UPDATE_RELEASENOTES_LINK
141     {
142         HelpId = HID_DEPLOYMENT_GUI_UPDATE_RELEASENOTES;
143         Pos = MAP_APPFONT(
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";
151     };
152     MultiLineEdit RID_DLG_UPDATE_DESCRIPTIONS {
153         Disable = TRUE;
154         Border = TRUE;
155         Pos = MAP_APPFONT(
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);
162         ReadOnly = TRUE;
163         VScroll = TRUE;
164         IgnoreTab = TRUE;
165     };
166     FixedLine RID_DLG_UPDATE_LINE {
167         Pos = MAP_APPFONT(
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);
174     };
175     HelpButton RID_DLG_UPDATE_HELP {
176         Pos = MAP_APPFONT(
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);
184     };
185     PushButton RID_DLG_UPDATE_OK {
186         Disable = TRUE;
187         Pos = MAP_APPFONT(
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";
197         DefButton = TRUE;
198     };
199     CancelButton RID_DLG_UPDATE_CANCEL {
200         Pos = MAP_APPFONT(
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);
208     };
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 all 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 descriptions available for this extension.";
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 OpenOffice.org version doesn't match:";
243     };
244     String RID_DLG_UPDATE_NODEPENDENCY_CUR_VER {
245         Text[en-US] = "You have OpenOffice.org %VERSION";
246     };
247     String RID_DLG_UPDATE_NOPERMISSION {
248         Text[en-US] = "No write permission (shared extension).";
249     };
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";
258     };
259     String RID_DLG_UPDATE_BROWSERBASED {
260         Text[en-US] = "browser based update";
261     };
262     
263     String RID_DLG_UPDATE_VERSION {
264         Text[en-US] = "Version";
265     };
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.";