xref: /trunk/main/svtools/source/dialogs/addresstemplate.src (revision d6af8f9e10003c07768fbd3f77570ede3f562d2c)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22#include <svtools/svtools.hrc>
23#include "addresstemplate.hrc"
24#include <svtools/controldims.hrc>
25
26#define FIELD_ROW_HEIGHT 17
27
28ModalDialog DLG_ADDRESSBOOKSOURCE
29{
30    HelpID = "svtools:ModalDialog:DLG_ADDRESSBOOKSOURCE" ;
31    SVLook = TRUE ;
32    OutputSize = TRUE ;
33    Size = MAP_APPFONT ( 300, 88 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ;
34    Hide = TRUE ;
35    Moveable = TRUE ;
36    Text [ en-US ] = "Templates: Address Book Assignment" ;
37
38    FixedLine FL_DATASOURCEFRAME
39    {
40        Text [ en-US ] = "Address Book Source" ;
41        SVLook = TRUE ;
42        Pos = MAP_APPFONT ( 6, 2 ) ;
43        Size = MAP_APPFONT ( 288, RSC_CD_FIXEDLINE_HEIGHT ) ;
44    };
45    FixedText FT_DATASOURCE
46    {
47        Text [ en-US ] = "Data source" ;
48        SVLook = TRUE ;
49        Pos = MAP_APPFONT ( 12, 15 ) ;
50        Size = MAP_APPFONT ( 90, 10 ) ;
51
52        Group = TRUE ;
53    };
54    ComboBox CB_DATASOURCE
55    {
56        HelpID = "svtools:ComboBox:DLG_ADDRESSBOOKSOURCE:CB_DATASOURCE" ;
57        SVLook = TRUE ;
58        Pos = MAP_APPFONT ( 105, 13 ) ;
59        Size = MAP_APPFONT ( 96, 55 ) ;
60
61        DropDown = TRUE ;
62        TabStop = TRUE ;
63    };
64    PushButton PB_ADMINISTATE_DATASOURCES
65    {
66        HelpID = "svtools:PushButton:DLG_ADDRESSBOOKSOURCE:PB_ADMINISTATE_DATASOURCES" ;
67        Text [ en-US ] = "~Address Data Source..." ;
68        SVLook = TRUE ;
69        Pos = MAP_APPFONT ( 204, 13 ) ;
70        Size = MAP_APPFONT ( 90, 14 ) ;
71        TabStop = TRUE ;
72    };
73    FixedText FT_TABLE
74    {
75        Text [ en-US ] = "Table" ;
76        SVLook = TRUE ;
77        Pos = MAP_APPFONT ( 12, 32 ) ;
78        Size = MAP_APPFONT ( 90, 10 ) ;
79
80        Group = TRUE ;
81    };
82    ComboBox CB_TABLE
83    {
84        HelpID = "svtools:ComboBox:DLG_ADDRESSBOOKSOURCE:CB_TABLE" ;
85        SVLook = TRUE ;
86        Pos = MAP_APPFONT ( 105, 30 ) ;
87        Size = MAP_APPFONT ( 96, 55 ) ;
88
89        DropDown = TRUE ;
90        TabStop = TRUE ;
91    };
92    FixedText FT_FIELDS
93    {
94        Text [ en-US ] = "Field assignment" ;
95        SVLook = TRUE ;
96        Pos = MAP_APPFONT ( 6, 30 + RSC_CD_DROPDOWN_HEIGHT + RSC_SP_CTRL_Y ) ;
97        Size = MAP_APPFONT ( 248, RSC_CD_FIXEDTEXT_HEIGHT ) ;
98    };
99    Window CT_BORDER
100    {
101        Border = TRUE ;
102        Pos = MAP_APPFONT ( 6, 30 + RSC_CD_DROPDOWN_HEIGHT + RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y ) ;
103        Size = MAP_APPFONT ( 288, 5 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ;
104    };
105
106#define DECLARE_FIELD( row, column )    \
107        FixedText FT_FIELD_BASE + row * 2 + column  \
108        {   \
109            SVLook = TRUE ; \
110            Pos = MAP_APPFONT ( 3 + column * 134, RSC_SP_CTRL_GROUP_Y + 2 + row * FIELD_ROW_HEIGHT ) ;  \
111            Size = MAP_APPFONT ( 79, 10 ) ; \
112            Group = TRUE ;  \
113        };  \
114        ListBox LB_FIELD_BASE + row * 2 + column    \
115        {   \
116            SVLook = TRUE ; \
117            Pos = MAP_APPFONT ( 89 + column * 134, RSC_SP_CTRL_GROUP_Y + row * FIELD_ROW_HEIGHT ) ; \
118            Size = MAP_APPFONT ( 42, 14 ) ; \
119            Border = TRUE ; \
120            DropDown = TRUE ;   \
121            TabStop = TRUE ;    \
122        }
123
124#if FIELD_PAIRS_VISIBLE > 0
125    DECLARE_FIELD( 0, 0 ) ;
126    DECLARE_FIELD( 0, 1 ) ;
127#endif
128#if FIELD_PAIRS_VISIBLE > 1
129    DECLARE_FIELD( 1, 0 ) ;
130    DECLARE_FIELD( 1, 1 ) ;
131#endif
132#if FIELD_PAIRS_VISIBLE > 2
133    DECLARE_FIELD( 3, 0 ) ;
134    DECLARE_FIELD( 3, 1 ) ;
135#endif
136#if FIELD_PAIRS_VISIBLE > 3
137    DECLARE_FIELD( 2, 0 ) ;
138    DECLARE_FIELD( 2, 1 ) ;
139#endif
140#if FIELD_PAIRS_VISIBLE > 4
141    DECLARE_FIELD( 4, 0 ) ;
142    DECLARE_FIELD( 4, 1 ) ;
143#endif
144#if FIELD_PAIRS_VISIBLE > 5
145    DECLARE_FIELD( 5, 0 ) ;
146    DECLARE_FIELD( 5, 1 ) ;
147#endif
148
149    ScrollBar SB_FIELDSCROLLER
150    {
151        SVLook = TRUE ;
152        Pos = MAP_APPFONT ( 275, RSC_SP_CTRL_GROUP_Y ) ;
153        Size = MAP_APPFONT ( 8, 16 - RSC_SP_CTRL_GROUP_Y + FIELD_ROW_HEIGHT * (FIELD_PAIRS_VISIBLE - 1) ) ;
154    };
155
156    OKButton PB_OK
157    {
158        SVLook = TRUE ;
159        DefButton = TRUE ;
160        Pos = MAP_APPFONT ( 137, 70 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ;
161        Size = MAP_APPFONT ( 50, 14 ) ;
162    };
163
164    CancelButton PB_CANCEL
165    {
166        SVLook = TRUE ;
167        Pos = MAP_APPFONT ( 190, 70 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ;
168        Size = MAP_APPFONT ( 50, 14 ) ;
169    };
170
171    HelpButton PB_HELP
172    {
173        SVLook = TRUE ;
174        Pos = MAP_APPFONT ( 244, 70 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ;
175        Size = MAP_APPFONT ( 50, 14 ) ;
176    };
177
178    String STR_LOCAGICAL_FIELD_NAMES
179    {
180        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" ;
181        // no need to translate this
182        // the items in this string have to be in the same order as the STR_FIELD_* strings are added to the
183        // field label list of the dialog
184    };
185
186    String STR_NO_FIELD_SELECTION
187    {
188        Text [ en-US ] = "<none>" ;
189    };
190
191    String STR_FIELD_COMPANY
192    {
193        Text [ en-US ] = "Company" ;
194    };
195    String STR_FIELD_DEPARTMENT
196    {
197        Text [ en-US ] = "Department" ;
198    };
199    String STR_FIELD_FIRSTNAME
200    {
201        Text [ en-US ] = "First name" ;
202    };
203    String STR_FIELD_LASTNAME
204    {
205        Text [ en-US ] = "Last name" ;
206    };
207    String STR_FIELD_STREET
208    {
209        Text [ en-US ] = "Street" ;
210    };
211    String STR_FIELD_COUNTRY
212    {
213        Text [ en-US ] = "Country" ;
214    };
215    String STR_FIELD_ZIPCODE
216    {
217        Text [ en-US ] = "ZIP Code" ;
218    };
219    String STR_FIELD_CITY
220    {
221        Text [ en-US ] = "City" ;
222    };
223    String STR_FIELD_TITLE
224    {
225        Text [ en-US ] = "Title" ;
226    };
227    String STR_FIELD_POSITION
228    {
229        Text [ en-US ] = "Position" ;
230    };
231    String STR_FIELD_ADDRFORM
232    {
233        Text [ en-US ] = "Addr. Form" ;
234    };
235    String STR_FIELD_INITIALS
236    {
237        Text [ en-US ] = "Initials" ;
238    };
239    String STR_FIELD_SALUTATION
240    {
241        Text [ en-US ] = "Complimentary close" ;
242    };
243    String STR_FIELD_HOMETEL
244    {
245        Text [ en-US ] = "Tel: Home" ;
246    };
247    String STR_FIELD_WORKTEL
248    {
249        Text [ en-US ] = "Tel: Work" ;
250    };
251    String STR_FIELD_FAX
252    {
253        Text [ en-US ] = "Fax" ;
254    };
255    String STR_FIELD_EMAIL
256    {
257        Text [ en-US ] = "E-mail" ;
258    };
259    String STR_FIELD_URL
260    {
261        Text [ en-US ] = "URL" ;
262    };
263    String STR_FIELD_NOTE
264    {
265        Text [ en-US ] = "Note" ;
266    };
267    String STR_FIELD_USER1
268    {
269        Text [ en-US ] = "User 1" ;
270    };
271    String STR_FIELD_USER2
272    {
273        Text [ en-US ] = "User 2" ;
274    };
275    String STR_FIELD_USER3
276    {
277        Text [ en-US ] = "User 3" ;
278    };
279    String STR_FIELD_USER4
280    {
281        Text [ en-US ] = "User 4" ;
282    };
283
284    String STR_FIELD_ID
285    {
286        Text [ en-US ] = "ID" ;
287    };
288    String STR_FIELD_STATE
289    {
290        Text [ en-US ] = "State" ;
291    };
292    String STR_FIELD_OFFICETEL
293    {
294        Text [ en-US ] = "Tel: Office" ;
295    };
296    String STR_FIELD_PAGER
297    {
298        Text [ en-US ] = "Pager" ;
299    };
300    String STR_FIELD_MOBILE
301    {
302        Text [ en-US ] = "Mobile" ;
303    };
304    String STR_FIELD_TELOTHER
305    {
306        Text [ en-US ] = "Tel: Other" ;
307    };
308    String STR_FIELD_CALENDAR
309    {
310        Text [ en-US ] = "Calendar" ;
311    };
312    String STR_FIELD_INVITE
313    {
314        Text [ en-US ] = "Invite" ;
315    };
316};
317
318// ********************************************************************** EOF
319