1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir
28*cdf0e10cSrcweir#include "svtools/controldims.hrc"
29*cdf0e10cSrcweir
30*cdf0e10cSrcweir#include "dp_gui.hrc"
31*cdf0e10cSrcweir
32*cdf0e10cSrcweir
33*cdf0e10cSrcweir#define LOCAL_WIDTH (60 * RSC_BS_CHARWIDTH)
34*cdf0e10cSrcweir#define LOCAL_LIST_HEIGHT (7 * RSC_BS_CHARHEIGHT)
35*cdf0e10cSrcweir#define LOCAL_BUTTON_WIDTH 80
36*cdf0e10cSrcweir
37*cdf0e10cSrcweirModalDialog RID_DLG_UPDATEINSTALL {
38*cdf0e10cSrcweir    HelpId = HID_DEPLOYMENT_GUI_UPDATEINSTALL;
39*cdf0e10cSrcweir    Size = MAP_APPFONT(
40*cdf0e10cSrcweir        (RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH +
41*cdf0e10cSrcweir         RSC_SP_DLG_INNERBORDER_RIGHT),
42*cdf0e10cSrcweir        (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT  +
43*cdf0e10cSrcweir         RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
44*cdf0e10cSrcweir         RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
45*cdf0e10cSrcweir         RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT +
46*cdf0e10cSrcweir         RSC_SP_FLGR_SPACE_Y + LOCAL_LIST_HEIGHT +
47*cdf0e10cSrcweir         RSC_SP_FLGR_SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT +
48*cdf0e10cSrcweir         RSC_SP_FLGR_SPACE_Y + RSC_CD_PUSHBUTTON_HEIGHT +
49*cdf0e10cSrcweir         RSC_SP_DLG_INNERBORDER_BOTTOM));
50*cdf0e10cSrcweir    Text[en-US] = "Download and Installation";
51*cdf0e10cSrcweir    Moveable = TRUE;
52*cdf0e10cSrcweir    Closeable = TRUE;
53*cdf0e10cSrcweir    FixedText RID_DLG_UPDATE_INSTALL_DOWNLOADING {
54*cdf0e10cSrcweir        Pos = MAP_APPFONT(
55*cdf0e10cSrcweir            RSC_SP_DLG_INNERBORDER_LEFT, RSC_SP_DLG_INNERBORDER_TOP);
56*cdf0e10cSrcweir        Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT);
57*cdf0e10cSrcweir        Text[en-US] = "Downloading extensions...";
58*cdf0e10cSrcweir        NoLabel = TRUE;
59*cdf0e10cSrcweir    };
60*cdf0e10cSrcweir
61*cdf0e10cSrcweir    Window RID_DLG_UPDATE_INSTALL_STATUSBAR {
62*cdf0e10cSrcweir        Pos = MAP_APPFONT(
63*cdf0e10cSrcweir            RSC_SP_DLG_INNERBORDER_LEFT,
64*cdf0e10cSrcweir            (RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT  +
65*cdf0e10cSrcweir              RSC_SP_CTRL_DESC_Y));
66*cdf0e10cSrcweir
67*cdf0e10cSrcweir        Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_CHECKBOX_HEIGHT);
68*cdf0e10cSrcweir        Border = TRUE;
69*cdf0e10cSrcweir    };
70*cdf0e10cSrcweir
71*cdf0e10cSrcweir   FixedText RID_DLG_UPDATE_INSTALL_EXTENSION_NAME {
72*cdf0e10cSrcweir        Pos = MAP_APPFONT(
73*cdf0e10cSrcweir            RSC_SP_DLG_INNERBORDER_LEFT,
74*cdf0e10cSrcweir            RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT  +
75*cdf0e10cSrcweir              RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_DESC_Y);
76*cdf0e10cSrcweir        Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT);
77*cdf0e10cSrcweir        Text[en-US] = "";
78*cdf0e10cSrcweir        NoLabel = TRUE;
79*cdf0e10cSrcweir    };
80*cdf0e10cSrcweir
81*cdf0e10cSrcweir   FixedText RID_DLG_UPDATE_INSTALL_RESULTS {
82*cdf0e10cSrcweir        Pos = MAP_APPFONT(
83*cdf0e10cSrcweir            RSC_SP_DLG_INNERBORDER_LEFT,
84*cdf0e10cSrcweir            RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT  +
85*cdf0e10cSrcweir            RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
86*cdf0e10cSrcweir            RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
87*cdf0e10cSrcweir            RSC_SP_CTRL_Y);
88*cdf0e10cSrcweir        Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT);
89*cdf0e10cSrcweir        Text[en-US] = "Result";
90*cdf0e10cSrcweir    };
91*cdf0e10cSrcweir
92*cdf0e10cSrcweir    MultiLineEdit RID_DLG_UPDATE_INSTALL_INFO {
93*cdf0e10cSrcweir        HelpID = "desktop:MultiLineEdit:RID_DLG_UPDATEINSTALL:RID_DLG_UPDATE_INSTALL_INFO";
94*cdf0e10cSrcweir        Pos = MAP_APPFONT(
95*cdf0e10cSrcweir            RSC_SP_DLG_INNERBORDER_LEFT,
96*cdf0e10cSrcweir            RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT  +
97*cdf0e10cSrcweir            RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
98*cdf0e10cSrcweir            RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
99*cdf0e10cSrcweir            RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT +
100*cdf0e10cSrcweir            RSC_SP_CTRL_DESC_Y);
101*cdf0e10cSrcweir
102*cdf0e10cSrcweir        Size = MAP_APPFONT(LOCAL_WIDTH, LOCAL_LIST_HEIGHT);
103*cdf0e10cSrcweir        Border = TRUE;
104*cdf0e10cSrcweir        ReadOnly = TRUE;
105*cdf0e10cSrcweir        VScroll = TRUE;
106*cdf0e10cSrcweir        TabStop = FALSE;
107*cdf0e10cSrcweir    };
108*cdf0e10cSrcweir
109*cdf0e10cSrcweir    FixedLine RID_DLG_UPDATE_INSTALL_LINE {
110*cdf0e10cSrcweir        Pos = MAP_APPFONT(
111*cdf0e10cSrcweir            RSC_SP_DLG_INNERBORDER_LEFT,
112*cdf0e10cSrcweir            RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT  +
113*cdf0e10cSrcweir            RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
114*cdf0e10cSrcweir            RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
115*cdf0e10cSrcweir            RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT +
116*cdf0e10cSrcweir            RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT +
117*cdf0e10cSrcweir            RSC_SP_FLGR_SPACE_Y);
118*cdf0e10cSrcweir
119*cdf0e10cSrcweir        Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT);
120*cdf0e10cSrcweir    };
121*cdf0e10cSrcweir
122*cdf0e10cSrcweir    OKButton RID_DLG_UPDATE_INSTALL_OK {
123*cdf0e10cSrcweir        Disable = TRUE;
124*cdf0e10cSrcweir        Pos = MAP_APPFONT(
125*cdf0e10cSrcweir            RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH - LOCAL_BUTTON_WIDTH -
126*cdf0e10cSrcweir            RSC_SP_CTRL_GROUP_X - RSC_CD_PUSHBUTTON_WIDTH,
127*cdf0e10cSrcweir            RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT  +
128*cdf0e10cSrcweir            RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
129*cdf0e10cSrcweir            RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
130*cdf0e10cSrcweir            RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT +
131*cdf0e10cSrcweir            RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT +
132*cdf0e10cSrcweir            RSC_SP_FLGR_SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT +
133*cdf0e10cSrcweir            RSC_SP_FLGR_SPACE_Y);
134*cdf0e10cSrcweir
135*cdf0e10cSrcweir
136*cdf0e10cSrcweir        Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT);
137*cdf0e10cSrcweir        Text[en-US] = "OK";
138*cdf0e10cSrcweir    };
139*cdf0e10cSrcweir
140*cdf0e10cSrcweir    CancelButton RID_DLG_UPDATE_INSTALL_ABORT {
141*cdf0e10cSrcweir        Pos = MAP_APPFONT(
142*cdf0e10cSrcweir            RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH - LOCAL_BUTTON_WIDTH,
143*cdf0e10cSrcweir            RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT  +
144*cdf0e10cSrcweir            RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
145*cdf0e10cSrcweir            RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
146*cdf0e10cSrcweir            RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT +
147*cdf0e10cSrcweir            RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT +
148*cdf0e10cSrcweir            RSC_SP_FLGR_SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT +
149*cdf0e10cSrcweir            RSC_SP_FLGR_SPACE_Y);
150*cdf0e10cSrcweir
151*cdf0e10cSrcweir        Size = MAP_APPFONT(LOCAL_BUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT);
152*cdf0e10cSrcweir        Text[en-US] = "Cancel Update";
153*cdf0e10cSrcweir        DefButton = TRUE;
154*cdf0e10cSrcweir    };
155*cdf0e10cSrcweir
156*cdf0e10cSrcweir    HelpButton RID_DLG_UPDATE_INSTALL_HELP {
157*cdf0e10cSrcweir        Pos = MAP_APPFONT(
158*cdf0e10cSrcweir            RSC_SP_DLG_INNERBORDER_LEFT,
159*cdf0e10cSrcweir            RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT  +
160*cdf0e10cSrcweir            RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
161*cdf0e10cSrcweir            RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
162*cdf0e10cSrcweir            RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT +
163*cdf0e10cSrcweir            RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT +
164*cdf0e10cSrcweir            RSC_SP_FLGR_SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT +
165*cdf0e10cSrcweir            RSC_SP_FLGR_SPACE_Y);
166*cdf0e10cSrcweir        Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT);
167*cdf0e10cSrcweir    };
168*cdf0e10cSrcweir
169*cdf0e10cSrcweir
170*cdf0e10cSrcweir    String RID_DLG_UPDATE_INSTALL_INSTALLING {
171*cdf0e10cSrcweir        Text[en-US] = "Installing extensions...";
172*cdf0e10cSrcweir    };
173*cdf0e10cSrcweir
174*cdf0e10cSrcweir    String RID_DLG_UPDATE_INSTALL_FINISHED {
175*cdf0e10cSrcweir        Text[en-US] = "Installation finished";
176*cdf0e10cSrcweir    };
177*cdf0e10cSrcweir
178*cdf0e10cSrcweir    String RID_DLG_UPDATE_INSTALL_NO_ERRORS {
179*cdf0e10cSrcweir        Text[en-US] = "No errors.";
180*cdf0e10cSrcweir    };
181*cdf0e10cSrcweir
182*cdf0e10cSrcweir    String RID_DLG_UPDATE_INSTALL_ERROR_DOWNLOAD {
183*cdf0e10cSrcweir        Text[en-US] = "Error while downloading extension %NAME. ";
184*cdf0e10cSrcweir    };
185*cdf0e10cSrcweir
186*cdf0e10cSrcweir    String RID_DLG_UPDATE_INSTALL_THIS_ERROR_OCCURRED {
187*cdf0e10cSrcweir        Text[en-US] = "The error message is: ";
188*cdf0e10cSrcweir    };
189*cdf0e10cSrcweir
190*cdf0e10cSrcweir
191*cdf0e10cSrcweir    String RID_DLG_UPDATE_INSTALL_ERROR_INSTALLATION {
192*cdf0e10cSrcweir        Text[en-US] = "Error while installing extension %NAME. ";
193*cdf0e10cSrcweir    };
194*cdf0e10cSrcweir
195*cdf0e10cSrcweir    String RID_DLG_UPDATE_INSTALL_ERROR_LIC_DECLINED {
196*cdf0e10cSrcweir        Text[en-US] = "The license agreement for extension %NAME was refused. ";
197*cdf0e10cSrcweir    };
198*cdf0e10cSrcweir
199*cdf0e10cSrcweir    String RID_DLG_UPDATE_INSTALL_EXTENSION_NOINSTALL{
200*cdf0e10cSrcweir        Text[en-US] = "The extension will not be installed.";
201*cdf0e10cSrcweir    };
202*cdf0e10cSrcweir
203*cdf0e10cSrcweir};
204*cdf0e10cSrcweir
205