xref: /trunk/main/svtools/source/dialogs/addresstemplate.src (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
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
28#include <svtools/svtools.hrc>
29#include "addresstemplate.hrc"
30#include <svtools/controldims.hrc>
31
32#define FIELD_ROW_HEIGHT    17
33
34ModalDialog DLG_ADDRESSBOOKSOURCE
35{
36    HelpID = "svtools:ModalDialog:DLG_ADDRESSBOOKSOURCE";
37    SVLook = TRUE ;
38    OutputSize = TRUE ;
39    Size = MAP_APPFONT ( 300 , 88 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ;
40    Hide = TRUE ;
41    Moveable = TRUE ;
42    Text [ en-US ] = "Templates: Address Book Assignment";
43
44    FixedLine FL_DATASOURCEFRAME
45    {
46        Text [ en-US ] = "Address Book Source";
47        SVLook = TRUE ;
48        Pos = MAP_APPFONT ( 6 , 2 ) ;
49        Size = MAP_APPFONT ( 288 , RSC_CD_FIXEDLINE_HEIGHT ) ;
50    };
51    FixedText FT_DATASOURCE
52    {
53        Text [ en-US ] = "Data source";
54        SVLook = TRUE ;
55        Pos = MAP_APPFONT ( 12 , 15 ) ;
56        Size = MAP_APPFONT ( 90 , 10 ) ;
57
58        Group = TRUE;
59    };
60    ComboBox CB_DATASOURCE
61    {
62        HelpID = "svtools:ComboBox:DLG_ADDRESSBOOKSOURCE:CB_DATASOURCE";
63        SVLook = TRUE ;
64        Pos = MAP_APPFONT ( 105, 13 ) ;
65        Size = MAP_APPFONT ( 96, 55 ) ;
66
67        DropDown = TRUE;
68        TabStop = TRUE;
69    };
70    PushButton PB_ADMINISTATE_DATASOURCES
71    {
72        HelpID = "svtools:PushButton:DLG_ADDRESSBOOKSOURCE:PB_ADMINISTATE_DATASOURCES";
73        Text [ en-US ] = "~Address Data Source...";
74        SVLook = TRUE ;
75        Pos = MAP_APPFONT ( 204, 13 ) ;
76        Size = MAP_APPFONT ( 90, 14 ) ;
77        TabStop = TRUE;
78    };
79    FixedText FT_TABLE
80    {
81        Text [ en-US ] = "Table";
82        SVLook = TRUE ;
83        Pos = MAP_APPFONT ( 12 , 32 ) ;
84        Size = MAP_APPFONT ( 90 , 10 ) ;
85
86        Group = TRUE;
87    };
88    ComboBox CB_TABLE
89    {
90        HelpID = "svtools:ComboBox:DLG_ADDRESSBOOKSOURCE:CB_TABLE";
91        SVLook = TRUE ;
92        Pos = MAP_APPFONT ( 105, 30 ) ;
93        Size = MAP_APPFONT ( 96, 55 ) ;
94
95        DropDown = TRUE;
96        TabStop = TRUE;
97    };
98    FixedText FT_FIELDS
99    {
100        Text [ en-US ] = "Field assignment";
101        SVLook = TRUE ;
102        Pos = MAP_APPFONT ( 6, 30 + RSC_CD_DROPDOWN_HEIGHT + RSC_SP_CTRL_Y  ) ;
103        Size = MAP_APPFONT ( 248 , RSC_CD_FIXEDTEXT_HEIGHT ) ;
104    };
105    Window CT_BORDER
106    {
107        Border = TRUE ;
108        Pos = MAP_APPFONT ( 6, 30 + RSC_CD_DROPDOWN_HEIGHT + RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y ) ;
109        Size = MAP_APPFONT ( 288 , 5 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ;
110    };
111
112#define DECLARE_FIELD( row, column )    \
113        FixedText FT_FIELD_BASE + row * 2 + column  \
114        {   \
115            SVLook = TRUE ; \
116            Pos = MAP_APPFONT ( 3 + column * 134, RSC_SP_CTRL_GROUP_Y + 2 + row * FIELD_ROW_HEIGHT ) ;   \
117            Size = MAP_APPFONT ( 79 , 10 ) ; \
118            Group = TRUE;   \
119        };  \
120        ListBox LB_FIELD_BASE + row * 2 + column    \
121        {   \
122            SVLook = TRUE;  \
123            Pos = MAP_APPFONT ( 89 + column * 134, RSC_SP_CTRL_GROUP_Y + row * FIELD_ROW_HEIGHT ) ;  \
124            Size = MAP_APPFONT ( 42 , 14 ) ;    \
125            Border = TRUE;  \
126            DropDown = TRUE;    \
127            TabStop = TRUE;  \
128        }
129
130#if FIELD_PAIRS_VISIBLE > 0
131    DECLARE_FIELD( 0, 0 );
132    DECLARE_FIELD( 0, 1 );
133#endif
134#if FIELD_PAIRS_VISIBLE > 1
135    DECLARE_FIELD( 1, 0 );
136    DECLARE_FIELD( 1, 1 );
137#endif
138#if FIELD_PAIRS_VISIBLE > 2
139    DECLARE_FIELD( 3, 0 );
140    DECLARE_FIELD( 3, 1 );
141#endif
142#if FIELD_PAIRS_VISIBLE > 3
143    DECLARE_FIELD( 2, 0 );
144    DECLARE_FIELD( 2, 1 );
145#endif
146#if FIELD_PAIRS_VISIBLE > 4
147    DECLARE_FIELD( 4, 0 );
148    DECLARE_FIELD( 4, 1 );
149#endif
150#if FIELD_PAIRS_VISIBLE > 5
151    DECLARE_FIELD( 5, 0 );
152    DECLARE_FIELD( 5, 1 );
153#endif
154
155    ScrollBar SB_FIELDSCROLLER
156    {
157        SVLook = TRUE;
158        Pos = MAP_APPFONT ( 275, RSC_SP_CTRL_GROUP_Y ) ;
159        Size = MAP_APPFONT ( 8 , 16 - RSC_SP_CTRL_GROUP_Y + FIELD_ROW_HEIGHT * (FIELD_PAIRS_VISIBLE - 1) ) ;
160    };
161
162    OKButton PB_OK
163    {
164        SVLook = TRUE;
165        DefButton = TRUE;
166        Pos = MAP_APPFONT ( 137, 70 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ;
167        Size = MAP_APPFONT ( 50 , 14 ) ;
168    };
169
170    CancelButton PB_CANCEL
171    {
172        SVLook = TRUE;
173        Pos = MAP_APPFONT ( 190, 70 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ;
174        Size = MAP_APPFONT ( 50 , 14 ) ;
175    };
176
177    HelpButton PB_HELP
178    {
179        SVLook = TRUE;
180        Pos = MAP_APPFONT ( 244, 70 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ;
181        Size = MAP_APPFONT ( 50 , 14 ) ;
182    };
183
184    String STR_LOCAGICAL_FIELD_NAMES
185    {
186        Text = "FirstName;LastName;Company;Department;Street;Zip;City;State;Country;PhonePriv;PhoneComp;PhoneOffice;PhoneCell;PhoneOther;Pager;Fax;EMail;URL;Title;Position;Code;AddrForm;AddrFormMail;Id;CalendarURL;InviteParticipant;Note;Altfield1;Altfield2;Altfield3;Altfield4";
187        // no need to translate this
188        // the items in this string have to be in the same order as the STR_FIELD_* strings are added to the
189        // field label list of the dialog
190    };
191
192    String STR_NO_FIELD_SELECTION
193    {
194        Text [ en-US ] = "<none>";
195        };
196
197    String STR_FIELD_COMPANY
198    {
199        Text [ en-US ] = "Company";
200        };
201    String STR_FIELD_DEPARTMENT
202    {
203        Text [ en-US ] = "Department";
204        };
205    String STR_FIELD_FIRSTNAME
206    {
207        Text [ en-US ] = "First name";
208        };
209    String STR_FIELD_LASTNAME
210    {
211        Text [ en-US ] = "Last name";
212        };
213    String STR_FIELD_STREET
214    {
215        Text [ en-US ] = "Street";
216        };
217    String STR_FIELD_COUNTRY
218    {
219        Text [ en-US ] = "Country";
220        };
221    String STR_FIELD_ZIPCODE
222    {
223        Text [ en-US ] = "ZIP Code";
224        };
225    String STR_FIELD_CITY
226    {
227        Text [ en-US ] = "City";
228        };
229    String STR_FIELD_TITLE
230    {
231        Text [ en-US ] = "Title";
232        };
233    String STR_FIELD_POSITION
234    {
235        Text [ en-US ] = "Position";
236        };
237    String STR_FIELD_ADDRFORM
238    {
239        Text [ en-US ] = "Addr. Form";
240        };
241    String STR_FIELD_INITIALS
242    {
243        Text [ en-US ] = "Initials";
244        };
245    String STR_FIELD_SALUTATION
246    {
247        Text [ en-US ] = "Complimentary close";
248        };
249    String STR_FIELD_HOMETEL
250    {
251        Text [ en-US ] = "Tel: Home";
252        };
253    String STR_FIELD_WORKTEL
254    {
255        Text [ en-US ] = "Tel: Work";
256        };
257    String STR_FIELD_FAX
258    {
259        Text [ en-US ] = "FAX";
260        };
261    String STR_FIELD_EMAIL
262    {
263        Text [ en-US ] = "E-mail";
264        };
265    String STR_FIELD_URL
266    {
267        Text [ en-US ] = "URL";
268        };
269    String STR_FIELD_NOTE
270    {
271        Text [ en-US ] = "Note";
272        };
273    String STR_FIELD_USER1
274    {
275        Text [ en-US ] = "User 1";
276        };
277    String STR_FIELD_USER2
278    {
279        Text [ en-US ] = "User 2";
280        };
281    String STR_FIELD_USER3
282    {
283        Text [ en-US ] = "User 3";
284        };
285    String STR_FIELD_USER4
286    {
287        Text [ en-US ] = "User 4";
288        };
289
290    String STR_FIELD_ID
291    {
292        Text [ en-US ] = "ID";
293        };
294    String STR_FIELD_STATE
295    {
296        Text [ en-US ] = "State";
297        };
298    String STR_FIELD_OFFICETEL
299    {
300        Text [ en-US ] = "Tel: Office";
301        };
302    String STR_FIELD_PAGER
303    {
304        Text [ en-US ] = "Pager";
305        };
306    String STR_FIELD_MOBILE
307    {
308        Text [ en-US ] = "Mobile";
309        };
310    String STR_FIELD_TELOTHER
311    {
312        Text [ en-US ] = "Tel: Other";
313        };
314    String STR_FIELD_CALENDAR
315    {
316        Text [ en-US ] = "Calendar";
317        };
318    String STR_FIELD_INVITE
319    {
320        Text [ en-US ] = "Invite";
321        };
322};
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357