summaryrefslogtreecommitdiff
path: root/desktop/source/deployment/gui/dp_gui_dialog2.src
blob: b74a802ceb0f716341b158795e42dc082f4a966d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
/*************************************************************************
 *
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 * 
 * Copyright 2000, 2010 Oracle and/or its affiliates.
 *
 * OpenOffice.org - a multi-platform office productivity suite
 *
 * This file is part of OpenOffice.org.
 *
 * OpenOffice.org is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License version 3
 * only, as published by the Free Software Foundation.
 *
 * OpenOffice.org is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License version 3 for more details
 * (a copy is included in the LICENSE file that accompanied this code).
 *
 * You should have received a copy of the GNU Lesser General Public License
 * version 3 along with OpenOffice.org.  If not, see
 * <http://www.openoffice.org/license.html>
 * for a copy of the LGPLv3 License.
 *
 ************************************************************************/

#include "svtools/controldims.hrc"
#include "dp_gui.hrc"

ModelessDialog RID_DLG_EXTENSION_MANAGER
{
    HelpId = HID_PACKAGE_MANAGER;
    Text [ en-US ] = "Extension Manager";

    Size = MAP_APPFONT( 300, 200 );
    OutputSize = TRUE;
    SVLook = TRUE;
    Moveable = TRUE;
    Closeable = TRUE;
    Sizeable = TRUE;
    Hide = TRUE;

    PushButton RID_EM_BTN_ADD
    {
        TabStop = TRUE;
        Text [ en-US ] = "~Add...";
        Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
    };

    PushButton RID_EM_BTN_CHECK_UPDATES
    {
        TabStop = TRUE;
        Text [ en-US ] = "Check for ~Updates...";
        Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
    };

    FixedText RID_EM_FT_GET_EXTENSIONS
    {
        NoLabel = TRUE;
        TabStop = TRUE;
        Text [ en-US ] = "Get more extensions online...";
        Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT );
    };

    FixedText RID_EM_FT_PROGRESS
    {
        Hide = TRUE;
        Right = TRUE;
        Text [ en-US ] = "Adding %EXTENSION_NAME";
        Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT );
    };

    CancelButton RID_EM_BTN_CANCEL
    {
        TabStop = TRUE;
        Hide = TRUE;
        Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
    };

    OKButton RID_EM_BTN_CLOSE
    {
        TabStop = TRUE;
        DefButton = TRUE;
        Text [ en-US ] = "Close";
        Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
    };

    HelpButton RID_EM_BTN_HELP
    {
        TabStop = TRUE;
        Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
    };
};

ModalDialog RID_DLG_UPDATE_REQUIRED
{
    HelpId = HID_PACKAGE_MANAGER_UPD_REQ;
    Text [ en-US ] = "Extension Update Required";

    Size = MAP_APPFONT( 300, 200 );
    OutputSize = TRUE;
    SVLook = TRUE;
    Moveable = TRUE;
    Closeable = TRUE;
    Sizeable = TRUE;
    Hide = TRUE;

    FixedText RID_EM_FT_MSG
    {
        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.";
        WordBreak = TRUE;
        NoLabel = TRUE;
        Size = MAP_APPFONT( 280, 3*RSC_BS_CHARHEIGHT );
        Pos = MAP_APPFONT( 5, 5 );
    };

    FixedText RID_EM_FT_PROGRESS
    {
        Hide = TRUE;
        Right = TRUE;
        Text [ en-US ] = "Adding %EXTENSION_NAME";
        Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT );
    };

    HelpButton RID_EM_BTN_HELP
    {
        TabStop = TRUE;
        Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
    };

    PushButton RID_EM_BTN_CHECK_UPDATES
    {
        TabStop = TRUE;
        Text [ en-US ] = "Check for ~Updates...";
        Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
    };

    PushButton RID_EM_BTN_CLOSE
    {
        TabStop = TRUE;
        DefButton = TRUE;
        Text [ en-US ] = "Disable all";
        Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
    };

    CancelButton RID_EM_BTN_CANCEL
    {
        TabStop = TRUE;
        Hide = TRUE;
        Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
    };

};

Image RID_IMG_WARNING
{
    ImageBitmap = Bitmap { File = "caution_16.png"; };
};

Image RID_IMG_WARNING_HC
{
    ImageBitmap = Bitmap { File = "caution_16_h.png"; };
};

Image RID_IMG_LOCKED
{
    ImageBitmap = Bitmap { File = "lock_16.png"; };
};

Image RID_IMG_LOCKED_HC
{
    ImageBitmap = Bitmap { File = "lock_16_h.png"; };
};

Image RID_IMG_SHARED
{
    ImageBitmap = Bitmap { File = "shared_16.png"; };
};

Image RID_IMG_SHARED_HC
{
    ImageBitmap = Bitmap { File = "shared_16_h.png"; };
};

Image RID_IMG_EXTENSION
{
    ImageBitmap = Bitmap { File = "extension_32.png"; };
};

Image RID_IMG_EXTENSION_HC
{
    ImageBitmap = Bitmap { File = "extension_32_h.png"; };
};

QueryBox RID_QUERYBOX_INSTALL_FOR_ALL
{
    Buttons = WB_YES_NO_CANCEL;
    DefButton = WB_DEF_YES;
    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";
};


// Dialog layout
// ---------------------------------------------------
//	row 1 | multi line edit
// ---------------------------------------------------
//  row 2 | fixed text 
// ---------------------------------------------------
//  row 3 | img   | fixed text   | fixed text | button
// ----------------------------------------------------
//  row 4 | img   | fixed text   | fixed text
// ---------------------------------------------------
//  row 5 |fixed line
// ---------------------------------------------------
//  row 6 |       |       |button  | button 
// ---------------------------------------------------
//        | col 1 | col 2 | col3   | col4      | col5

//To change the overall size of the multi line edit change
//ROW1_HEIGHT and COL3_WIDTH

#define ROW1_Y RSC_SP_DLG_INNERBORDER_TOP
#define ROW1_HEIGHT 16*RSC_CD_FIXEDTEXT_HEIGHT
#define ROW2_Y  ROW1_Y+ROW1_HEIGHT+RSC_SP_CTRL_GROUP_Y
#define ROW2_HEIGHT 2*RSC_CD_FIXEDTEXT_HEIGHT
#define ROW3_Y ROW2_Y+ROW2_HEIGHT+RSC_SP_CTRL_GROUP_Y
#define ROW3_HEIGHT 3*RSC_CD_FIXEDTEXT_HEIGHT
#define ROW4_Y ROW3_Y+ROW3_HEIGHT+RSC_SP_CTRL_GROUP_Y
#define ROW4_HEIGHT 3*RSC_CD_FIXEDTEXT_HEIGHT
#define ROW5_Y ROW4_Y+ROW4_HEIGHT+RSC_SP_CTRL_GROUP_Y
#define ROW5_HEIGHT RSC_CD_FIXEDTEXT_HEIGHT
#define ROW6_Y ROW5_Y+ROW5_HEIGHT+RSC_SP_CTRL_GROUP_Y
#define ROW6_HEIGHT RSC_CD_PUSHBUTTON_HEIGHT

#define LIC_DLG_HEIGHT ROW6_Y+ROW6_HEIGHT+RSC_SP_DLG_INNERBORDER_BOTTOM

#define COL1_X RSC_SP_DLG_INNERBORDER_LEFT
#define IMG_ARROW_WIDTH 16
#define COL1_WIDTH IMG_ARROW_WIDTH
#define COL2_X COL1_X+COL1_WIDTH
#define COL2_WIDTH 10
#define COL3_X COL2_X+COL2_WIDTH+RSC_SP_CTRL_GROUP_X
#define COL3_WIDTH 150
#define COL4_X COL3_X+COL3_WIDTH
#define COL4_WIDTH RSC_CD_PUSHBUTTON_WIDTH+RSC_SP_CTRL_GROUP_X
#define COL5_X COL4_X+COL4_WIDTH

#define LIC_DLG_WIDTH COL5_X+RSC_CD_PUSHBUTTON_WIDTH+RSC_SP_DLG_INNERBORDER_RIGHT
#define BODYWIDTH LIC_DLG_WIDTH-RSC_SP_DLG_INNERBORDER_LEFT-RSC_SP_DLG_INNERBORDER_RIGHT