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