1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27#include "mailmergechildwindow.hrc"
28#include "dbui.hrc"
29#include "helpid.h"
30#include <cmdid.h>
31
32#define WIDTH  100
33#define HEIGHT 16
34
35#define WORKAROUND \
36    Text [ en-US ] = "Return to Mail Merge Wizard" ; \
37
38
39FloatingWindow DLG_MAILMERGECHILD\
40{
41	OutputSize = TRUE ;
42	SVLook = TRUE ;
43	Size = MAP_APPFONT ( WIDTH , HEIGHT ) ;
44	Moveable = TRUE ;
45	Closeable = FALSE ;
46	Sizeable = FALSE ;
47	Zoomable = TRUE ;
48    HelpID = HID_MAILMERGECHILD ;
49	Hide = TRUE ;
50    Text [ en-US ] = "Mail Merge Wizard";\
51    ToolBox TB_BACK\
52    {
53        MenuStrings = TRUE ;
54        SVLook = TRUE ;
55        ItemList =
56        {
57            ToolBoxItem\
58            {
59                Identifier = 1;
60                HelpID = HID_RETURN_TO_MAILMERGE ;
61                Left = TRUE;
62                WORKAROUND
63            };
64        };
65    };
66    #define IMGLIST1_IDS\
67        IdList = \
68        { \
69            FN_SHOW_ROOT; \
70        }; \
71        IdCount = 1
72
73    ImageList ILIST_TBX
74    {
75        Prefix = "sc";
76        MaskColor = IMAGE_MASK_COLOR;
77        IMGLIST1_IDS;
78    };
79
80    ImageList ILIST_TBX_HC
81    {
82        Prefix = "sch";
83        MaskColor = IMAGE_MASK_COLOR ;
84        IMGLIST1_IDS;
85    };
86};
87
88//FloatingWindow DLG_MM_SENDMAILS
89ModelessDialog /*ModalDialog*/ DLG_MM_SENDMAILS
90{
91    OutputSize = TRUE ;
92    SVLook = TRUE ;
93    HelpID = HID_MM_SENDMAILS;
94    Size = MAP_APPFONT ( 250 , 221 ) ;
95    Moveable = TRUE ;
96    Closeable = TRUE;
97
98    Text [ en-US ] = "Sending E-mail messages";
99
100    FixedLine  FL_STATUS
101    {
102        Pos = MAP_APPFONT ( 6 , 3 ) ;
103        Size = MAP_APPFONT ( 238 , 8 ) ;
104        Text[ en-US ] = "Connection status";
105    };
106    FixedText  FT_STATUS1
107    {
108        Pos = MAP_APPFONT ( 12 , 14 ) ;
109        Size = MAP_APPFONT ( 226 , 8 ) ;
110        Text[ en-US ] = "The connection to the outgoing mail server has been established";
111    };
112    String ST_SEND
113    {
114        Text[ en-US ] = "Sending e-mails...";
115    };
116    FixedLine  FL_TRANSFERSTATUS
117    {
118        Pos = MAP_APPFONT ( 6 , 28 ) ;
119        Size = MAP_APPFONT ( 238 , 8 ) ;
120        Text[ en-US ] = "Transfer status";
121    };
122    FixedText  FT_TRANSFERSTATUS
123    {
124        Pos = MAP_APPFONT ( 12, 39 ) ;
125        Size = MAP_APPFONT ( 110 , 8 ) ;
126        Text[ en-US ] = "%1 of %2 e-mails sent";
127    };
128    FixedText  FI_PAUSED
129    {
130        Pos = MAP_APPFONT ( 125, 39 ) ;
131        Size = MAP_APPFONT ( 100 , 8 ) ;
132        Hide = TRUE;
133        Text[ en-US ] = "Sending paused";
134    };
135    Window    PB_PROGRESS
136    {
137        Pos = MAP_APPFONT ( 12 , 50 ) ;
138        Size = MAP_APPFONT ( 226 , 14 ) ;
139        Border = TRUE;
140    };
141    FixedText  FT_ERRORSTATUS
142    {
143        Pos = MAP_APPFONT ( 12 , 67 ) ;
144        Size = MAP_APPFONT ( 226 , 8 ) ;
145        Text[ en-US ] = "E-mails not sent: %1";
146    };
147    PushButton PB_DETAILS
148    {
149        Pos = MAP_APPFONT ( 188 , 81 ) ;
150        Size = MAP_APPFONT ( 50 , 14 ) ;
151        Text[ en-US ] = "More >>";
152    };
153    String  ST_LESS
154    {
155        Text[ en-US ] = "<< Less";
156    };
157
158    Control LB_STATUS
159    {
160        Pos = MAP_APPFONT ( 12 , 101 ) ;
161        Size = MAP_APPFONT ( 226 , 80 ) ;
162        Border = TRUE;
163    };
164    FixedLine  FL_SEPARATOR
165    {
166        Pos = MAP_APPFONT ( 0 , 187 ) ;
167        Size = MAP_APPFONT ( 250 , 8 ) ;
168    };
169    PushButton PB_STOP
170    {
171        Pos = MAP_APPFONT ( 141 , 201 ) ;
172        Size = MAP_APPFONT ( 50 , 14 ) ;
173        Text[ en-US ] = "~Stop";
174    };
175    PushButton PB_CLOSE
176    {
177        Pos = MAP_APPFONT ( 194 , 201 ) ;
178        Size = MAP_APPFONT ( 50 , 14 ) ;
179        Text[ en-US ] = "C~lose";
180    };
181    String     ST_CONTINUE
182    {
183        Text[ en-US ] = "~Continue";
184    };
185    #define IMGLIST2_IDS\
186        IdList = \
187        { \
188            FN_FORMULA_CANCEL ;\
189            FN_FORMULA_APPLY     ;\
190        }; \
191        IdCount = 2
192
193    ImageList ILIST
194    {
195        Prefix = "sc";
196        MaskColor = IMAGE_MASK_COLOR;
197        IMGLIST2_IDS;
198    };
199
200    ImageList ILIST_HC
201    {
202        Prefix = "sch";
203        MaskColor = IMAGE_MASK_COLOR ;
204        IMGLIST2_IDS;
205    };
206    String ST_TASK
207    {
208        Text[ en-US ] = "Task";
209    };
210    String ST_STATUS
211    {
212        Text[ en-US ] = "Status";
213    };
214    String ST_SENDINGTO
215    {
216        Text[ en-US ] = "Sending to: %1";
217    };
218    String ST_COMPLETED
219    {
220        Text[ en-US ] = "Successfully sent";
221    };
222    String ST_FAILED
223    {
224        Text[ en-US ] = "Sending failed (invalid address)";
225    };
226    String ST_TERMINATEQUERY
227    {
228        Text[ en-US ] = "There are still e-mail messages in your %PRODUCTNAME Outbox.\nWould you like to exit anyway?";
229    };
230};
231
232ModalDialog DLG_MM_SENDWARNING
233{
234    OutputSize = TRUE ;
235    SVLook = TRUE ;
236    HelpID = HID_MM_SENDWARNING;
237    Size = MAP_APPFONT ( 240 , 137 ) ;
238    Moveable = TRUE ;
239
240    Text[en-US] = "E-Mails could not be sent";
241    FixedImage IM_WARNING
242    {
243        Pos = MAP_APPFONT ( 6 , 3 ) ;
244        Size = MAP_APPFONT ( 30 , 30 ) ;
245    };
246    FixedText FI_WARNING
247    {
248        Pos = MAP_APPFONT ( 40 , 6 ) ;
249        Size = MAP_APPFONT ( 170 , 30 ) ;
250        WordBreak = TRUE;
251        Text[ en-US ] = "The following error occurred:";
252    };
253    FixedText   FT_DETAILS
254    {
255        Pos = MAP_APPFONT (  40, 39 ) ;
256        Size = MAP_APPFONT (  174, 8 ) ;
257        Text[ en-US ] = "Detailed information";
258    };
259    MultiLineEdit ED_DETAILS
260    {
261        HelpID = "sw:MultiLineEdit:DLG_MM_SENDWARNING:ED_DETAILS";
262        Pos = MAP_APPFONT ( 40 , 50 ) ;
263        Size = MAP_APPFONT ( 194 , 50 ) ;
264        Border = TRUE;
265        Readonly = TRUE;
266    };
267    FixedLine FL_SEPARATOR
268    {
269        Pos = MAP_APPFONT ( 0 , 106 ) ;
270        Size = MAP_APPFONT ( 240 , 8 ) ;
271    };
272    OKButton PB_OK
273    {
274        Pos = MAP_APPFONT ( 95 ,  117) ;
275        Size = MAP_APPFONT ( 50 , 14 ) ;
276        DefButton = TRUE;
277    };
278};
279
280