1*b1cdbd2cSJim Jagielski/**************************************************************
2*b1cdbd2cSJim Jagielski *
3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski *
11*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski *
13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski * under the License.
19*b1cdbd2cSJim Jagielski *
20*b1cdbd2cSJim Jagielski *************************************************************/
21*b1cdbd2cSJim Jagielski
22*b1cdbd2cSJim Jagielski
23*b1cdbd2cSJim Jagielski
24*b1cdbd2cSJim Jagielski#include "svtools/controldims.hrc"
25*b1cdbd2cSJim Jagielski
26*b1cdbd2cSJim Jagielski#include "dp_gui.hrc"
27*b1cdbd2cSJim Jagielski
28*b1cdbd2cSJim Jagielski
29*b1cdbd2cSJim Jagielski#define LOCAL_WIDTH (60 * RSC_BS_CHARWIDTH)
30*b1cdbd2cSJim Jagielski#define LOCAL_LIST_HEIGHT (7 * RSC_BS_CHARHEIGHT)
31*b1cdbd2cSJim Jagielski#define LOCAL_BUTTON_WIDTH 80
32*b1cdbd2cSJim Jagielski
33*b1cdbd2cSJim JagielskiModalDialog RID_DLG_UPDATEINSTALL {
34*b1cdbd2cSJim Jagielski    HelpId = HID_DEPLOYMENT_GUI_UPDATEINSTALL;
35*b1cdbd2cSJim Jagielski    Size = MAP_APPFONT(
36*b1cdbd2cSJim Jagielski        (RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH +
37*b1cdbd2cSJim Jagielski         RSC_SP_DLG_INNERBORDER_RIGHT),
38*b1cdbd2cSJim Jagielski        (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT  +
39*b1cdbd2cSJim Jagielski         RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
40*b1cdbd2cSJim Jagielski         RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
41*b1cdbd2cSJim Jagielski         RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT +
42*b1cdbd2cSJim Jagielski         RSC_SP_FLGR_SPACE_Y + LOCAL_LIST_HEIGHT +
43*b1cdbd2cSJim Jagielski         RSC_SP_FLGR_SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT +
44*b1cdbd2cSJim Jagielski         RSC_SP_FLGR_SPACE_Y + RSC_CD_PUSHBUTTON_HEIGHT +
45*b1cdbd2cSJim Jagielski         RSC_SP_DLG_INNERBORDER_BOTTOM));
46*b1cdbd2cSJim Jagielski    Text[en-US] = "Download and Installation";
47*b1cdbd2cSJim Jagielski    Moveable = TRUE;
48*b1cdbd2cSJim Jagielski    Closeable = TRUE;
49*b1cdbd2cSJim Jagielski    FixedText RID_DLG_UPDATE_INSTALL_DOWNLOADING {
50*b1cdbd2cSJim Jagielski        Pos = MAP_APPFONT(
51*b1cdbd2cSJim Jagielski            RSC_SP_DLG_INNERBORDER_LEFT, RSC_SP_DLG_INNERBORDER_TOP);
52*b1cdbd2cSJim Jagielski        Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT);
53*b1cdbd2cSJim Jagielski        Text[en-US] = "Downloading extensions...";
54*b1cdbd2cSJim Jagielski        NoLabel = TRUE;
55*b1cdbd2cSJim Jagielski    };
56*b1cdbd2cSJim Jagielski
57*b1cdbd2cSJim Jagielski    Window RID_DLG_UPDATE_INSTALL_STATUSBAR {
58*b1cdbd2cSJim Jagielski        Pos = MAP_APPFONT(
59*b1cdbd2cSJim Jagielski            RSC_SP_DLG_INNERBORDER_LEFT,
60*b1cdbd2cSJim Jagielski            (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT  +
61*b1cdbd2cSJim Jagielski              RSC_SP_CTRL_DESC_Y));
62*b1cdbd2cSJim Jagielski
63*b1cdbd2cSJim Jagielski        Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_CHECKBOX_HEIGHT);
64*b1cdbd2cSJim Jagielski        Border = TRUE;
65*b1cdbd2cSJim Jagielski    };
66*b1cdbd2cSJim Jagielski
67*b1cdbd2cSJim Jagielski   FixedText RID_DLG_UPDATE_INSTALL_EXTENSION_NAME {
68*b1cdbd2cSJim Jagielski        Pos = MAP_APPFONT(
69*b1cdbd2cSJim Jagielski            RSC_SP_DLG_INNERBORDER_LEFT,
70*b1cdbd2cSJim Jagielski            RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT  +
71*b1cdbd2cSJim Jagielski              RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_DESC_Y);
72*b1cdbd2cSJim Jagielski        Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT);
73*b1cdbd2cSJim Jagielski        Text[en-US] = "";
74*b1cdbd2cSJim Jagielski        NoLabel = TRUE;
75*b1cdbd2cSJim Jagielski    };
76*b1cdbd2cSJim Jagielski
77*b1cdbd2cSJim Jagielski   FixedText RID_DLG_UPDATE_INSTALL_RESULTS {
78*b1cdbd2cSJim Jagielski        Pos = MAP_APPFONT(
79*b1cdbd2cSJim Jagielski            RSC_SP_DLG_INNERBORDER_LEFT,
80*b1cdbd2cSJim Jagielski            RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT  +
81*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
82*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
83*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_Y);
84*b1cdbd2cSJim Jagielski        Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT);
85*b1cdbd2cSJim Jagielski        Text[en-US] = "Result";
86*b1cdbd2cSJim Jagielski    };
87*b1cdbd2cSJim Jagielski
88*b1cdbd2cSJim Jagielski    MultiLineEdit RID_DLG_UPDATE_INSTALL_INFO {
89*b1cdbd2cSJim Jagielski        HelpID = "desktop:MultiLineEdit:RID_DLG_UPDATEINSTALL:RID_DLG_UPDATE_INSTALL_INFO";
90*b1cdbd2cSJim Jagielski        Pos = MAP_APPFONT(
91*b1cdbd2cSJim Jagielski            RSC_SP_DLG_INNERBORDER_LEFT,
92*b1cdbd2cSJim Jagielski            RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT  +
93*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
94*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
95*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT +
96*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_DESC_Y);
97*b1cdbd2cSJim Jagielski
98*b1cdbd2cSJim Jagielski        Size = MAP_APPFONT(LOCAL_WIDTH, LOCAL_LIST_HEIGHT);
99*b1cdbd2cSJim Jagielski        Border = TRUE;
100*b1cdbd2cSJim Jagielski        ReadOnly = TRUE;
101*b1cdbd2cSJim Jagielski        VScroll = TRUE;
102*b1cdbd2cSJim Jagielski        TabStop = FALSE;
103*b1cdbd2cSJim Jagielski    };
104*b1cdbd2cSJim Jagielski
105*b1cdbd2cSJim Jagielski    FixedLine RID_DLG_UPDATE_INSTALL_LINE {
106*b1cdbd2cSJim Jagielski        Pos = MAP_APPFONT(
107*b1cdbd2cSJim Jagielski            RSC_SP_DLG_INNERBORDER_LEFT,
108*b1cdbd2cSJim Jagielski            RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT  +
109*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
110*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
111*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT +
112*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT +
113*b1cdbd2cSJim Jagielski            RSC_SP_FLGR_SPACE_Y);
114*b1cdbd2cSJim Jagielski
115*b1cdbd2cSJim Jagielski        Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT);
116*b1cdbd2cSJim Jagielski    };
117*b1cdbd2cSJim Jagielski
118*b1cdbd2cSJim Jagielski    OKButton RID_DLG_UPDATE_INSTALL_OK {
119*b1cdbd2cSJim Jagielski        Disable = TRUE;
120*b1cdbd2cSJim Jagielski        Pos = MAP_APPFONT(
121*b1cdbd2cSJim Jagielski            RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH - LOCAL_BUTTON_WIDTH -
122*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_GROUP_X - RSC_CD_PUSHBUTTON_WIDTH,
123*b1cdbd2cSJim Jagielski            RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT  +
124*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
125*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
126*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT +
127*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT +
128*b1cdbd2cSJim Jagielski            RSC_SP_FLGR_SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT +
129*b1cdbd2cSJim Jagielski            RSC_SP_FLGR_SPACE_Y);
130*b1cdbd2cSJim Jagielski
131*b1cdbd2cSJim Jagielski
132*b1cdbd2cSJim Jagielski        Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT);
133*b1cdbd2cSJim Jagielski        Text[en-US] = "OK";
134*b1cdbd2cSJim Jagielski    };
135*b1cdbd2cSJim Jagielski
136*b1cdbd2cSJim Jagielski    CancelButton RID_DLG_UPDATE_INSTALL_ABORT {
137*b1cdbd2cSJim Jagielski        Pos = MAP_APPFONT(
138*b1cdbd2cSJim Jagielski            RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH - LOCAL_BUTTON_WIDTH,
139*b1cdbd2cSJim Jagielski            RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT  +
140*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
141*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
142*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT +
143*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT +
144*b1cdbd2cSJim Jagielski            RSC_SP_FLGR_SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT +
145*b1cdbd2cSJim Jagielski            RSC_SP_FLGR_SPACE_Y);
146*b1cdbd2cSJim Jagielski
147*b1cdbd2cSJim Jagielski        Size = MAP_APPFONT(LOCAL_BUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT);
148*b1cdbd2cSJim Jagielski        Text[en-US] = "Cancel Update";
149*b1cdbd2cSJim Jagielski        DefButton = TRUE;
150*b1cdbd2cSJim Jagielski    };
151*b1cdbd2cSJim Jagielski
152*b1cdbd2cSJim Jagielski    HelpButton RID_DLG_UPDATE_INSTALL_HELP {
153*b1cdbd2cSJim Jagielski        Pos = MAP_APPFONT(
154*b1cdbd2cSJim Jagielski            RSC_SP_DLG_INNERBORDER_LEFT,
155*b1cdbd2cSJim Jagielski            RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT  +
156*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
157*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
158*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT +
159*b1cdbd2cSJim Jagielski            RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT +
160*b1cdbd2cSJim Jagielski            RSC_SP_FLGR_SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT +
161*b1cdbd2cSJim Jagielski            RSC_SP_FLGR_SPACE_Y);
162*b1cdbd2cSJim Jagielski        Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT);
163*b1cdbd2cSJim Jagielski    };
164*b1cdbd2cSJim Jagielski
165*b1cdbd2cSJim Jagielski
166*b1cdbd2cSJim Jagielski    String RID_DLG_UPDATE_INSTALL_INSTALLING {
167*b1cdbd2cSJim Jagielski        Text[en-US] = "Installing extensions...";
168*b1cdbd2cSJim Jagielski    };
169*b1cdbd2cSJim Jagielski
170*b1cdbd2cSJim Jagielski    String RID_DLG_UPDATE_INSTALL_FINISHED {
171*b1cdbd2cSJim Jagielski        Text[en-US] = "Installation finished";
172*b1cdbd2cSJim Jagielski    };
173*b1cdbd2cSJim Jagielski
174*b1cdbd2cSJim Jagielski    String RID_DLG_UPDATE_INSTALL_NO_ERRORS {
175*b1cdbd2cSJim Jagielski        Text[en-US] = "No errors.";
176*b1cdbd2cSJim Jagielski    };
177*b1cdbd2cSJim Jagielski
178*b1cdbd2cSJim Jagielski    String RID_DLG_UPDATE_INSTALL_ERROR_DOWNLOAD {
179*b1cdbd2cSJim Jagielski        Text[en-US] = "Error while downloading extension %NAME. ";
180*b1cdbd2cSJim Jagielski    };
181*b1cdbd2cSJim Jagielski
182*b1cdbd2cSJim Jagielski    String RID_DLG_UPDATE_INSTALL_THIS_ERROR_OCCURRED {
183*b1cdbd2cSJim Jagielski        Text[en-US] = "The error message is: ";
184*b1cdbd2cSJim Jagielski    };
185*b1cdbd2cSJim Jagielski
186*b1cdbd2cSJim Jagielski
187*b1cdbd2cSJim Jagielski    String RID_DLG_UPDATE_INSTALL_ERROR_INSTALLATION {
188*b1cdbd2cSJim Jagielski        Text[en-US] = "Error while installing extension %NAME. ";
189*b1cdbd2cSJim Jagielski    };
190*b1cdbd2cSJim Jagielski
191*b1cdbd2cSJim Jagielski    String RID_DLG_UPDATE_INSTALL_ERROR_LIC_DECLINED {
192*b1cdbd2cSJim Jagielski        Text[en-US] = "The license agreement for extension %NAME was refused. ";
193*b1cdbd2cSJim Jagielski    };
194*b1cdbd2cSJim Jagielski
195*b1cdbd2cSJim Jagielski    String RID_DLG_UPDATE_INSTALL_EXTENSION_NOINSTALL{
196*b1cdbd2cSJim Jagielski        Text[en-US] = "The extension will not be installed.";
197*b1cdbd2cSJim Jagielski    };
198*b1cdbd2cSJim Jagielski
199*b1cdbd2cSJim Jagielski};
200*b1cdbd2cSJim Jagielski
201