1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: addresstemplate.src,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
32 #include <svtools/svtools.hrc>
34 #ifndef _SVT_ADDRESSTEMPLATE_HRC_
35 #include "addresstemplate.hrc"
37 #ifndef _SVT_CONTROLDIMS_HRC_
38 #include "controldims.hrc"
41 #define FIELD_ROW_HEIGHT 17
43 ModalDialog DLG_ADDRESSBOOKSOURCE
47 Size = MAP_APPFONT ( 300 , 88 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ;
50 Text [ en-US ] = "Templates: Address Book Assignment";
52 FixedLine FL_DATASOURCEFRAME
54 Text [ en-US ] = "Address Book Source";
56 Pos = MAP_APPFONT ( 6 , 2 ) ;
57 Size = MAP_APPFONT ( 288 , RSC_CD_FIXEDLINE_HEIGHT ) ;
59 FixedText FT_DATASOURCE
61 Text [ en-US ] = "Data source";
63 Pos = MAP_APPFONT ( 12 , 15 ) ;
64 Size = MAP_APPFONT ( 90 , 10 ) ;
68 ComboBox CB_DATASOURCE
71 Pos = MAP_APPFONT ( 105, 13 ) ;
72 Size = MAP_APPFONT ( 96, 55 ) ;
77 PushButton PB_ADMINISTATE_DATASOURCES
79 Text [ en-US ] = "~Address Data Source...";
81 Pos = MAP_APPFONT ( 204, 13 ) ;
82 Size = MAP_APPFONT ( 90, 14 ) ;
87 Text [ en-US ] = "Table";
89 Pos = MAP_APPFONT ( 12 , 32 ) ;
90 Size = MAP_APPFONT ( 90 , 10 ) ;
97 Pos = MAP_APPFONT ( 105, 30 ) ;
98 Size = MAP_APPFONT ( 96, 55 ) ;
105 Text [ en-US ] = "Field assignment";
107 Pos = MAP_APPFONT ( 6, 30 + RSC_CD_DROPDOWN_HEIGHT + RSC_SP_CTRL_Y ) ;
108 Size = MAP_APPFONT ( 248 , RSC_CD_FIXEDTEXT_HEIGHT ) ;
113 Pos = MAP_APPFONT ( 6, 30 + RSC_CD_DROPDOWN_HEIGHT + RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y ) ;
114 Size = MAP_APPFONT ( 288 , 5 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ;
117 #define DECLARE_FIELD( row, column ) \
118 FixedText FT_FIELD_BASE + row * 2 + column \
121 Pos = MAP_APPFONT ( 3 + column * 134, RSC_SP_CTRL_GROUP_Y + 2 + row * FIELD_ROW_HEIGHT ) ; \
122 Size = MAP_APPFONT ( 79 , 10 ) ; \
125 ListBox LB_FIELD_BASE + row * 2 + column \
128 Pos = MAP_APPFONT ( 89 + column * 134, RSC_SP_CTRL_GROUP_Y + row * FIELD_ROW_HEIGHT ) ; \
129 Size = MAP_APPFONT ( 42 , 14 ) ; \
135 #if FIELD_PAIRS_VISIBLE > 0
136 DECLARE_FIELD( 0, 0 );
137 DECLARE_FIELD( 0, 1 );
139 #if FIELD_PAIRS_VISIBLE > 1
140 DECLARE_FIELD( 1, 0 );
141 DECLARE_FIELD( 1, 1 );
143 #if FIELD_PAIRS_VISIBLE > 2
144 DECLARE_FIELD( 3, 0 );
145 DECLARE_FIELD( 3, 1 );
147 #if FIELD_PAIRS_VISIBLE > 3
148 DECLARE_FIELD( 2, 0 );
149 DECLARE_FIELD( 2, 1 );
151 #if FIELD_PAIRS_VISIBLE > 4
152 DECLARE_FIELD( 4, 0 );
153 DECLARE_FIELD( 4, 1 );
155 #if FIELD_PAIRS_VISIBLE > 5
156 DECLARE_FIELD( 5, 0 );
157 DECLARE_FIELD( 5, 1 );
160 ScrollBar SB_FIELDSCROLLER
163 Pos = MAP_APPFONT ( 275, RSC_SP_CTRL_GROUP_Y ) ;
164 Size = MAP_APPFONT ( 8 , 16 - RSC_SP_CTRL_GROUP_Y + FIELD_ROW_HEIGHT * (FIELD_PAIRS_VISIBLE - 1) ) ;
171 Pos = MAP_APPFONT ( 137, 70 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ;
172 Size = MAP_APPFONT ( 50 , 14 ) ;
175 CancelButton PB_CANCEL
178 Pos = MAP_APPFONT ( 190, 70 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ;
179 Size = MAP_APPFONT ( 50 , 14 ) ;
185 Pos = MAP_APPFONT ( 244, 70 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ;
186 Size = MAP_APPFONT ( 50 , 14 ) ;
189 String STR_LOCAGICAL_FIELD_NAMES
191 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";
192 // no need to translate this
193 // the items in this string have to be in the same order as the STR_FIELD_* strings are added to the
194 // field label list of the dialog
197 String STR_NO_FIELD_SELECTION
199 Text [ en-US ] = "<none>";
202 String STR_FIELD_COMPANY
204 Text [ en-US ] = "Company";
206 String STR_FIELD_DEPARTMENT
208 Text [ en-US ] = "Department";
210 String STR_FIELD_FIRSTNAME
212 Text [ en-US ] = "First name";
214 String STR_FIELD_LASTNAME
216 Text [ en-US ] = "Last name";
218 String STR_FIELD_STREET
220 Text [ en-US ] = "Street";
222 String STR_FIELD_COUNTRY
224 Text [ en-US ] = "Country";
226 String STR_FIELD_ZIPCODE
228 Text [ en-US ] = "ZIP Code";
230 String STR_FIELD_CITY
232 Text [ en-US ] = "City";
234 String STR_FIELD_TITLE
236 Text [ en-US ] = "Title";
238 String STR_FIELD_POSITION
240 Text [ en-US ] = "Position";
242 String STR_FIELD_ADDRFORM
244 Text [ en-US ] = "Addr. Form";
246 String STR_FIELD_INITIALS
248 Text [ en-US ] = "Initials";
250 String STR_FIELD_SALUTATION
252 Text [ en-US ] = "Complimentary close";
254 String STR_FIELD_HOMETEL
256 Text [ en-US ] = "Tel: Home";
258 String STR_FIELD_WORKTEL
260 Text [ en-US ] = "Tel: Work";
264 Text [ en-US ] = "FAX";
266 String STR_FIELD_EMAIL
268 Text [ en-US ] = "E-mail";
272 Text [ en-US ] = "URL";
274 String STR_FIELD_NOTE
276 Text [ en-US ] = "Note";
278 String STR_FIELD_USER1
280 Text [ en-US ] = "User 1";
282 String STR_FIELD_USER2
284 Text [ en-US ] = "User 2";
286 String STR_FIELD_USER3
288 Text [ en-US ] = "User 3";
290 String STR_FIELD_USER4
292 Text [ en-US ] = "User 4";
297 Text [ en-US ] = "ID";
299 String STR_FIELD_STATE
301 Text [ en-US ] = "State";
303 String STR_FIELD_OFFICETEL
305 Text [ en-US ] = "Tel: Office";
307 String STR_FIELD_PAGER
309 Text [ en-US ] = "Pager";
311 String STR_FIELD_MOBILE
313 Text [ en-US ] = "Mobile";
315 String STR_FIELD_TELOTHER
317 Text [ en-US ] = "Tel: Other";
319 String STR_FIELD_CALENDAR
321 Text [ en-US ] = "Calendar";
323 String STR_FIELD_INVITE
325 Text [ en-US ] = "Invite";