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 29*cdf0e10cSrcweir#ifndef _DBAUI_AUTOCONTROLS_HRC_ 30*cdf0e10cSrcweir#define _DBAUI_AUTOCONTROLS_HRC_ 31*cdf0e10cSrcweir 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir#ifndef _DBA_DBACCESS_HELPID_HRC_ 34*cdf0e10cSrcweir#include "dbaccess_helpid.hrc" 35*cdf0e10cSrcweir#endif 36*cdf0e10cSrcweir 37*cdf0e10cSrcweir#ifndef _DBU_DLG_HRC_ 38*cdf0e10cSrcweir#include "dbu_dlg.hrc" 39*cdf0e10cSrcweir#endif 40*cdf0e10cSrcweir 41*cdf0e10cSrcweir#ifndef _DBA_DBACCESS_HELPID_HRC_ 42*cdf0e10cSrcweir#include "dbaccess_helpid.hrc" 43*cdf0e10cSrcweir#endif 44*cdf0e10cSrcweir 45*cdf0e10cSrcweir 46*cdf0e10cSrcweir#define CHECKBOX_HEIGHT 8 47*cdf0e10cSrcweir#define FIXEDTEXT_HEIGHT 8 48*cdf0e10cSrcweir#define RELATED_CONTROLS 4 49*cdf0e10cSrcweir#define UNRELATED_CONTROLS 7 50*cdf0e10cSrcweir#define EDIT_HEIGHT 12 51*cdf0e10cSrcweir#define EDIT_X 101 52*cdf0e10cSrcweir 53*cdf0e10cSrcweir#define FT_AUTOJDBCDRIVERCLASS 80 54*cdf0e10cSrcweir#define FT_AUTOFIELDSEPARATOR 81 55*cdf0e10cSrcweir#define FT_AUTOTEXTSEPARATOR 82 56*cdf0e10cSrcweir#define FT_AUTODECIMALSEPARATOR 83 57*cdf0e10cSrcweir#define FT_AUTOTHOUSANDSSEPARATOR 84 58*cdf0e10cSrcweir#define FT_AUTOPORTNUMBER 85 59*cdf0e10cSrcweir#define FT_AUTOPORTNUMBERDEFAULT 86 60*cdf0e10cSrcweir#define FT_AUTOBASEDN 87 61*cdf0e10cSrcweir#define FT_AUTOHOSTNAME 88 62*cdf0e10cSrcweir#define FT_AUTOBROWSEURL 89 63*cdf0e10cSrcweir#define FT_AUTODATABASENAME 90 64*cdf0e10cSrcweir#define FT_AUTOWIZARDHELPTEXT 91 65*cdf0e10cSrcweir#define FT_AUTOWIZARDHEADER 92 66*cdf0e10cSrcweir#define FT_AUTOEXTENSIONHEADER 93 67*cdf0e10cSrcweir#define FT_AUTOOWNEXTENSIONAPPENDIX 94 68*cdf0e10cSrcweir#define FT_CHARSET 95 69*cdf0e10cSrcweir#define FT_SOCKET 96 70*cdf0e10cSrcweir 71*cdf0e10cSrcweir#define FL_AUTOSEPARATOR2 80 72*cdf0e10cSrcweir#define FL_DATACONVERT 81 73*cdf0e10cSrcweir#define FL_SEPARATOR1 82 74*cdf0e10cSrcweir 75*cdf0e10cSrcweir#define CB_AUTOHEADER 80 76*cdf0e10cSrcweir 77*cdf0e10cSrcweir#define PB_AUTOTESTDRIVERCLASS 80 78*cdf0e10cSrcweir#define PB_AUTOBROWSEURL 81 79*cdf0e10cSrcweir 80*cdf0e10cSrcweir#define CM_AUTOFIELDSEPARATOR 80 81*cdf0e10cSrcweir#define CM_AUTOTEXTSEPARATOR 81 82*cdf0e10cSrcweir#define CM_AUTODECIMALSEPARATOR 82 83*cdf0e10cSrcweir#define CM_AUTOTHOUSANDSSEPARATOR 83 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir#define NF_AUTOPORTNUMBER 80 86*cdf0e10cSrcweir 87*cdf0e10cSrcweir#define ET_AUTOBASEDN 80 88*cdf0e10cSrcweir#define ET_AUTOHOSTNAME 81 89*cdf0e10cSrcweir#define ET_AUTODATABASENAME 82 90*cdf0e10cSrcweir#define ET_AUTOBROWSEURL 83 91*cdf0e10cSrcweir#define ET_AUTOJDBCDRIVERCLASS 84 92*cdf0e10cSrcweir#define ET_AUTOOWNEXTENSION 85 93*cdf0e10cSrcweir#define ET_SOCKET 86 94*cdf0e10cSrcweir 95*cdf0e10cSrcweir#define RB_AUTOACCESSCTEXTFILES 80 96*cdf0e10cSrcweir#define RB_AUTOACCESSCCSVFILES 81 97*cdf0e10cSrcweir#define RB_AUTOACCESSOTHERS 82 98*cdf0e10cSrcweir 99*cdf0e10cSrcweir#define LB_CHARSET 80 100*cdf0e10cSrcweir 101*cdf0e10cSrcweir#define STR_AUTOFIELDSEPARATORLIST 100 102*cdf0e10cSrcweir#define STR_AUTOTEXTSEPARATORLIST 101 103*cdf0e10cSrcweir#define STR_AUTOTEXT_FIELD_SEP_NONE 102 104*cdf0e10cSrcweir#define STR_AUTODELIMITER_MISSING 103 105*cdf0e10cSrcweir#define STR_AUTODELIMITER_MUST_DIFFER 104 106*cdf0e10cSrcweir#define STR_AUTONO_WILDCARDS 105 107*cdf0e10cSrcweir 108*cdf0e10cSrcweir 109*cdf0e10cSrcweir#define AUTO_WIZARDHELPTEXT( AUTO_LINECOUNT ) \ 110*cdf0e10cSrcweir FixedText FT_AUTOWIZARDHEADER \ 111*cdf0e10cSrcweir { \ 112*cdf0e10cSrcweir Pos = MAP_APPFONT ( START_X , 8 ) ; \ 113*cdf0e10cSrcweir Size = MAP_APPFONT ( (WIZARD_PAGE_X - START_X) - 12 , 2 * FIXEDTEXT_HEIGHT ) ; \ 114*cdf0e10cSrcweir Text[ en-US ] = ""; \ 115*cdf0e10cSrcweir WordBreak = TRUE; \ 116*cdf0e10cSrcweir }; \ 117*cdf0e10cSrcweir \ 118*cdf0e10cSrcweir FixedText FT_AUTOWIZARDHELPTEXT \ 119*cdf0e10cSrcweir { \ 120*cdf0e10cSrcweir Pos = MAP_APPFONT ( START_X , INIT_Y ) ; \ 121*cdf0e10cSrcweir Size = MAP_APPFONT ( WIZARD_PAGE_X - START_X - 6 , AUTO_LINECOUNT * FIXEDTEXT_HEIGHT ) ; \ 122*cdf0e10cSrcweir Text[ en-US ] = ""; \ 123*cdf0e10cSrcweir WordBreak = TRUE; \ 124*cdf0e10cSrcweir }; 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir// ------------------------------------------------------------------------------------------------- 127*cdf0e10cSrcweir 128*cdf0e10cSrcweir 129*cdf0e10cSrcweir#define AUTO_BROWSECONTROLGROUP( AUTO_X, AUTO_Y, AUTOPAGE_X, AUTO_HID, AUTO_HID2) \ 130*cdf0e10cSrcweir FixedText FT_AUTOBROWSEURL { \ 131*cdf0e10cSrcweir Pos = MAP_APPFONT ( AUTO_X , AUTO_Y ) ; \ 132*cdf0e10cSrcweir Size = MAP_APPFONT ( AUTOPAGE_X - AUTO_X - 6 , FIXEDTEXT_HEIGHT ) ; \ 133*cdf0e10cSrcweir Text[ en-US ] = ""; \ 134*cdf0e10cSrcweir }; \ 135*cdf0e10cSrcweir \ 136*cdf0e10cSrcweir \ 137*cdf0e10cSrcweir Edit ET_AUTOBROWSEURL \ 138*cdf0e10cSrcweir { \ 139*cdf0e10cSrcweir Pos = MAP_APPFONT ( AUTO_X , AUTO_Y + FIXEDTEXT_HEIGHT + 3) ; \ 140*cdf0e10cSrcweir Size = MAP_APPFONT ( AUTOPAGE_X - AUTO_X - 6 - 3 - BUTTON_WIDTH , EDIT_HEIGHT ) ; \ 141*cdf0e10cSrcweir HelpId = AUTO_HID; \ 142*cdf0e10cSrcweir TabStop = TRUE ; \ 143*cdf0e10cSrcweir Border = TRUE ; \ 144*cdf0e10cSrcweir }; \ 145*cdf0e10cSrcweir \ 146*cdf0e10cSrcweir PushButton PB_AUTOBROWSEURL \ 147*cdf0e10cSrcweir { \ 148*cdf0e10cSrcweir Pos = MAP_APPFONT ( AUTOPAGE_X - BUTTON_WIDTH - 6 , AUTO_Y + FIXEDTEXT_HEIGHT + 2 ) ; \ 149*cdf0e10cSrcweir Size = MAP_APPFONT ( BUTTON_WIDTH , BUTTON_HEIGHT ) ; \ 150*cdf0e10cSrcweir HelpId = AUTO_HID2; \ 151*cdf0e10cSrcweir TabStop = TRUE ; \ 152*cdf0e10cSrcweir Text[ en-US ] = "Browse"; \ 153*cdf0e10cSrcweir }; 154*cdf0e10cSrcweir 155*cdf0e10cSrcweir// -------------------------------------------------------------------------------------------------- 156*cdf0e10cSrcweir 157*cdf0e10cSrcweir 158*cdf0e10cSrcweir#define AUTO_NAMECONTROLGROUP(AUTO_Y, AUTO_HID) \ 159*cdf0e10cSrcweir FixedText FT_AUTODATABASENAME \ 160*cdf0e10cSrcweir { \ 161*cdf0e10cSrcweir Pos = MAP_APPFONT ( START_X , AUTO_Y + 2) ; \ 162*cdf0e10cSrcweir Size = MAP_APPFONT ( EDIT_X - START_X - UNRELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ; \ 163*cdf0e10cSrcweir Text[ en-US ] = "Database name"; \ 164*cdf0e10cSrcweir }; \ 165*cdf0e10cSrcweir \ 166*cdf0e10cSrcweir Edit ET_AUTODATABASENAME \ 167*cdf0e10cSrcweir { \ 168*cdf0e10cSrcweir Pos = MAP_APPFONT ( EDIT_X, AUTO_Y) ; \ 169*cdf0e10cSrcweir Size = MAP_APPFONT ( 97, EDIT_HEIGHT ) ; \ 170*cdf0e10cSrcweir HelpId = AUTO_HID; \ 171*cdf0e10cSrcweir TabStop = TRUE ; \ 172*cdf0e10cSrcweir Border = TRUE ; \ 173*cdf0e10cSrcweir }; 174*cdf0e10cSrcweir 175*cdf0e10cSrcweir// -------------------------------------------------------------------------------------------------- 176*cdf0e10cSrcweir 177*cdf0e10cSrcweir 178*cdf0e10cSrcweir#define AUTO_HOSTCONTROLGROUP(AUTO_Y, AUTO_HID) \ 179*cdf0e10cSrcweir FixedText FT_AUTOHOSTNAME \ 180*cdf0e10cSrcweir { \ 181*cdf0e10cSrcweir Pos = MAP_APPFONT (START_X , AUTO_Y + 2 ) ; \ 182*cdf0e10cSrcweir Size = MAP_APPFONT ( EDIT_X - START_X - UNRELATED_CONTROLS , FIXEDTEXT_HEIGHT ); \ 183*cdf0e10cSrcweir Text [ en-US ] = "Server" ; \ 184*cdf0e10cSrcweir }; \ 185*cdf0e10cSrcweir \ 186*cdf0e10cSrcweir Edit ET_AUTOHOSTNAME \ 187*cdf0e10cSrcweir { \ 188*cdf0e10cSrcweir Pos = MAP_APPFONT (EDIT_X, AUTO_Y ) ; \ 189*cdf0e10cSrcweir Size = MAP_APPFONT ( 60, EDIT_HEIGHT ) ; \ 190*cdf0e10cSrcweir HelpId = AUTO_HID; \ 191*cdf0e10cSrcweir TabStop = TRUE ; \ 192*cdf0e10cSrcweir Border = TRUE ; \ 193*cdf0e10cSrcweir }; 194*cdf0e10cSrcweir 195*cdf0e10cSrcweir// -------------------------------------------------------------------------------------------------- 196*cdf0e10cSrcweir 197*cdf0e10cSrcweir 198*cdf0e10cSrcweir#define AUTO_BASEDNCONTROLGROUP(AUTO_Y, AUTO_HID) \ 199*cdf0e10cSrcweir FixedText FT_AUTOBASEDN \ 200*cdf0e10cSrcweir { \ 201*cdf0e10cSrcweir Pos = MAP_APPFONT (START_X , AUTO_Y + 2 ) ; \ 202*cdf0e10cSrcweir Size = MAP_APPFONT ( EDIT_X - START_X - UNRELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ; \ 203*cdf0e10cSrcweir Text [ en-US ] = "Base ~DN" ; \ 204*cdf0e10cSrcweir }; \ 205*cdf0e10cSrcweir \ 206*cdf0e10cSrcweir Edit ET_AUTOBASEDN \ 207*cdf0e10cSrcweir { \ 208*cdf0e10cSrcweir HelpId = AUTO_HID ; \ 209*cdf0e10cSrcweir Pos = MAP_APPFONT (EDIT_X, AUTO_Y ) ; \ 210*cdf0e10cSrcweir Size = MAP_APPFONT ( 60, EDIT_HEIGHT ) ; \ 211*cdf0e10cSrcweir TabStop = TRUE ; \ 212*cdf0e10cSrcweir Border = TRUE ; \ 213*cdf0e10cSrcweir }; \ 214*cdf0e10cSrcweir 215*cdf0e10cSrcweir// -------------------------------------------------------------------------------------------------- 216*cdf0e10cSrcweir 217*cdf0e10cSrcweir// MBA: the HID set in the FixText can't make any sense; in case this macro was called from within the 218*cdf0e10cSrcweir// AUTOHELP_JDBCCONTROLGROUP, the FixText would have got the same HID as an EditField from the 219*cdf0e10cSrcweir// also called AUTO_JDBCDRIVERCLASSGROUP macro; thus I conclude that we can remove the HID from the FixedText 220*cdf0e10cSrcweir#define AUTO_PORTCONTROLGROUP(AUTO_Y, AUTO_HID) \ 221*cdf0e10cSrcweir FixedText FT_AUTOPORTNUMBER \ 222*cdf0e10cSrcweir { \ 223*cdf0e10cSrcweir Pos = MAP_APPFONT (START_X , AUTO_Y +2) ; \ 224*cdf0e10cSrcweir Size = MAP_APPFONT ( EDIT_X - START_X - UNRELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ; \ 225*cdf0e10cSrcweir Text [ en-US ] = "~Port number" ; \ 226*cdf0e10cSrcweir }; \ 227*cdf0e10cSrcweir \ 228*cdf0e10cSrcweir NumericField NF_AUTOPORTNUMBER \ 229*cdf0e10cSrcweir { \ 230*cdf0e10cSrcweir HelpId = AUTO_HID ; \ 231*cdf0e10cSrcweir Pos = MAP_APPFONT (EDIT_X, AUTO_Y ) ; \ 232*cdf0e10cSrcweir Size = MAP_APPFONT ( 22 , EDIT_HEIGHT ) ; \ 233*cdf0e10cSrcweir TabStop = TRUE ; \ 234*cdf0e10cSrcweir Border = TRUE ; \ 235*cdf0e10cSrcweir NoThousandSep = TRUE; \ 236*cdf0e10cSrcweir }; \ 237*cdf0e10cSrcweir \ 238*cdf0e10cSrcweir FixedText FT_AUTOPORTNUMBERDEFAULT \ 239*cdf0e10cSrcweir { \ 240*cdf0e10cSrcweir Pos = MAP_APPFONT (EDIT_X + 22 + UNRELATED_CONTROLS, AUTO_Y +2) ; \ 241*cdf0e10cSrcweir Size = MAP_APPFONT ( WIZARD_PAGE_X - EDIT_X - 22 - UNRELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ; \ 242*cdf0e10cSrcweir Text[ en-US ] = "" ; \ 243*cdf0e10cSrcweir }; 244*cdf0e10cSrcweir 245*cdf0e10cSrcweir//------------------------------------------------------------------------- 246*cdf0e10cSrcweir 247*cdf0e10cSrcweir#define AUTO_CHARSET( AUTO_Y, AUTOPAGE_X ) \ 248*cdf0e10cSrcweir FixedLine FL_DATACONVERT \ 249*cdf0e10cSrcweir { \ 250*cdf0e10cSrcweir Pos = MAP_APPFONT ( 4 , AUTO_Y ) ; \ 251*cdf0e10cSrcweir Size = MAP_APPFONT ( AUTOPAGE_X - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ; \ 252*cdf0e10cSrcweir Text [ en-US ] = "Data conversion"; \ 253*cdf0e10cSrcweir }; \ 254*cdf0e10cSrcweir FixedText FT_CHARSET \ 255*cdf0e10cSrcweir { \ 256*cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , AUTO_Y + RELATED_CONTROLS + FIXEDTEXT_HEIGHT ) ; \ 257*cdf0e10cSrcweir Size = MAP_APPFONT ( EDIT_X - 7 , FIXEDTEXT_HEIGHT ) ; \ 258*cdf0e10cSrcweir Text [ en-US ] = "~Character set" ; \ 259*cdf0e10cSrcweir }; \ 260*cdf0e10cSrcweir ListBox LB_CHARSET \ 261*cdf0e10cSrcweir { \ 262*cdf0e10cSrcweir Border = TRUE ; \ 263*cdf0e10cSrcweir Pos = MAP_APPFONT ( EDIT_X , AUTO_Y + RELATED_CONTROLS + FIXEDTEXT_HEIGHT -1 ) ; \ 264*cdf0e10cSrcweir Size = MAP_APPFONT ( AUTOPAGE_X - EDIT_X - 6 , 60 ) ; \ 265*cdf0e10cSrcweir TabStop = TRUE ; \ 266*cdf0e10cSrcweir HelpId = HID_DSADMIN_CHARSET; \ 267*cdf0e10cSrcweir DropDown = TRUE ; \ 268*cdf0e10cSrcweir CurPos = 0 ; \ 269*cdf0e10cSrcweir }; \ 270*cdf0e10cSrcweir 271*cdf0e10cSrcweir// -------------------------------------------------------------------------------------------------- 272*cdf0e10cSrcweir#define AUTO_SEPARATORCONTROLGROUP(AUTO_Y,AUTOPAGE_X) \ 273*cdf0e10cSrcweir \ 274*cdf0e10cSrcweir FixedText FT_AUTOEXTENSIONHEADER \ 275*cdf0e10cSrcweir { \ 276*cdf0e10cSrcweir Pos = MAP_APPFONT ( START_X , AUTO_Y) ; \ 277*cdf0e10cSrcweir Size = MAP_APPFONT ( AUTOPAGE_X - 2*START_X , FIXEDTEXT_HEIGHT ) ; \ 278*cdf0e10cSrcweir Text[ en-US ] = "Specify the type of files you want to access" ; \ 279*cdf0e10cSrcweir }; \ 280*cdf0e10cSrcweir \ 281*cdf0e10cSrcweir RadioButton RB_AUTOACCESSCTEXTFILES \ 282*cdf0e10cSrcweir { \ 283*cdf0e10cSrcweir HelpId = HID_PAGE_DBWIZARD_TEXT_RB_ACCESSTXTFILES; \ 284*cdf0e10cSrcweir Pos = MAP_APPFONT (START_X + 6 , AUTO_Y + FIXEDTEXT_HEIGHT + RELATED_CONTROLS); \ 285*cdf0e10cSrcweir Size = MAP_APPFONT ( AUTOPAGE_X - 12 , FIXEDTEXT_HEIGHT ) ; \ 286*cdf0e10cSrcweir Text[ en-US ] = "Plain text files (*.txt)" ; \ 287*cdf0e10cSrcweir }; \ 288*cdf0e10cSrcweir \ 289*cdf0e10cSrcweir RadioButton RB_AUTOACCESSCCSVFILES \ 290*cdf0e10cSrcweir { \ 291*cdf0e10cSrcweir HelpId = HID_PAGE_DBWIZARD_TEXT_RB_ACCESSCSVFILES; \ 292*cdf0e10cSrcweir Pos = MAP_APPFONT (START_X + 6 , AUTO_Y + 2*FIXEDTEXT_HEIGHT + 2*RELATED_CONTROLS); \ 293*cdf0e10cSrcweir Size = MAP_APPFONT ( AUTOPAGE_X - 12 , FIXEDTEXT_HEIGHT ) ; \ 294*cdf0e10cSrcweir Text[ en-US ] = "'Comma separated value' files (*.csv)" ; \ 295*cdf0e10cSrcweir }; \ 296*cdf0e10cSrcweir \ 297*cdf0e10cSrcweir RadioButton RB_AUTOACCESSOTHERS \ 298*cdf0e10cSrcweir { \ 299*cdf0e10cSrcweir HelpId = HID_PAGE_DBWIZARD_TEXT_RB_ACCESSOTHERFILES; \ 300*cdf0e10cSrcweir Pos = MAP_APPFONT (START_X + 6 , AUTO_Y + 3*FIXEDTEXT_HEIGHT + 3*RELATED_CONTROLS); \ 301*cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , FIXEDTEXT_HEIGHT ) ; \ 302*cdf0e10cSrcweir Text[ en-US ] = "Custom:" ; \ 303*cdf0e10cSrcweir }; \ 304*cdf0e10cSrcweir \ 305*cdf0e10cSrcweir Edit ET_AUTOOWNEXTENSION \ 306*cdf0e10cSrcweir { \ 307*cdf0e10cSrcweir HelpId = HID_PAGE_DBWIZARD_TEXT_ET_OWNEXTENSION; \ 308*cdf0e10cSrcweir Pos = MAP_APPFONT (START_X + 66, AUTO_Y + 3*FIXEDTEXT_HEIGHT + 3*RELATED_CONTROLS - 2 ) ; \ 309*cdf0e10cSrcweir Size = MAP_APPFONT ( 60, EDIT_HEIGHT ) ; \ 310*cdf0e10cSrcweir TabStop = TRUE ; \ 311*cdf0e10cSrcweir Border = TRUE ; \ 312*cdf0e10cSrcweir }; \ 313*cdf0e10cSrcweir \ 314*cdf0e10cSrcweir FIXEDTEXT FT_AUTOOWNEXTENSIONAPPENDIX \ 315*cdf0e10cSrcweir { \ 316*cdf0e10cSrcweir Pos = MAP_APPFONT (START_X + 130 , AUTO_Y + 3 * ( FIXEDTEXT_HEIGHT + RELATED_CONTROLS ) ); \ 317*cdf0e10cSrcweir Size = MAP_APPFONT ( AUTOPAGE_X - 6 -(START_X + 130), FIXEDTEXT_HEIGHT ) ; \ 318*cdf0e10cSrcweir Text[ en-US ] = "Custom: *.abc" ; \ 319*cdf0e10cSrcweir }; \ 320*cdf0e10cSrcweir \ 321*cdf0e10cSrcweir FixedLine FL_AUTOSEPARATOR2 \ 322*cdf0e10cSrcweir { \ 323*cdf0e10cSrcweir Pos = MAP_APPFONT ( START_X , AUTO_Y + 50) ; \ 324*cdf0e10cSrcweir Size = MAP_APPFONT ( AUTOPAGE_X - 2 * START_X , FIXEDTEXT_HEIGHT ) ; \ 325*cdf0e10cSrcweir Text[ en-US ] = "Row Format"; \ 326*cdf0e10cSrcweir }; \ 327*cdf0e10cSrcweir \ 328*cdf0e10cSrcweir FixedText FT_AUTOFIELDSEPARATOR \ 329*cdf0e10cSrcweir { \ 330*cdf0e10cSrcweir Pos = MAP_APPFONT ( START_X + INDENTED_X , AUTO_Y + 50 + UNRELATED_CONTROLS + FIXEDTEXT_HEIGHT ) ; \ 331*cdf0e10cSrcweir Size = MAP_APPFONT ( EDIT_X - 7 , FIXEDTEXT_HEIGHT ) ; \ 332*cdf0e10cSrcweir Text[ en-US ] = "Field separator" ; \ 333*cdf0e10cSrcweir }; \ 334*cdf0e10cSrcweir ComboBox CM_AUTOFIELDSEPARATOR \ 335*cdf0e10cSrcweir { \ 336*cdf0e10cSrcweir Pos = MAP_APPFONT ( EDIT_X , AUTO_Y + 50 + UNRELATED_CONTROLS + FIXEDTEXT_HEIGHT - 2 ) ; \ 337*cdf0e10cSrcweir Size = MAP_APPFONT ( 32 , 60 ) ; \ 338*cdf0e10cSrcweir Text = ";" ; \ 339*cdf0e10cSrcweir TabStop = TRUE ; \ 340*cdf0e10cSrcweir DropDown = TRUE ; \ 341*cdf0e10cSrcweir HelpId = HID_DSADMIN_FIELD_SEPARATOR; \ 342*cdf0e10cSrcweir }; \ 343*cdf0e10cSrcweir \ 344*cdf0e10cSrcweir FixedText FT_AUTOTEXTSEPARATOR \ 345*cdf0e10cSrcweir { \ 346*cdf0e10cSrcweir Pos = MAP_APPFONT ( START_X + INDENTED_X, AUTO_Y + 50 + UNRELATED_CONTROLS + FIXEDTEXT_HEIGHT + RELATED_CONTROLS + EDIT_HEIGHT ) ; \ 347*cdf0e10cSrcweir Size = MAP_APPFONT ( EDIT_X - 7 , FIXEDTEXT_HEIGHT ) ; \ 348*cdf0e10cSrcweir Text[ en-US ] = "Text separator" ; \ 349*cdf0e10cSrcweir }; \ 350*cdf0e10cSrcweir ComboBox CM_AUTOTEXTSEPARATOR \ 351*cdf0e10cSrcweir { \ 352*cdf0e10cSrcweir Pos = MAP_APPFONT ( EDIT_X , AUTO_Y + 50 + UNRELATED_CONTROLS + FIXEDTEXT_HEIGHT + RELATED_CONTROLS + EDIT_HEIGHT - 2 ) ; \ 353*cdf0e10cSrcweir Size = MAP_APPFONT ( 32 , 60 ) ; \ 354*cdf0e10cSrcweir Text = "\"" ; \ 355*cdf0e10cSrcweir TabStop = TRUE ; \ 356*cdf0e10cSrcweir DropDown = TRUE ; \ 357*cdf0e10cSrcweir HelpId = HID_DSADMIN_TEXT_SEPARATOR; \ 358*cdf0e10cSrcweir }; \ 359*cdf0e10cSrcweir FixedText FT_AUTODECIMALSEPARATOR \ 360*cdf0e10cSrcweir { \ 361*cdf0e10cSrcweir Pos = MAP_APPFONT ( START_X + INDENTED_X, AUTO_Y + 50 + UNRELATED_CONTROLS + FIXEDTEXT_HEIGHT + 2*RELATED_CONTROLS + 2*EDIT_HEIGHT ) ; \ 362*cdf0e10cSrcweir Size = MAP_APPFONT ( EDIT_X - 7 , FIXEDTEXT_HEIGHT ) ; \ 363*cdf0e10cSrcweir Text[ en-US ] = "Decimal separator" ; \ 364*cdf0e10cSrcweir }; \ 365*cdf0e10cSrcweir ComboBox CM_AUTODECIMALSEPARATOR \ 366*cdf0e10cSrcweir { \ 367*cdf0e10cSrcweir Pos = MAP_APPFONT ( EDIT_X , AUTO_Y + 50 + UNRELATED_CONTROLS + FIXEDTEXT_HEIGHT + 2*RELATED_CONTROLS + 2*EDIT_HEIGHT - 2 ) ; \ 368*cdf0e10cSrcweir Size = MAP_APPFONT ( 32 , 60 ) ; \ 369*cdf0e10cSrcweir TabStop = TRUE ; \ 370*cdf0e10cSrcweir MaxTextLength = 1 ; \ 371*cdf0e10cSrcweir DropDown = TRUE ; \ 372*cdf0e10cSrcweir StringList = \ 373*cdf0e10cSrcweir { \ 374*cdf0e10cSrcweir "." ; \ 375*cdf0e10cSrcweir "," ; \ 376*cdf0e10cSrcweir ";" ; \ 377*cdf0e10cSrcweir ":" ; \ 378*cdf0e10cSrcweir }; \ 379*cdf0e10cSrcweir HelpId = HID_DSADMIN_DECIMAL_SEPARATOR; \ 380*cdf0e10cSrcweir }; \ 381*cdf0e10cSrcweir FixedText FT_AUTOTHOUSANDSSEPARATOR \ 382*cdf0e10cSrcweir { \ 383*cdf0e10cSrcweir Pos = MAP_APPFONT ( START_X + INDENTED_X, AUTO_Y + 50 + UNRELATED_CONTROLS + FIXEDTEXT_HEIGHT + 3*RELATED_CONTROLS + 3*EDIT_HEIGHT ) ; \ 384*cdf0e10cSrcweir Size = MAP_APPFONT ( EDIT_X - 7 , FIXEDTEXT_HEIGHT ) ; \ 385*cdf0e10cSrcweir Text[ en-US ] = "Thousands separator" ; \ 386*cdf0e10cSrcweir }; \ 387*cdf0e10cSrcweir ComboBox CM_AUTOTHOUSANDSSEPARATOR \ 388*cdf0e10cSrcweir { \ 389*cdf0e10cSrcweir Pos = MAP_APPFONT ( EDIT_X , AUTO_Y + 50 + UNRELATED_CONTROLS + FIXEDTEXT_HEIGHT + 3*RELATED_CONTROLS + 3*EDIT_HEIGHT - 2 ) ; \ 390*cdf0e10cSrcweir Size = MAP_APPFONT ( 32 , 44 ) ; \ 391*cdf0e10cSrcweir Text = "." ; \ 392*cdf0e10cSrcweir TabStop = TRUE ; \ 393*cdf0e10cSrcweir MaxTextLength = 1 ; \ 394*cdf0e10cSrcweir DropDown = TRUE ; \ 395*cdf0e10cSrcweir StringList = \ 396*cdf0e10cSrcweir { \ 397*cdf0e10cSrcweir "," ; \ 398*cdf0e10cSrcweir "." ; \ 399*cdf0e10cSrcweir }; \ 400*cdf0e10cSrcweir HelpId = HID_DSADMIN_THOUSANDS_SEPARATOR; \ 401*cdf0e10cSrcweir }; \ 402*cdf0e10cSrcweir \ 403*cdf0e10cSrcweir CheckBox CB_AUTOHEADER \ 404*cdf0e10cSrcweir { \ 405*cdf0e10cSrcweir TabStop = TRUE ; \ 406*cdf0e10cSrcweir Pos = MAP_APPFONT ( START_X + INDENTED_X, AUTO_Y + 50 + UNRELATED_CONTROLS + FIXEDTEXT_HEIGHT + 4*RELATED_CONTROLS + 4*EDIT_HEIGHT ) ; \ 407*cdf0e10cSrcweir Size = MAP_APPFONT ( 150 , CHECKBOX_HEIGHT ) ; \ 408*cdf0e10cSrcweir HelpId = HID_DSADMIN_TEXT_HEADER; \ 409*cdf0e10cSrcweir Text [ en-US ] = "~Text contains headers" ; \ 410*cdf0e10cSrcweir }; \ 411*cdf0e10cSrcweir \ 412*cdf0e10cSrcweir AUTO_CHARSET( AUTO_Y + 50 + UNRELATED_CONTROLS + FIXEDTEXT_HEIGHT + 4*RELATED_CONTROLS + 4*EDIT_HEIGHT + CHECKBOX_HEIGHT + UNRELATED_CONTROLS, AUTOPAGE_X ) \ 413*cdf0e10cSrcweir \ 414*cdf0e10cSrcweir String STR_AUTOTEXT_FIELD_SEP_NONE \ 415*cdf0e10cSrcweir { \ 416*cdf0e10cSrcweir Text[ en-US ] = "{None}"; \ 417*cdf0e10cSrcweir }; \ 418*cdf0e10cSrcweir \ 419*cdf0e10cSrcweir String STR_AUTOTEXTSEPARATORLIST \ 420*cdf0e10cSrcweir { \ 421*cdf0e10cSrcweir Text = "\"\t34\t'\t39" ; \ 422*cdf0e10cSrcweir }; \ 423*cdf0e10cSrcweir \ 424*cdf0e10cSrcweir String STR_AUTOFIELDSEPARATORLIST \ 425*cdf0e10cSrcweir { \ 426*cdf0e10cSrcweir Text [ x-comment ] = "EM Dec 2002: \'Space\' refers to what you get when you hit the space bar on your keyboard."; \ 427*cdf0e10cSrcweir Text [ en-US ] = ";\t59\t,\t44\t:\t58\t{Tab}\t9\t{Space}\t32" ; \ 428*cdf0e10cSrcweir }; \ 429*cdf0e10cSrcweir \ 430*cdf0e10cSrcweir String STR_AUTODELIMITER_MISSING \ 431*cdf0e10cSrcweir { \ 432*cdf0e10cSrcweir Text[ en-US ] = "#1 must be set." ; \ 433*cdf0e10cSrcweir }; \ 434*cdf0e10cSrcweir String STR_AUTODELIMITER_MUST_DIFFER \ 435*cdf0e10cSrcweir { \ 436*cdf0e10cSrcweir Text[ en-US ] = "#1 and #2 must be different." ; \ 437*cdf0e10cSrcweir }; \ 438*cdf0e10cSrcweir String STR_AUTONO_WILDCARDS \ 439*cdf0e10cSrcweir { \ 440*cdf0e10cSrcweir Text[ en-US ] = "Wildcards such as ?,* are not allowed in #1." ; \ 441*cdf0e10cSrcweir }; 442*cdf0e10cSrcweir 443*cdf0e10cSrcweir 444*cdf0e10cSrcweir#define NAMECONTROLGROUP_HEIGHT (FIXEDTEXT_HEIGHT + 2 + EDIT_HEIGHT) 445*cdf0e10cSrcweir#define BROWSECONTROLGROUP_HEIGHT ( FIXEDTEXT_HEIGHT + 2 + BUTTON_HEIGHT) 446*cdf0e10cSrcweir 447*cdf0e10cSrcweir// -------------------------------------------------------------------------------------------------- 448*cdf0e10cSrcweir 449*cdf0e10cSrcweir#define AUTO_HELP_BROWSECONTROLGROUP(AUTO_LINECOUNT, AUTO_HID, AUTO_HID2) \ 450*cdf0e10cSrcweir AUTO_WIZARDHELPTEXT(AUTO_LINECOUNT) \ 451*cdf0e10cSrcweir AUTO_BROWSECONTROLGROUP(START_X, INIT_Y + AUTO_LINECOUNT * FIXEDTEXT_HEIGHT + 2, WIZARD_PAGE_X, AUTO_HID, AUTO_HID2) 452*cdf0e10cSrcweir 453*cdf0e10cSrcweir 454*cdf0e10cSrcweir// -------------------------------------------------------------------------------------------------- 455*cdf0e10cSrcweir 456*cdf0e10cSrcweir 457*cdf0e10cSrcweir// -------------------------------------------------------------------------------------------------- 458*cdf0e10cSrcweir 459*cdf0e10cSrcweir#define AUTO_JDBCDRIVERCLASSGROUP(AUTO_Y, AUTO_HID, AUTO_HID2) \ 460*cdf0e10cSrcweir \ 461*cdf0e10cSrcweir FixedText FT_AUTOJDBCDRIVERCLASS \ 462*cdf0e10cSrcweir { \ 463*cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , AUTO_Y) ; \ 464*cdf0e10cSrcweir Size = MAP_APPFONT ( PAGE_X - 12 , FIXEDTEXT_HEIGHT ) ; \ 465*cdf0e10cSrcweir Text [ en-US ] = "JDBC d~river class"; \ 466*cdf0e10cSrcweir }; \ 467*cdf0e10cSrcweir \ 468*cdf0e10cSrcweir Edit ET_AUTOJDBCDRIVERCLASS \ 469*cdf0e10cSrcweir { \ 470*cdf0e10cSrcweir Pos = MAP_APPFONT ( START_X, AUTO_Y + FIXEDTEXT_HEIGHT + RELATED_CONTROLS ) ; \ 471*cdf0e10cSrcweir Size = MAP_APPFONT ( WIZARD_PAGE_X - START_X - BUTTON_WIDTH - RELATED_CONTROLS - UNRELATED_CONTROLS , EDIT_HEIGHT ) ; \ 472*cdf0e10cSrcweir TabStop = TRUE ; \ 473*cdf0e10cSrcweir Border = TRUE ; \ 474*cdf0e10cSrcweir HelpId = AUTO_HID; \ 475*cdf0e10cSrcweir }; \ 476*cdf0e10cSrcweir \ 477*cdf0e10cSrcweir PushButton PB_AUTOTESTDRIVERCLASS \ 478*cdf0e10cSrcweir { \ 479*cdf0e10cSrcweir TabStop = TRUE ; \ 480*cdf0e10cSrcweir Pos = MAP_APPFONT ( WIZARD_PAGE_X - BUTTON_WIDTH - UNRELATED_CONTROLS , AUTO_Y + FIXEDTEXT_HEIGHT + 2) ; \ 481*cdf0e10cSrcweir Size = MAP_APPFONT ( BUTTON_WIDTH , BUTTON_HEIGHT ) ; \ 482*cdf0e10cSrcweir Size = MAP_APPFONT (50, 14); \ 483*cdf0e10cSrcweir HelpId = AUTO_HID2; \ 484*cdf0e10cSrcweir Text[ en-US ] = "Test class" ; \ 485*cdf0e10cSrcweir }; 486*cdf0e10cSrcweir 487*cdf0e10cSrcweir// -------------------------------------------------------------------------------------------------- 488*cdf0e10cSrcweir 489*cdf0e10cSrcweir#define AUTO_SOCKETCONTROLGROUP(AUTO_Y) \ 490*cdf0e10cSrcweir FixedText FT_SOCKET \ 491*cdf0e10cSrcweir { \ 492*cdf0e10cSrcweir Pos = MAP_APPFONT (START_X , AUTO_Y +2) ; \ 493*cdf0e10cSrcweir Size = MAP_APPFONT ( EDIT_X - START_X - UNRELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ; \ 494*cdf0e10cSrcweir Text [ en-US ] = "Socket" ; \ 495*cdf0e10cSrcweir }; \ 496*cdf0e10cSrcweir \ 497*cdf0e10cSrcweir Edit ET_SOCKET \ 498*cdf0e10cSrcweir { \ 499*cdf0e10cSrcweir Pos = MAP_APPFONT (EDIT_X, AUTO_Y ) ; \ 500*cdf0e10cSrcweir Size = MAP_APPFONT ( 97, EDIT_HEIGHT ) ; \ 501*cdf0e10cSrcweir TabStop = TRUE ; \ 502*cdf0e10cSrcweir Border = TRUE ; \ 503*cdf0e10cSrcweir }; 504*cdf0e10cSrcweir 505*cdf0e10cSrcweir 506*cdf0e10cSrcweir#define AUTOHELP_JDBCCONTROLGROUP( AUTO_HID, AUTO_HID2, AUTO_HID3, AUTO_HID4, AUTO_HID5 ) \ 507*cdf0e10cSrcweir AUTO_WIZARDHELPTEXT( 6 ) \ 508*cdf0e10cSrcweir AUTO_NAMECONTROLGROUP( INIT_Y + 6 * FIXEDTEXT_HEIGHT + 2, AUTO_HID ) \ 509*cdf0e10cSrcweir AUTO_HOSTCONTROLGROUP(96, AUTO_HID2) \ 510*cdf0e10cSrcweir AUTO_PORTCONTROLGROUP(113, AUTO_HID3 ) \ 511*cdf0e10cSrcweir AUTO_SOCKETCONTROLGROUP(129) \ 512*cdf0e10cSrcweir AUTO_JDBCDRIVERCLASSGROUP(146, AUTO_HID4, AUTO_HID5) 513*cdf0e10cSrcweir 514*cdf0e10cSrcweir 515*cdf0e10cSrcweir// -------------------------------------------------------------------------------------------------- 516*cdf0e10cSrcweir 517*cdf0e10cSrcweir#endif 518