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 _EXTENSIONS_DBP_DBPRESID_HRC_
25#define _EXTENSIONS_DBP_DBPRESID_HRC_
26
27#include "dbpilots.hrc"
28#include "extensio.hrc"
29
30//========================================================================
31// basics
32
33#define RID_DIALOG_START				RID_DBP_START
34#define RID_PAGE_START					RID_DBP_START
35#define RID_STRING_START				RID_DBP_START
36#define RID_ERRORBOX_START				RID_DBP_START
37
38//========================================================================
39// strings
40
41#define RID_STR_GROUPWIZ_DBFIELD		(RID_STRING_START +  1 )
42#define RID_STR_COMBOWIZ_DBFIELD		(RID_STRING_START +  2 )
43#define RID_STR_LISTWIZARD_TITLE		(RID_STRING_START +  3 )
44#define RID_STR_COMBOWIZARD_TITLE		(RID_STRING_START +  4 )
45#define RID_STR_COULDNOTOPENTABLE		(RID_STRING_START +  5 )
46#define RID_STR_DATEPOSTFIX				(RID_STRING_START +  6 )
47#define RID_STR_TIMEPOSTFIX				(RID_STRING_START +  7 )
48#define RID_STR_TYPE_QUERY				(RID_STRING_START +  8 )
49#define RID_STR_TYPE_TABLE				(RID_STRING_START +  9 )
50#define RID_STR_TYPE_COMMAND			(RID_STRING_START + 10 )
51
52// please adjust RID_STRING_END (below) when adding new strings
53#define RID_STRING_END					RID_STR_TIMEPOSTFIX
54
55//========================================================================
56// dialogs
57
58#define RID_DLG_GROUPBOXWIZARD			( RID_DIALOG_START +  1 )
59#define RID_DLG_LISTCOMBOWIZARD			( RID_DIALOG_START +  2 )
60#define RID_DLG_GRIDWIZARD				( RID_DIALOG_START +  3 )
61
62// please adjust RID_DIALOG_END (below) when adding new dialogs
63#define RID_DIALOG_END					RID_DLG_GRIDWIZARD
64
65//========================================================================
66// tab pages
67
68#define RID_PAGE_TABLESELECTION				( RID_PAGE_START +  1 )
69#define RID_PAGE_GROUPRADIOSELECTION		( RID_PAGE_START +  2 )
70#define RID_PAGE_DEFAULTFIELDSELECTION		( RID_PAGE_START +  3 )
71#define RID_PAGE_OPTIONVALUES				( RID_PAGE_START +  4 )
72#define RID_PAGE_OPTION_DBFIELD				( RID_PAGE_START +  5 )
73#define RID_PAGE_OPTIONS_FINAL				( RID_PAGE_START +  6 )
74#define RID_PAGE_LCW_CONTENTSELECTION_TABLE	( RID_PAGE_START +  7 )
75#define RID_PAGE_LCW_CONTENTSELECTION_FIELD	( RID_PAGE_START +  8 )
76#define RID_PAGE_LCW_FIELDLINK				( RID_PAGE_START +  9 )
77#define RID_PAGE_GW_FIELDSELECTION			( RID_PAGE_START + 10 )
78#define RID_PAGE_FORM_DATASOURCE_STATUS		( RID_PAGE_START + 11 )
79
80// please adjust RID_PAGE_END (below) when adding new tab pages
81#define RID_PAGE_END						RID_PAGE_GW_FIELDSELECTION
82
83//========================================================================
84// ErrorBox
85
86#define RID_ERR_INVALID_FORM_CONNECTION		( RID_ERRORBOX_START +  1 )
87
88// please adjust RID_ERRORBOX_END (below) when adding new error boxes
89#define RID_ERRORBOX_END					RID_ERR_INVALID_FORM_CONNECTION
90
91
92//========================================================================
93//========================================================================
94//= range checks
95
96#if RID_STRING_END > RID_DBP_END
97	#error "please adjust the resource id ranges!!"
98#endif
99#if RID_DIALOG_END > RID_DBP_END
100	#error "please adjust the resource id ranges!!"
101#endif
102#if RID_PAGE_END > RID_DBP_END
103	#error "please adjust the resource id ranges!!"
104#endif
105#if RID_ERRORBOX_END > RID_DBP_END
106	#error "please adjust the resource id ranges!!"
107#endif
108
109//========================================================================
110// local ids
111
112//........................................................................
113// FixedLine
114
115#define FL_DATA						1
116#define FL_DEFAULTSELECTION			2
117#define FL_OPTIONVALUES				3
118#define FL_DATABASEFIELD_EXPL		4
119#define FL_NAMEIT					5
120#define FL_FRAME					6
121#define FL_FORMSETINGS				7
122
123//........................................................................
124// FixedText
125
126#define FT_DATASOURCE				 1
127#define FT_TABLE					 2
128#define	FT_RADIOLABELS				 3
129#define FT_RADIOBUTTONS				 4
130#define FT_DEFAULTSELECTION			 5
131#define FT_OPTIONVALUES_EXPL		 6
132#define FT_OPTIONVALUES				 7
133#define FT_DATABASEFIELD_EXPL		 8
134#define FT_DATABASEFIELD_QUEST		 9
135#define FT_NAMEIT					10
136#define FT_THATSALL					11
137#define FT_SELECTTABLE_LABEL		12
138#define FT_TABLEFIELDS				13
139#define FT_DISPLAYEDFIELD			14
140#define FT_CONTENTFIELD_INFO		15
141#define FT_VALUELISTFIELD			16
142#define FT_TABLEFIELD				17
143#define FT_EXPLANATION				18
144#define FT_EXISTING_FIELDS			19
145#define FT_SELECTED_FIELDS			20
146#define FT_FIELDLINK_DESC			21
147#define FT_FORMDATASOURCELABEL		22
148#define FT_FORMDATASOURCE			23
149#define FT_FORMTABLELABEL			24
150#define FT_FORMTABLE				25
151#define FT_FORMCONTENTTYPELABEL		26
152#define FT_FORMCONTENTTYPE			27
153
154//........................................................................
155// ListBox
156
157#define LB_DATASOURCE				1
158#define LB_TABLE					2
159#define LB_RADIOBUTTONS				3
160#define LB_DEFSELECTIONFIELD		3
161#define LB_STOREINFIELD				4
162#define LB_SELECTTABLE				5
163#define LB_SELECTFIELD				6
164#define LB_EXISTING_FIELDS			7
165#define LB_SELECTED_FIELDS			8
166
167//........................................................................
168// Edit
169
170#define ET_RADIOLABELS				1
171#define ET_OPTIONVALUE				2
172#define ET_NAMEIT					3
173#define ET_DISPLAYEDFIELD			4
174
175//........................................................................
176// PushButton
177
178#define PB_MOVETORIGHT				1
179#define PB_MOVETOLEFT				2
180#define PB_FIELDRIGHT				3
181#define PB_ALLFIELDSRIGHT			4
182#define PB_FIELDLEFT				5
183#define PB_ALLFIELDSLEFT			6
184#define PB_FORMDATASOURCE			7
185
186//........................................................................
187// RadioButton
188
189#define RB_DEFSELECTION_YES			1
190#define RB_DEFSELECTION_NO			2
191#define RB_STOREINFIELD_YES			3
192#define RB_STOREINFIELD_NO			4
193
194//........................................................................
195// ComboBox
196
197#define CMB_VALUELISTFIELD			1
198#define CMB_TABLEFIELD				2
199
200//........................................................................
201// String
202
203#define STR_FIELDINFO_LISTBOX		1
204#define STR_FIELDINFO_COMBOBOX		2
205
206//........................................................................
207// Image
208
209#define IMG_TABLE                   1
210#define IMG_TABLE_HC                2
211#define IMG_QUERY                   3
212#define IMG_QUERY_HC                4
213
214//========================================================================
215// defines
216
217#define WINDOW_SIZE_X		260
218#define WINDOW_SIZE_Y		185
219#define WINDOW_HALF_SIZE_X	( WINDOW_SIZE_X / 2 )
220
221#define BUTTON_SIZE_X		50
222#define BUTTON_SIZE_Y		14
223
224#define ITEM_BUTTON_SIZE_X	20
225#define ITEM_BUTTON_SIZE_Y	12
226
227
228
229#endif // _EXTENSIONS_DBP_DBPRESID_HRC_
230
231