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