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 <mmgreetingspage.hrc>
28#include <dbui.hrc>
29#include <helpid.h>
30
31#define _LB_FEMALECOLUMN                \
32        StringList [en-US]=             \
33        {                               \
34            < "< not available >" ; > ; \
35        };
36
37
38#define GREETINGS_BODY  \
39    CheckBox CB_PERSONALIZED                                                    \
40    {                                                                               \
41        Pos = MAP_APPFONT ( 12 + LEFT_OFFSET , 17 + TOP_OFFSET ) ;                  \
42        Size = MAP_APPFONT ( 226 , 10 ) ;                                           \
43        Text[ en-US ] = "Insert personalized salutation";                    \
44    };                                                                              \
45    FixedText   FT_FEMALE                                                           \
46    {                                                                               \
47        Pos = MAP_APPFONT ( 18 + LEFT_OFFSET , 32 + TOP_OFFSET ) ;                  \
48        Size = MAP_APPFONT ( 50 , 8 ) ;                                             \
49        Text[ en-US ] = "~Female";                                              \
50    };                                                                              \
51    ListBox     LB_FEMALE                                                           \
52    {                                                                               \
53        Pos = MAP_APPFONT ( 71 + LEFT_OFFSET , 30 + TOP_OFFSET ) ;                                             \
54        Size = MAP_APPFONT ( 121 , 50 ) ;                                           \
55        DropDown = TRUE;                                                            \
56        Border = TRUE;                                                              \
57    };                                                                              \
58    PushButton  PB_FEMALE                                                           \
59    {                                                                               \
60        Pos = MAP_APPFONT ( 198 + LEFT_OFFSET , 29 + TOP_OFFSET ) ;                                            \
61        Size = MAP_APPFONT ( 50 , 14 ) ;                                            \
62        Text[ en-US ] = "~New...";                                              \
63    };                                                                              \
64    FixedText   FT_MALE                                                             \
65    {                                                                               \
66        Pos = MAP_APPFONT ( 18 + LEFT_OFFSET , 49 + TOP_OFFSET ) ;                                             \
67        Size = MAP_APPFONT ( 50 , 8 ) ;                                             \
68        Text[ en-US ] = "~Male";                                                \
69    };                                                                              \
70    ListBox     LB_MALE                                                             \
71    {                                                                               \
72        Pos = MAP_APPFONT ( 71 + LEFT_OFFSET , 47 + TOP_OFFSET ) ;                                             \
73        Size = MAP_APPFONT ( 121 , 50 ) ;                                           \
74        DropDown = TRUE;                                                            \
75        Border = TRUE;                                                              \
76    };                                                                              \
77    PushButton  PB_MALE                                                             \
78    {                                                                               \
79        Pos = MAP_APPFONT ( 198 + LEFT_OFFSET , 48 + TOP_OFFSET ) ;                                            \
80        Size = MAP_APPFONT ( 50 , 14 ) ;                                            \
81        Text[ en-US ] = "N~ew...";                                              \
82    };                                                                              \
83    FixedText   FI_FEMALE                                                       \
84    {                                                                               \
85        Pos = MAP_APPFONT ( 18 + LEFT_OFFSET , 67 + TOP_OFFSET ) ;                                             \
86        Size = MAP_APPFONT ( 225 , 8 ) ;                                            \
87        Text[ en-US ] = "Address list field indicating a female recipient";     \
88    };                                                                              \
89    FixedText   FT_FEMALECOLUMN                                                     \
90    {                                                                               \
91        Pos = MAP_APPFONT ( 18 + LEFT_OFFSET , 80 + TOP_OFFSET ) ;                  \
92        Size = MAP_APPFONT ( 50 , 8 ) ;                                            \
93        Text[ en-US ] = "Field name";           \
94    };                                                                              \
95    ListBox LB_FEMALECOLUMN                                                         \
96    {                                                                               \
97        Pos = MAP_APPFONT ( 71 + LEFT_OFFSET , 78 + TOP_OFFSET ) ;                  \
98        Size = MAP_APPFONT ( 121 , 50 ) ;                                           \
99        DropDown = TRUE;                                                            \
100        Border = TRUE;                                                              \
101        _LB_FEMALECOLUMN                                                           \
102    };                                                                              \
103    FixedText   FT_FEMALEFIELD                                                       \
104    {                                                                               \
105        Pos = MAP_APPFONT ( 18 + LEFT_OFFSET , 95 + TOP_OFFSET ) ;                  \
106        Size = MAP_APPFONT ( 50 , 8 ) ;                                            \
107        Text[ en-US ] = "Field value";           \
108    };                                                                              \
109    ComboBox CB_FEMALEFIELD                                                         \
110    {                                                                               \
111        Pos = MAP_APPFONT ( 71 + LEFT_OFFSET , 93 + TOP_OFFSET ) ;                                             \
112        Size = MAP_APPFONT ( 121 , 50 ) ;                                           \
113        DropDown = TRUE;                                                            \
114        Border = TRUE;                                                              \
115    };                                                                              \
116    FixedText   FT_NEUTRAL                                                       \
117    {                                                                               \
118        Pos = MAP_APPFONT ( 12 + LEFT_OFFSET , 113 + TOP_OFFSET ) ;                                             \
119        Size = MAP_APPFONT ( 180 , 8 ) ;                                            \
120        Text[ en-US ] = "General salutation";           \
121    };                                                                              \
122    ComboBox     CB_NEUTRAL                                                         \
123    {                                                                               \
124        Pos = MAP_APPFONT ( 12 + LEFT_OFFSET , 124 + TOP_OFFSET ) ;                 \
125        Size = MAP_APPFONT ( 180 , 50 ) ;                                           \
126        DropDown = TRUE;                                                            \
127        Border = TRUE;                                                              \
128    };
129
130#define TOP_OFFSET 24
131#define LEFT_OFFSET 6
132
133TabPage DLG_MM_GREETINGS_PAGE
134{
135    HelpID = HID_MM_GREETINGSPAGE ;
136    Size = MAP_APPFONT ( 260 , 250 ) ;
137    Hide = TRUE ;
138
139    FixedText FI_HEADER
140    {
141        Pos = MAP_APPFONT ( 6 , 8 ) ;
142        Size = MAP_APPFONT ( 248 , 8 ) ;
143        Text [ en-US ] = "Create a salutation";
144    };
145    CheckBox    CB_GREETINGLINE
146    {
147        HelpID = "sw:CheckBox:DLG_MM_GREETINGS_PAGE:CB_GREETINGLINE";
148        Pos = MAP_APPFONT ( 12 , 27 );
149        Size = MAP_APPFONT ( 242 , 10 );
150        Text[ en-US ] = "This document should contain a salutation";
151    };
152    GREETINGS_BODY
153    FixedText       FI_PREVIEW
154    {
155        Pos = MAP_APPFONT ( 12 , 168 ) ;
156        Size = MAP_APPFONT ( 242 , 8 ) ;
157        Text[ en-US ] = "Preview";
158    };
159    Window          WIN_PREVIEW
160    {
161        Pos = MAP_APPFONT ( 12 , 179 );
162        Size = MAP_APPFONT ( 186 , 21 ) ;
163        Border = TRUE;
164    };
165    PushButton      PB_ASSIGN
166    {
167        HelpID = "sw:PushButton:DLG_MM_GREETINGS_PAGE:PB_ASSIGN";
168        Pos = MAP_APPFONT ( 204 , 179 ) ;
169        Size = MAP_APPFONT ( 50 , 14 ) ;
170        Text[ en-US ] = "~Match fields...";
171    };
172    FixedText       FI_DOCINDEX
173    {
174        Pos = MAP_APPFONT ( 121 , 206 ) ;
175        Size = MAP_APPFONT (  50, 8 ) ;
176        Right = TRUE;
177    };
178    ImageButton     IB_PREVSET
179    {
180        HelpID = "sw:ImageButton:DLG_MM_GREETINGS_PAGE:IB_PREVSET";
181        Pos = MAP_APPFONT ( 177 , 204 ) ;
182        Size = MAP_APPFONT ( 10 , 10 ) ;
183        SYMBOL = IMAGEBUTTON_PREV;
184        QuickHelpText[ en-US ] = "Preview Previous Salutation";
185    };
186    ImageButton     IB_NEXTSET
187    {
188        HelpID = "sw:ImageButton:DLG_MM_GREETINGS_PAGE:IB_NEXTSET";
189        Pos = MAP_APPFONT ( 188 , 204 ) ;
190        Size = MAP_APPFONT ( 10 , 10 ) ;
191        SYMBOL = IMAGEBUTTON_NEXT ;
192        QuickHelpText[ en-US ] = "Preview Next Salutation";
193    };
194    String STR_DOCUMENT
195    {
196        Text[ en-US ] = "Document: %1";
197    };
198};
199
200#undef TOP_OFFSET
201#undef LEFT_OFFSET
202
203#define TOP_OFFSET 0
204#define LEFT_OFFSET 0
205ModalDialog DLG_MM_MAILBODY
206{
207    HelpID = HID_MM_MAILBODY;
208    Size = MAP_APPFONT ( 254 , 238 ) ;
209    OutputSize = TRUE ;
210    SVLook = TRUE ;
211    Moveable = TRUE ;
212    Text [ en-US ] = "E-Mail Message";
213    CheckBox    CB_GREETINGLINE
214    {
215        HelpID = "sw:CheckBox:DLG_MM_MAILBODY:CB_GREETINGLINE";
216        Pos = MAP_APPFONT ( 6  , 3 ) ;
217        Size = MAP_APPFONT ( 242 , 10 ) ;
218        Text[ en-US ] = "This e-mail should contain a salutation";
219    };
220    GREETINGS_BODY
221    FixedText           FT_BODY
222    {
223        Pos = MAP_APPFONT ( 12 , 140 ) ;
224        Size = MAP_APPFONT ( 174 , 8 ) ;
225        Text[ en-US ] = "Write your message here";
226    };
227    MultiLineEdit MLE_BODY
228    {
229        HelpID = "sw:MultiLineEdit:DLG_MM_MAILBODY:MLE_BODY";
230        Pos = MAP_APPFONT ( 12,   151 ) ;
231        Size = MAP_APPFONT ( 180 , 50 ) ;
232        Border = TRUE;
233        TabStop = TRUE ;
234        Left = TRUE ;
235        VScroll = TRUE ;
236        HScroll = TRUE ;
237        IgnoreTab = TRUE;
238    };
239    FixedLine           FL_SEPARATOR
240    {
241        Pos = MAP_APPFONT ( 0 , 207 ) ;
242        Size = MAP_APPFONT ( 254 , 8 ) ;
243    };
244    OKButton            PB_OK
245    {
246        Pos = MAP_APPFONT ( 89, 218 ) ;
247        Size = MAP_APPFONT ( 50 , 14 ) ;
248    };
249    CancelButton        PB_CANCEL
250    {
251        Pos = MAP_APPFONT ( 142 , 218 ) ;
252        Size = MAP_APPFONT ( 50 , 14 ) ;
253    };
254    HelpButton          PB_HELP
255    {
256        Pos = MAP_APPFONT ( 198 , 218 ) ;
257        Size = MAP_APPFONT ( 50 , 14 ) ;
258    };
259};
260
261
262