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