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