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