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#include "dp_gui.hrc"
26
27ModelessDialog RID_DLG_EXTENSION_MANAGER
28{
29    HelpId = HID_PACKAGE_MANAGER;
30    Text [ en-US ] = "Extension Manager";
31
32    Size = MAP_APPFONT( 300, 200 );
33    OutputSize = TRUE;
34    SVLook = TRUE;
35    Moveable = TRUE;
36    Closeable = TRUE;
37    Sizeable = TRUE;
38    Hide = TRUE;
39
40    PushButton RID_EM_BTN_ADD
41    {
42        HelpID = "desktop:PushButton:RID_DLG_EXTENSION_MANAGER:RID_EM_BTN_ADD";
43        TabStop = TRUE;
44        Text [ en-US ] = "~Add...";
45		Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
46    };
47
48    PushButton RID_EM_BTN_CHECK_UPDATES
49    {
50        HelpID = "desktop:PushButton:RID_DLG_EXTENSION_MANAGER:RID_EM_BTN_CHECK_UPDATES";
51        TabStop = TRUE;
52        Text [ en-US ] = "Check for ~Updates...";
53		Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
54    };
55
56    FixedText RID_EM_FT_GET_EXTENSIONS
57    {
58        NoLabel = TRUE;
59        TabStop = TRUE;
60        Text [ en-US ] = "Get more extensions online...";
61		Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT );
62    };
63
64    FixedText RID_EM_FT_PROGRESS
65    {
66        Hide = TRUE;
67        Right = TRUE;
68        Text [ en-US ] = "Adding %EXTENSION_NAME";
69		Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT );
70    };
71
72    CancelButton RID_EM_BTN_CANCEL
73    {
74        TabStop = TRUE;
75        Hide = TRUE;
76		Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
77    };
78
79    OKButton RID_EM_BTN_CLOSE
80    {
81        TabStop = TRUE;
82        DefButton = TRUE;
83        Text [ en-US ] = "Close";
84		Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
85    };
86
87    HelpButton RID_EM_BTN_HELP
88    {
89        TabStop = TRUE;
90		Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
91    };
92};
93
94ModalDialog RID_DLG_UPDATE_REQUIRED
95{
96    HelpId = HID_PACKAGE_MANAGER_UPD_REQ;
97    Text [ en-US ] = "Extension Update Required";
98
99    Size = MAP_APPFONT( 300, 200 );
100    OutputSize = TRUE;
101    SVLook = TRUE;
102    Moveable = TRUE;
103    Closeable = TRUE;
104    Sizeable = TRUE;
105    Hide = TRUE;
106
107    FixedText RID_EM_FT_MSG
108    {
109        Text [ en-US ] = "%PRODUCTNAME has been updated to a new version. Some installed %PRODUCTNAME extensions are not compatible with this version and need to be updated before they can be used.";
110        WordBreak = TRUE;
111        NoLabel = TRUE;
112        Size = MAP_APPFONT( 280, 3*RSC_BS_CHARHEIGHT );
113        Pos = MAP_APPFONT( 5, 5 );
114    };
115
116    FixedText RID_EM_FT_PROGRESS
117    {
118        Hide = TRUE;
119        Right = TRUE;
120        Text [ en-US ] = "Adding %EXTENSION_NAME";
121		Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT );
122    };
123
124    HelpButton RID_EM_BTN_HELP
125    {
126        TabStop = TRUE;
127		Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
128    };
129
130    PushButton RID_EM_BTN_CHECK_UPDATES
131    {
132        HelpID = "desktop:PushButton:RID_DLG_UPDATE_REQUIRED:RID_EM_BTN_CHECK_UPDATES";
133        TabStop = TRUE;
134        Text [ en-US ] = "Check for ~Updates...";
135		Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
136    };
137
138    PushButton RID_EM_BTN_CLOSE
139    {
140        HelpID = "desktop:PushButton:RID_DLG_UPDATE_REQUIRED:RID_EM_BTN_CLOSE";
141        TabStop = TRUE;
142        DefButton = TRUE;
143        Text [ en-US ] = "Disable all";
144		Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
145    };
146
147    CancelButton RID_EM_BTN_CANCEL
148    {
149        TabStop = TRUE;
150        Hide = TRUE;
151		Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
152    };
153
154};
155
156Image RID_IMG_WARNING
157{
158    ImageBitmap = Bitmap { File = "caution_16.png"; };
159};
160
161Image RID_IMG_WARNING_HC
162{
163    ImageBitmap = Bitmap { File = "caution_16_h.png"; };
164};
165
166Image RID_IMG_LOCKED
167{
168    ImageBitmap = Bitmap { File = "lock_16.png"; };
169};
170
171Image RID_IMG_LOCKED_HC
172{
173    ImageBitmap = Bitmap { File = "lock_16_h.png"; };
174};
175
176Image RID_IMG_SHARED
177{
178    ImageBitmap = Bitmap { File = "shared_16.png"; };
179};
180
181Image RID_IMG_SHARED_HC
182{
183    ImageBitmap = Bitmap { File = "shared_16_h.png"; };
184};
185
186Image RID_IMG_EXTENSION
187{
188    ImageBitmap = Bitmap { File = "extension_32.png"; };
189};
190
191Image RID_IMG_EXTENSION_HC
192{
193    ImageBitmap = Bitmap { File = "extension_32_h.png"; };
194};
195
196QueryBox RID_QUERYBOX_INSTALL_FOR_ALL
197{
198    Buttons = WB_YES_NO_CANCEL;
199    DefButton = WB_DEF_YES;
200    Message[en-US] = "Make sure that no further users are working with the same %PRODUCTNAME, when installing an extension for all users in a multi user environment.\n\nFor whom do you want to install the extension?\n";
201};
202
203
204// Dialog layout
205// ---------------------------------------------------
206//	row 1 | multi line edit
207// ---------------------------------------------------
208//  row 2 | fixed text
209// ---------------------------------------------------
210//  row 3 | img   | fixed text   | fixed text | button
211// ----------------------------------------------------
212//  row 4 | img   | fixed text   | fixed text
213// ---------------------------------------------------
214//  row 5 |fixed line
215// ---------------------------------------------------
216//  row 6 |       |       |button  | button
217// ---------------------------------------------------
218//        | col 1 | col 2 | col3   | col4      | col5
219
220//To change the overall size of the multi line edit change
221//ROW1_HEIGHT and COL3_WIDTH
222
223#define ROW1_Y RSC_SP_DLG_INNERBORDER_TOP
224#define ROW1_HEIGHT 16*RSC_CD_FIXEDTEXT_HEIGHT
225#define ROW2_Y  ROW1_Y+ROW1_HEIGHT+RSC_SP_CTRL_GROUP_Y
226#define ROW2_HEIGHT 2*RSC_CD_FIXEDTEXT_HEIGHT
227#define ROW3_Y ROW2_Y+ROW2_HEIGHT+RSC_SP_CTRL_GROUP_Y
228#define ROW3_HEIGHT 3*RSC_CD_FIXEDTEXT_HEIGHT
229#define ROW4_Y ROW3_Y+ROW3_HEIGHT+RSC_SP_CTRL_GROUP_Y
230#define ROW4_HEIGHT 3*RSC_CD_FIXEDTEXT_HEIGHT
231#define ROW5_Y ROW4_Y+ROW4_HEIGHT+RSC_SP_CTRL_GROUP_Y
232#define ROW5_HEIGHT RSC_CD_FIXEDTEXT_HEIGHT
233#define ROW6_Y ROW5_Y+ROW5_HEIGHT+RSC_SP_CTRL_GROUP_Y
234#define ROW6_HEIGHT RSC_CD_PUSHBUTTON_HEIGHT
235
236#define LIC_DLG_HEIGHT ROW6_Y+ROW6_HEIGHT+RSC_SP_DLG_INNERBORDER_BOTTOM
237
238#define COL1_X RSC_SP_DLG_INNERBORDER_LEFT
239#define IMG_ARROW_WIDTH 16
240#define COL1_WIDTH IMG_ARROW_WIDTH
241#define COL2_X COL1_X+COL1_WIDTH
242#define COL2_WIDTH 10
243#define COL3_X COL2_X+COL2_WIDTH+RSC_SP_CTRL_GROUP_X
244#define COL3_WIDTH 150
245#define COL4_X COL3_X+COL3_WIDTH
246#define COL4_WIDTH RSC_CD_PUSHBUTTON_WIDTH+RSC_SP_CTRL_GROUP_X
247#define COL5_X COL4_X+COL4_WIDTH
248
249#define LIC_DLG_WIDTH COL5_X+RSC_CD_PUSHBUTTON_WIDTH+RSC_SP_DLG_INNERBORDER_RIGHT
250#define BODYWIDTH LIC_DLG_WIDTH-RSC_SP_DLG_INNERBORDER_LEFT-RSC_SP_DLG_INNERBORDER_RIGHT
251
252
253