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