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