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