xref: /trunk/main/desktop/source/deployment/gui/dp_gui_dialog2.src (revision f445b2b07b74d11c29d62260ffdefafb70649084)
1158fda6aSAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3158fda6aSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4158fda6aSAndrew Rist * or more contributor license agreements.  See the NOTICE file
5158fda6aSAndrew Rist * distributed with this work for additional information
6158fda6aSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7158fda6aSAndrew Rist * to you under the Apache License, Version 2.0 (the
8158fda6aSAndrew Rist * "License"); you may not use this file except in compliance
9158fda6aSAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
11158fda6aSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13158fda6aSAndrew Rist * Unless required by applicable law or agreed to in writing,
14158fda6aSAndrew Rist * software distributed under the License is distributed on an
15158fda6aSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16158fda6aSAndrew Rist * KIND, either express or implied.  See the License for the
17158fda6aSAndrew Rist * specific language governing permissions and limitations
18158fda6aSAndrew Rist * under the License.
19cdf0e10cSrcweir *
20158fda6aSAndrew Rist *************************************************************/
21158fda6aSAndrew Rist
22cdf0e10cSrcweir#include "svtools/controldims.hrc"
23cdf0e10cSrcweir#include "dp_gui.hrc"
24cdf0e10cSrcweir
25cdf0e10cSrcweirModelessDialog RID_DLG_EXTENSION_MANAGER
26cdf0e10cSrcweir{
27cdf0e10cSrcweir    HelpId = HID_PACKAGE_MANAGER;
28cdf0e10cSrcweir    Text [ en-US ] = "Extension Manager" ;
29cdf0e10cSrcweir
30*f445b2b0Smseidel    Size = MAP_APPFONT ( 350, 200 ) ;
31cdf0e10cSrcweir    OutputSize = TRUE ;
32cdf0e10cSrcweir    SVLook = TRUE ;
33cdf0e10cSrcweir    Moveable = TRUE ;
34cdf0e10cSrcweir    Closeable = TRUE ;
35cdf0e10cSrcweir    Sizeable = TRUE ;
36cdf0e10cSrcweir    Hide = TRUE ;
37cdf0e10cSrcweir
38cdf0e10cSrcweir    PushButton RID_EM_BTN_ADD
39cdf0e10cSrcweir    {
40cdf0e10cSrcweir        HelpID = "desktop:PushButton:RID_DLG_EXTENSION_MANAGER:RID_EM_BTN_ADD" ;
41cdf0e10cSrcweir        TabStop = TRUE ;
42cdf0e10cSrcweir        Text [ en-US ] = "~Add..." ;
43cdf0e10cSrcweir        Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ;
44cdf0e10cSrcweir    };
45cdf0e10cSrcweir
46cdf0e10cSrcweir    PushButton RID_EM_BTN_CHECK_UPDATES
47cdf0e10cSrcweir    {
48cdf0e10cSrcweir        HelpID = "desktop:PushButton:RID_DLG_EXTENSION_MANAGER:RID_EM_BTN_CHECK_UPDATES" ;
49cdf0e10cSrcweir        TabStop = TRUE ;
50cdf0e10cSrcweir        Text [ en-US ] = "Check for ~Updates..." ;
51cdf0e10cSrcweir        Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ;
52cdf0e10cSrcweir    };
53cdf0e10cSrcweir
54cdf0e10cSrcweir    FixedText RID_EM_FT_GET_EXTENSIONS
55cdf0e10cSrcweir    {
56cdf0e10cSrcweir        NoLabel = TRUE ;
57cdf0e10cSrcweir        TabStop = TRUE ;
5865a90f6bSmseidel        Text [ en-US ] = "More extensions online..." ;
59cdf0e10cSrcweir        Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
60cdf0e10cSrcweir    };
61cdf0e10cSrcweir
62cdf0e10cSrcweir    FixedText RID_EM_FT_PROGRESS
63cdf0e10cSrcweir    {
64cdf0e10cSrcweir        Hide = TRUE ;
65cdf0e10cSrcweir        Right = TRUE ;
66cdf0e10cSrcweir        Text [ en-US ] = "Adding %EXTENSION_NAME" ;
67cdf0e10cSrcweir        Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
68cdf0e10cSrcweir    };
69cdf0e10cSrcweir
70cdf0e10cSrcweir    CancelButton RID_EM_BTN_CANCEL
71cdf0e10cSrcweir    {
72cdf0e10cSrcweir        TabStop = TRUE ;
73cdf0e10cSrcweir        Hide = TRUE ;
74cdf0e10cSrcweir        Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ;
75cdf0e10cSrcweir    };
76cdf0e10cSrcweir
77cdf0e10cSrcweir    OKButton RID_EM_BTN_CLOSE
78cdf0e10cSrcweir    {
79cdf0e10cSrcweir        TabStop = TRUE ;
80cdf0e10cSrcweir        DefButton = TRUE ;
81cdf0e10cSrcweir        Text [ en-US ] = "Close" ;
82cdf0e10cSrcweir        Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ;
83cdf0e10cSrcweir    };
84cdf0e10cSrcweir
85cdf0e10cSrcweir    HelpButton RID_EM_BTN_HELP
86cdf0e10cSrcweir    {
87cdf0e10cSrcweir        TabStop = TRUE ;
88cdf0e10cSrcweir        Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ;
89cdf0e10cSrcweir    };
90cdf0e10cSrcweir};
91cdf0e10cSrcweir
92cdf0e10cSrcweirModalDialog RID_DLG_UPDATE_REQUIRED
93cdf0e10cSrcweir{
94cdf0e10cSrcweir    HelpId = HID_PACKAGE_MANAGER_UPD_REQ;
95cdf0e10cSrcweir    Text [ en-US ] = "Extension Update Required" ;
96cdf0e10cSrcweir
97cdf0e10cSrcweir    Size = MAP_APPFONT ( 300, 200 ) ;
98cdf0e10cSrcweir    OutputSize = TRUE ;
99cdf0e10cSrcweir    SVLook = TRUE ;
100cdf0e10cSrcweir    Moveable = TRUE ;
101cdf0e10cSrcweir    Closeable = TRUE ;
102cdf0e10cSrcweir    Sizeable = TRUE ;
103cdf0e10cSrcweir    Hide = TRUE ;
104cdf0e10cSrcweir
105cdf0e10cSrcweir    FixedText RID_EM_FT_MSG
106cdf0e10cSrcweir    {
107cdf0e10cSrcweir        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." ;
108cdf0e10cSrcweir        WordBreak = TRUE ;
109cdf0e10cSrcweir        NoLabel = TRUE ;
110cdf0e10cSrcweir        Size = MAP_APPFONT ( 280, 3 * RSC_BS_CHARHEIGHT ) ;
111cdf0e10cSrcweir        Pos = MAP_APPFONT ( 5, 5 ) ;
112cdf0e10cSrcweir    };
113cdf0e10cSrcweir
114cdf0e10cSrcweir    FixedText RID_EM_FT_PROGRESS
115cdf0e10cSrcweir    {
116cdf0e10cSrcweir        Hide = TRUE ;
117cdf0e10cSrcweir        Right = TRUE ;
118cdf0e10cSrcweir        Text [ en-US ] = "Adding %EXTENSION_NAME" ;
119cdf0e10cSrcweir        Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
120cdf0e10cSrcweir    };
121cdf0e10cSrcweir
122cdf0e10cSrcweir    HelpButton RID_EM_BTN_HELP
123cdf0e10cSrcweir    {
124cdf0e10cSrcweir        TabStop = TRUE ;
125cdf0e10cSrcweir        Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ;
126cdf0e10cSrcweir    };
127cdf0e10cSrcweir
128cdf0e10cSrcweir    PushButton RID_EM_BTN_CHECK_UPDATES
129cdf0e10cSrcweir    {
130cdf0e10cSrcweir        HelpID = "desktop:PushButton:RID_DLG_UPDATE_REQUIRED:RID_EM_BTN_CHECK_UPDATES" ;
131cdf0e10cSrcweir        TabStop = TRUE ;
132cdf0e10cSrcweir        Text [ en-US ] = "Check for ~Updates..." ;
133cdf0e10cSrcweir        Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ;
134cdf0e10cSrcweir    };
135cdf0e10cSrcweir
136cdf0e10cSrcweir    PushButton RID_EM_BTN_CLOSE
137cdf0e10cSrcweir    {
138cdf0e10cSrcweir        HelpID = "desktop:PushButton:RID_DLG_UPDATE_REQUIRED:RID_EM_BTN_CLOSE" ;
139cdf0e10cSrcweir        TabStop = TRUE ;
140cdf0e10cSrcweir        DefButton = TRUE ;
141cdf0e10cSrcweir        Text [ en-US ] = "Disable all" ;
142cdf0e10cSrcweir        Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ;
143cdf0e10cSrcweir    };
144cdf0e10cSrcweir
145cdf0e10cSrcweir    CancelButton RID_EM_BTN_CANCEL
146cdf0e10cSrcweir    {
147cdf0e10cSrcweir        TabStop = TRUE ;
148cdf0e10cSrcweir        Hide = TRUE ;
149cdf0e10cSrcweir        Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ;
150cdf0e10cSrcweir    };
151cdf0e10cSrcweir};
152cdf0e10cSrcweir
153cdf0e10cSrcweirImage RID_IMG_WARNING
154cdf0e10cSrcweir{
155cdf0e10cSrcweir    ImageBitmap = Bitmap { File = "caution_16.png" ; } ;
156cdf0e10cSrcweir};
157cdf0e10cSrcweir
158cdf0e10cSrcweirImage RID_IMG_WARNING_HC
159cdf0e10cSrcweir{
160cdf0e10cSrcweir    ImageBitmap = Bitmap { File = "caution_16_h.png" ; } ;
161cdf0e10cSrcweir};
162cdf0e10cSrcweir
163cdf0e10cSrcweirImage RID_IMG_LOCKED
164cdf0e10cSrcweir{
165cdf0e10cSrcweir    ImageBitmap = Bitmap { File = "lock_16.png" ; } ;
166cdf0e10cSrcweir};
167cdf0e10cSrcweir
168cdf0e10cSrcweirImage RID_IMG_LOCKED_HC
169cdf0e10cSrcweir{
170cdf0e10cSrcweir    ImageBitmap = Bitmap { File = "lock_16_h.png" ; } ;
171cdf0e10cSrcweir};
172cdf0e10cSrcweir
173cdf0e10cSrcweirImage RID_IMG_SHARED
174cdf0e10cSrcweir{
175cdf0e10cSrcweir    ImageBitmap = Bitmap { File = "shared_16.png" ; } ;
176cdf0e10cSrcweir};
177cdf0e10cSrcweir
178cdf0e10cSrcweirImage RID_IMG_SHARED_HC
179cdf0e10cSrcweir{
180cdf0e10cSrcweir    ImageBitmap = Bitmap { File = "shared_16_h.png" ; } ;
181cdf0e10cSrcweir};
182cdf0e10cSrcweir
183cdf0e10cSrcweirImage RID_IMG_EXTENSION
184cdf0e10cSrcweir{
185cdf0e10cSrcweir    ImageBitmap = Bitmap { File = "extension_32.png" ; } ;
186cdf0e10cSrcweir};
187cdf0e10cSrcweir
188cdf0e10cSrcweirImage RID_IMG_EXTENSION_HC
189cdf0e10cSrcweir{
190cdf0e10cSrcweir    ImageBitmap = Bitmap { File = "extension_32_h.png" ; } ;
191cdf0e10cSrcweir};
192cdf0e10cSrcweir
193cdf0e10cSrcweirQueryBox RID_QUERYBOX_INSTALL_FOR_ALL
194cdf0e10cSrcweir{
195cdf0e10cSrcweir    Buttons = WB_YES_NO_CANCEL ;
196cdf0e10cSrcweir    DefButton = WB_DEF_YES ;
197cdf0e10cSrcweir    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" ;
198cdf0e10cSrcweir};
199cdf0e10cSrcweir
200cdf0e10cSrcweir
201cdf0e10cSrcweir// Dialog layout
202cdf0e10cSrcweir// ---------------------------------------------------
203cdf0e10cSrcweir//  row 1 | multi line edit
204cdf0e10cSrcweir// ---------------------------------------------------
205cdf0e10cSrcweir//  row 2 | fixed text
206cdf0e10cSrcweir// ---------------------------------------------------
207cdf0e10cSrcweir//  row 3 | img   | fixed text   | fixed text | button
208cdf0e10cSrcweir// ----------------------------------------------------
209cdf0e10cSrcweir//  row 4 | img   | fixed text   | fixed text
210cdf0e10cSrcweir// ---------------------------------------------------
211cdf0e10cSrcweir//  row 5 |fixed line
212cdf0e10cSrcweir// ---------------------------------------------------
213cdf0e10cSrcweir//  row 6 |       |       |button  | button
214cdf0e10cSrcweir// ---------------------------------------------------
215cdf0e10cSrcweir//        | col 1 | col 2 | col3   | col4      | col5
216cdf0e10cSrcweir
217cdf0e10cSrcweir//To change the overall size of the multi line edit change
218cdf0e10cSrcweir//ROW1_HEIGHT and COL3_WIDTH
219cdf0e10cSrcweir
220cdf0e10cSrcweir#define ROW1_Y RSC_SP_DLG_INNERBORDER_TOP
221cdf0e10cSrcweir#define ROW1_HEIGHT 16*RSC_CD_FIXEDTEXT_HEIGHT
222cdf0e10cSrcweir#define ROW2_Y ROW1_Y+ROW1_HEIGHT+RSC_SP_CTRL_GROUP_Y
223cdf0e10cSrcweir#define ROW2_HEIGHT 2*RSC_CD_FIXEDTEXT_HEIGHT
224cdf0e10cSrcweir#define ROW3_Y ROW2_Y+ROW2_HEIGHT+RSC_SP_CTRL_GROUP_Y
225cdf0e10cSrcweir#define ROW3_HEIGHT 3*RSC_CD_FIXEDTEXT_HEIGHT
226cdf0e10cSrcweir#define ROW4_Y ROW3_Y+ROW3_HEIGHT+RSC_SP_CTRL_GROUP_Y
227cdf0e10cSrcweir#define ROW4_HEIGHT 3*RSC_CD_FIXEDTEXT_HEIGHT
228cdf0e10cSrcweir#define ROW5_Y ROW4_Y+ROW4_HEIGHT+RSC_SP_CTRL_GROUP_Y
229cdf0e10cSrcweir#define ROW5_HEIGHT RSC_CD_FIXEDTEXT_HEIGHT
230cdf0e10cSrcweir#define ROW6_Y ROW5_Y+ROW5_HEIGHT+RSC_SP_CTRL_GROUP_Y
231cdf0e10cSrcweir#define ROW6_HEIGHT RSC_CD_PUSHBUTTON_HEIGHT
232cdf0e10cSrcweir
233cdf0e10cSrcweir#define LIC_DLG_HEIGHT ROW6_Y+ROW6_HEIGHT+RSC_SP_DLG_INNERBORDER_BOTTOM
234cdf0e10cSrcweir
235cdf0e10cSrcweir#define COL1_X RSC_SP_DLG_INNERBORDER_LEFT
236cdf0e10cSrcweir#define IMG_ARROW_WIDTH 16
237cdf0e10cSrcweir#define COL1_WIDTH IMG_ARROW_WIDTH
238cdf0e10cSrcweir#define COL2_X COL1_X+COL1_WIDTH
239cdf0e10cSrcweir#define COL2_WIDTH 10
240cdf0e10cSrcweir#define COL3_X COL2_X+COL2_WIDTH+RSC_SP_CTRL_GROUP_X
241cdf0e10cSrcweir#define COL3_WIDTH 150
242cdf0e10cSrcweir#define COL4_X COL3_X+COL3_WIDTH
243cdf0e10cSrcweir#define COL4_WIDTH RSC_CD_PUSHBUTTON_WIDTH+RSC_SP_CTRL_GROUP_X
244cdf0e10cSrcweir#define COL5_X COL4_X+COL4_WIDTH
245cdf0e10cSrcweir
246cdf0e10cSrcweir#define LIC_DLG_WIDTH COL5_X+RSC_CD_PUSHBUTTON_WIDTH+RSC_SP_DLG_INNERBORDER_RIGHT
247cdf0e10cSrcweir#define BODYWIDTH LIC_DLG_WIDTH-RSC_SP_DLG_INNERBORDER_LEFT-RSC_SP_DLG_INNERBORDER_RIGHT
248cdf0e10cSrcweir
249466ce6efSmseidel// ********************************************************************** EOF
250