1*cdf0e10cSrcweir/************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir#include <svtools/svtools.hrc> 29*cdf0e10cSrcweir#include "addresstemplate.hrc" 30*cdf0e10cSrcweir#include <svtools/controldims.hrc> 31*cdf0e10cSrcweir 32*cdf0e10cSrcweir#define FIELD_ROW_HEIGHT 17 33*cdf0e10cSrcweir 34*cdf0e10cSrcweirModalDialog DLG_ADDRESSBOOKSOURCE 35*cdf0e10cSrcweir{ 36*cdf0e10cSrcweir HelpID = "svtools:ModalDialog:DLG_ADDRESSBOOKSOURCE"; 37*cdf0e10cSrcweir SVLook = TRUE ; 38*cdf0e10cSrcweir OutputSize = TRUE ; 39*cdf0e10cSrcweir Size = MAP_APPFONT ( 300 , 88 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ; 40*cdf0e10cSrcweir Hide = TRUE ; 41*cdf0e10cSrcweir Moveable = TRUE ; 42*cdf0e10cSrcweir Text [ en-US ] = "Templates: Address Book Assignment"; 43*cdf0e10cSrcweir 44*cdf0e10cSrcweir FixedLine FL_DATASOURCEFRAME 45*cdf0e10cSrcweir { 46*cdf0e10cSrcweir Text [ en-US ] = "Address Book Source"; 47*cdf0e10cSrcweir SVLook = TRUE ; 48*cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 2 ) ; 49*cdf0e10cSrcweir Size = MAP_APPFONT ( 288 , RSC_CD_FIXEDLINE_HEIGHT ) ; 50*cdf0e10cSrcweir }; 51*cdf0e10cSrcweir FixedText FT_DATASOURCE 52*cdf0e10cSrcweir { 53*cdf0e10cSrcweir Text [ en-US ] = "Data source"; 54*cdf0e10cSrcweir SVLook = TRUE ; 55*cdf0e10cSrcweir Pos = MAP_APPFONT ( 12 , 15 ) ; 56*cdf0e10cSrcweir Size = MAP_APPFONT ( 90 , 10 ) ; 57*cdf0e10cSrcweir 58*cdf0e10cSrcweir Group = TRUE; 59*cdf0e10cSrcweir }; 60*cdf0e10cSrcweir ComboBox CB_DATASOURCE 61*cdf0e10cSrcweir { 62*cdf0e10cSrcweir HelpID = "svtools:ComboBox:DLG_ADDRESSBOOKSOURCE:CB_DATASOURCE"; 63*cdf0e10cSrcweir SVLook = TRUE ; 64*cdf0e10cSrcweir Pos = MAP_APPFONT ( 105, 13 ) ; 65*cdf0e10cSrcweir Size = MAP_APPFONT ( 96, 55 ) ; 66*cdf0e10cSrcweir 67*cdf0e10cSrcweir DropDown = TRUE; 68*cdf0e10cSrcweir TabStop = TRUE; 69*cdf0e10cSrcweir }; 70*cdf0e10cSrcweir PushButton PB_ADMINISTATE_DATASOURCES 71*cdf0e10cSrcweir { 72*cdf0e10cSrcweir HelpID = "svtools:PushButton:DLG_ADDRESSBOOKSOURCE:PB_ADMINISTATE_DATASOURCES"; 73*cdf0e10cSrcweir Text [ en-US ] = "~Address Data Source..."; 74*cdf0e10cSrcweir SVLook = TRUE ; 75*cdf0e10cSrcweir Pos = MAP_APPFONT ( 204, 13 ) ; 76*cdf0e10cSrcweir Size = MAP_APPFONT ( 90, 14 ) ; 77*cdf0e10cSrcweir TabStop = TRUE; 78*cdf0e10cSrcweir }; 79*cdf0e10cSrcweir FixedText FT_TABLE 80*cdf0e10cSrcweir { 81*cdf0e10cSrcweir Text [ en-US ] = "Table"; 82*cdf0e10cSrcweir SVLook = TRUE ; 83*cdf0e10cSrcweir Pos = MAP_APPFONT ( 12 , 32 ) ; 84*cdf0e10cSrcweir Size = MAP_APPFONT ( 90 , 10 ) ; 85*cdf0e10cSrcweir 86*cdf0e10cSrcweir Group = TRUE; 87*cdf0e10cSrcweir }; 88*cdf0e10cSrcweir ComboBox CB_TABLE 89*cdf0e10cSrcweir { 90*cdf0e10cSrcweir HelpID = "svtools:ComboBox:DLG_ADDRESSBOOKSOURCE:CB_TABLE"; 91*cdf0e10cSrcweir SVLook = TRUE ; 92*cdf0e10cSrcweir Pos = MAP_APPFONT ( 105, 30 ) ; 93*cdf0e10cSrcweir Size = MAP_APPFONT ( 96, 55 ) ; 94*cdf0e10cSrcweir 95*cdf0e10cSrcweir DropDown = TRUE; 96*cdf0e10cSrcweir TabStop = TRUE; 97*cdf0e10cSrcweir }; 98*cdf0e10cSrcweir FixedText FT_FIELDS 99*cdf0e10cSrcweir { 100*cdf0e10cSrcweir Text [ en-US ] = "Field assignment"; 101*cdf0e10cSrcweir SVLook = TRUE ; 102*cdf0e10cSrcweir Pos = MAP_APPFONT ( 6, 30 + RSC_CD_DROPDOWN_HEIGHT + RSC_SP_CTRL_Y ) ; 103*cdf0e10cSrcweir Size = MAP_APPFONT ( 248 , RSC_CD_FIXEDTEXT_HEIGHT ) ; 104*cdf0e10cSrcweir }; 105*cdf0e10cSrcweir Window CT_BORDER 106*cdf0e10cSrcweir { 107*cdf0e10cSrcweir Border = TRUE ; 108*cdf0e10cSrcweir Pos = MAP_APPFONT ( 6, 30 + RSC_CD_DROPDOWN_HEIGHT + RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y ) ; 109*cdf0e10cSrcweir Size = MAP_APPFONT ( 288 , 5 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ; 110*cdf0e10cSrcweir }; 111*cdf0e10cSrcweir 112*cdf0e10cSrcweir#define DECLARE_FIELD( row, column ) \ 113*cdf0e10cSrcweir FixedText FT_FIELD_BASE + row * 2 + column \ 114*cdf0e10cSrcweir { \ 115*cdf0e10cSrcweir SVLook = TRUE ; \ 116*cdf0e10cSrcweir Pos = MAP_APPFONT ( 3 + column * 134, RSC_SP_CTRL_GROUP_Y + 2 + row * FIELD_ROW_HEIGHT ) ; \ 117*cdf0e10cSrcweir Size = MAP_APPFONT ( 79 , 10 ) ; \ 118*cdf0e10cSrcweir Group = TRUE; \ 119*cdf0e10cSrcweir }; \ 120*cdf0e10cSrcweir ListBox LB_FIELD_BASE + row * 2 + column \ 121*cdf0e10cSrcweir { \ 122*cdf0e10cSrcweir SVLook = TRUE; \ 123*cdf0e10cSrcweir Pos = MAP_APPFONT ( 89 + column * 134, RSC_SP_CTRL_GROUP_Y + row * FIELD_ROW_HEIGHT ) ; \ 124*cdf0e10cSrcweir Size = MAP_APPFONT ( 42 , 14 ) ; \ 125*cdf0e10cSrcweir Border = TRUE; \ 126*cdf0e10cSrcweir DropDown = TRUE; \ 127*cdf0e10cSrcweir TabStop = TRUE; \ 128*cdf0e10cSrcweir } 129*cdf0e10cSrcweir 130*cdf0e10cSrcweir#if FIELD_PAIRS_VISIBLE > 0 131*cdf0e10cSrcweir DECLARE_FIELD( 0, 0 ); 132*cdf0e10cSrcweir DECLARE_FIELD( 0, 1 ); 133*cdf0e10cSrcweir#endif 134*cdf0e10cSrcweir#if FIELD_PAIRS_VISIBLE > 1 135*cdf0e10cSrcweir DECLARE_FIELD( 1, 0 ); 136*cdf0e10cSrcweir DECLARE_FIELD( 1, 1 ); 137*cdf0e10cSrcweir#endif 138*cdf0e10cSrcweir#if FIELD_PAIRS_VISIBLE > 2 139*cdf0e10cSrcweir DECLARE_FIELD( 3, 0 ); 140*cdf0e10cSrcweir DECLARE_FIELD( 3, 1 ); 141*cdf0e10cSrcweir#endif 142*cdf0e10cSrcweir#if FIELD_PAIRS_VISIBLE > 3 143*cdf0e10cSrcweir DECLARE_FIELD( 2, 0 ); 144*cdf0e10cSrcweir DECLARE_FIELD( 2, 1 ); 145*cdf0e10cSrcweir#endif 146*cdf0e10cSrcweir#if FIELD_PAIRS_VISIBLE > 4 147*cdf0e10cSrcweir DECLARE_FIELD( 4, 0 ); 148*cdf0e10cSrcweir DECLARE_FIELD( 4, 1 ); 149*cdf0e10cSrcweir#endif 150*cdf0e10cSrcweir#if FIELD_PAIRS_VISIBLE > 5 151*cdf0e10cSrcweir DECLARE_FIELD( 5, 0 ); 152*cdf0e10cSrcweir DECLARE_FIELD( 5, 1 ); 153*cdf0e10cSrcweir#endif 154*cdf0e10cSrcweir 155*cdf0e10cSrcweir ScrollBar SB_FIELDSCROLLER 156*cdf0e10cSrcweir { 157*cdf0e10cSrcweir SVLook = TRUE; 158*cdf0e10cSrcweir Pos = MAP_APPFONT ( 275, RSC_SP_CTRL_GROUP_Y ) ; 159*cdf0e10cSrcweir Size = MAP_APPFONT ( 8 , 16 - RSC_SP_CTRL_GROUP_Y + FIELD_ROW_HEIGHT * (FIELD_PAIRS_VISIBLE - 1) ) ; 160*cdf0e10cSrcweir }; 161*cdf0e10cSrcweir 162*cdf0e10cSrcweir OKButton PB_OK 163*cdf0e10cSrcweir { 164*cdf0e10cSrcweir SVLook = TRUE; 165*cdf0e10cSrcweir DefButton = TRUE; 166*cdf0e10cSrcweir Pos = MAP_APPFONT ( 137, 70 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ; 167*cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 168*cdf0e10cSrcweir }; 169*cdf0e10cSrcweir 170*cdf0e10cSrcweir CancelButton PB_CANCEL 171*cdf0e10cSrcweir { 172*cdf0e10cSrcweir SVLook = TRUE; 173*cdf0e10cSrcweir Pos = MAP_APPFONT ( 190, 70 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ; 174*cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 175*cdf0e10cSrcweir }; 176*cdf0e10cSrcweir 177*cdf0e10cSrcweir HelpButton PB_HELP 178*cdf0e10cSrcweir { 179*cdf0e10cSrcweir SVLook = TRUE; 180*cdf0e10cSrcweir Pos = MAP_APPFONT ( 244, 70 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ; 181*cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 182*cdf0e10cSrcweir }; 183*cdf0e10cSrcweir 184*cdf0e10cSrcweir String STR_LOCAGICAL_FIELD_NAMES 185*cdf0e10cSrcweir { 186*cdf0e10cSrcweir 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*cdf0e10cSrcweir // no need to translate this 188*cdf0e10cSrcweir // the items in this string have to be in the same order as the STR_FIELD_* strings are added to the 189*cdf0e10cSrcweir // field label list of the dialog 190*cdf0e10cSrcweir }; 191*cdf0e10cSrcweir 192*cdf0e10cSrcweir String STR_NO_FIELD_SELECTION 193*cdf0e10cSrcweir { 194*cdf0e10cSrcweir Text [ en-US ] = "<none>"; 195*cdf0e10cSrcweir }; 196*cdf0e10cSrcweir 197*cdf0e10cSrcweir String STR_FIELD_COMPANY 198*cdf0e10cSrcweir { 199*cdf0e10cSrcweir Text [ en-US ] = "Company"; 200*cdf0e10cSrcweir }; 201*cdf0e10cSrcweir String STR_FIELD_DEPARTMENT 202*cdf0e10cSrcweir { 203*cdf0e10cSrcweir Text [ en-US ] = "Department"; 204*cdf0e10cSrcweir }; 205*cdf0e10cSrcweir String STR_FIELD_FIRSTNAME 206*cdf0e10cSrcweir { 207*cdf0e10cSrcweir Text [ en-US ] = "First name"; 208*cdf0e10cSrcweir }; 209*cdf0e10cSrcweir String STR_FIELD_LASTNAME 210*cdf0e10cSrcweir { 211*cdf0e10cSrcweir Text [ en-US ] = "Last name"; 212*cdf0e10cSrcweir }; 213*cdf0e10cSrcweir String STR_FIELD_STREET 214*cdf0e10cSrcweir { 215*cdf0e10cSrcweir Text [ en-US ] = "Street"; 216*cdf0e10cSrcweir }; 217*cdf0e10cSrcweir String STR_FIELD_COUNTRY 218*cdf0e10cSrcweir { 219*cdf0e10cSrcweir Text [ en-US ] = "Country"; 220*cdf0e10cSrcweir }; 221*cdf0e10cSrcweir String STR_FIELD_ZIPCODE 222*cdf0e10cSrcweir { 223*cdf0e10cSrcweir Text [ en-US ] = "ZIP Code"; 224*cdf0e10cSrcweir }; 225*cdf0e10cSrcweir String STR_FIELD_CITY 226*cdf0e10cSrcweir { 227*cdf0e10cSrcweir Text [ en-US ] = "City"; 228*cdf0e10cSrcweir }; 229*cdf0e10cSrcweir String STR_FIELD_TITLE 230*cdf0e10cSrcweir { 231*cdf0e10cSrcweir Text [ en-US ] = "Title"; 232*cdf0e10cSrcweir }; 233*cdf0e10cSrcweir String STR_FIELD_POSITION 234*cdf0e10cSrcweir { 235*cdf0e10cSrcweir Text [ en-US ] = "Position"; 236*cdf0e10cSrcweir }; 237*cdf0e10cSrcweir String STR_FIELD_ADDRFORM 238*cdf0e10cSrcweir { 239*cdf0e10cSrcweir Text [ en-US ] = "Addr. Form"; 240*cdf0e10cSrcweir }; 241*cdf0e10cSrcweir String STR_FIELD_INITIALS 242*cdf0e10cSrcweir { 243*cdf0e10cSrcweir Text [ en-US ] = "Initials"; 244*cdf0e10cSrcweir }; 245*cdf0e10cSrcweir String STR_FIELD_SALUTATION 246*cdf0e10cSrcweir { 247*cdf0e10cSrcweir Text [ en-US ] = "Complimentary close"; 248*cdf0e10cSrcweir }; 249*cdf0e10cSrcweir String STR_FIELD_HOMETEL 250*cdf0e10cSrcweir { 251*cdf0e10cSrcweir Text [ en-US ] = "Tel: Home"; 252*cdf0e10cSrcweir }; 253*cdf0e10cSrcweir String STR_FIELD_WORKTEL 254*cdf0e10cSrcweir { 255*cdf0e10cSrcweir Text [ en-US ] = "Tel: Work"; 256*cdf0e10cSrcweir }; 257*cdf0e10cSrcweir String STR_FIELD_FAX 258*cdf0e10cSrcweir { 259*cdf0e10cSrcweir Text [ en-US ] = "FAX"; 260*cdf0e10cSrcweir }; 261*cdf0e10cSrcweir String STR_FIELD_EMAIL 262*cdf0e10cSrcweir { 263*cdf0e10cSrcweir Text [ en-US ] = "E-mail"; 264*cdf0e10cSrcweir }; 265*cdf0e10cSrcweir String STR_FIELD_URL 266*cdf0e10cSrcweir { 267*cdf0e10cSrcweir Text [ en-US ] = "URL"; 268*cdf0e10cSrcweir }; 269*cdf0e10cSrcweir String STR_FIELD_NOTE 270*cdf0e10cSrcweir { 271*cdf0e10cSrcweir Text [ en-US ] = "Note"; 272*cdf0e10cSrcweir }; 273*cdf0e10cSrcweir String STR_FIELD_USER1 274*cdf0e10cSrcweir { 275*cdf0e10cSrcweir Text [ en-US ] = "User 1"; 276*cdf0e10cSrcweir }; 277*cdf0e10cSrcweir String STR_FIELD_USER2 278*cdf0e10cSrcweir { 279*cdf0e10cSrcweir Text [ en-US ] = "User 2"; 280*cdf0e10cSrcweir }; 281*cdf0e10cSrcweir String STR_FIELD_USER3 282*cdf0e10cSrcweir { 283*cdf0e10cSrcweir Text [ en-US ] = "User 3"; 284*cdf0e10cSrcweir }; 285*cdf0e10cSrcweir String STR_FIELD_USER4 286*cdf0e10cSrcweir { 287*cdf0e10cSrcweir Text [ en-US ] = "User 4"; 288*cdf0e10cSrcweir }; 289*cdf0e10cSrcweir 290*cdf0e10cSrcweir String STR_FIELD_ID 291*cdf0e10cSrcweir { 292*cdf0e10cSrcweir Text [ en-US ] = "ID"; 293*cdf0e10cSrcweir }; 294*cdf0e10cSrcweir String STR_FIELD_STATE 295*cdf0e10cSrcweir { 296*cdf0e10cSrcweir Text [ en-US ] = "State"; 297*cdf0e10cSrcweir }; 298*cdf0e10cSrcweir String STR_FIELD_OFFICETEL 299*cdf0e10cSrcweir { 300*cdf0e10cSrcweir Text [ en-US ] = "Tel: Office"; 301*cdf0e10cSrcweir }; 302*cdf0e10cSrcweir String STR_FIELD_PAGER 303*cdf0e10cSrcweir { 304*cdf0e10cSrcweir Text [ en-US ] = "Pager"; 305*cdf0e10cSrcweir }; 306*cdf0e10cSrcweir String STR_FIELD_MOBILE 307*cdf0e10cSrcweir { 308*cdf0e10cSrcweir Text [ en-US ] = "Mobile"; 309*cdf0e10cSrcweir }; 310*cdf0e10cSrcweir String STR_FIELD_TELOTHER 311*cdf0e10cSrcweir { 312*cdf0e10cSrcweir Text [ en-US ] = "Tel: Other"; 313*cdf0e10cSrcweir }; 314*cdf0e10cSrcweir String STR_FIELD_CALENDAR 315*cdf0e10cSrcweir { 316*cdf0e10cSrcweir Text [ en-US ] = "Calendar"; 317*cdf0e10cSrcweir }; 318*cdf0e10cSrcweir String STR_FIELD_INVITE 319*cdf0e10cSrcweir { 320*cdf0e10cSrcweir Text [ en-US ] = "Invite"; 321*cdf0e10cSrcweir }; 322*cdf0e10cSrcweir}; 323*cdf0e10cSrcweir 324*cdf0e10cSrcweir 325*cdf0e10cSrcweir 326*cdf0e10cSrcweir 327*cdf0e10cSrcweir 328*cdf0e10cSrcweir 329*cdf0e10cSrcweir 330*cdf0e10cSrcweir 331*cdf0e10cSrcweir 332*cdf0e10cSrcweir 333*cdf0e10cSrcweir 334*cdf0e10cSrcweir 335*cdf0e10cSrcweir 336*cdf0e10cSrcweir 337*cdf0e10cSrcweir 338*cdf0e10cSrcweir 339*cdf0e10cSrcweir 340*cdf0e10cSrcweir 341*cdf0e10cSrcweir 342*cdf0e10cSrcweir 343*cdf0e10cSrcweir 344*cdf0e10cSrcweir 345*cdf0e10cSrcweir 346*cdf0e10cSrcweir 347*cdf0e10cSrcweir 348*cdf0e10cSrcweir 349*cdf0e10cSrcweir 350*cdf0e10cSrcweir 351*cdf0e10cSrcweir 352*cdf0e10cSrcweir 353*cdf0e10cSrcweir 354*cdf0e10cSrcweir 355*cdf0e10cSrcweir 356*cdf0e10cSrcweir 357