1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27
28#ifndef _EXTENSIONS_DBP_DBPRESID_HRC_
29#define _EXTENSIONS_DBP_DBPRESID_HRC_
30
31#include "dbpilots.hrc"
32#include "extensio.hrc"
33
34//========================================================================
35// basics
36
37#define RID_DIALOG_START				RID_DBP_START
38#define RID_PAGE_START					RID_DBP_START
39#define RID_STRING_START				RID_DBP_START
40#define RID_ERRORBOX_START				RID_DBP_START
41
42//========================================================================
43// strings
44
45#define RID_STR_GROUPWIZ_DBFIELD		(RID_STRING_START +  1 )
46#define RID_STR_COMBOWIZ_DBFIELD		(RID_STRING_START +  2 )
47#define RID_STR_LISTWIZARD_TITLE		(RID_STRING_START +  3 )
48#define RID_STR_COMBOWIZARD_TITLE		(RID_STRING_START +  4 )
49#define RID_STR_COULDNOTOPENTABLE		(RID_STRING_START +  5 )
50#define RID_STR_DATEPOSTFIX				(RID_STRING_START +  6 )
51#define RID_STR_TIMEPOSTFIX				(RID_STRING_START +  7 )
52#define RID_STR_TYPE_QUERY				(RID_STRING_START +  8 )
53#define RID_STR_TYPE_TABLE				(RID_STRING_START +  9 )
54#define RID_STR_TYPE_COMMAND			(RID_STRING_START + 10 )
55
56// please adjust RID_STRING_END (below) when adding new strings
57#define RID_STRING_END					RID_STR_TIMEPOSTFIX
58
59//========================================================================
60// dialogs
61
62#define RID_DLG_GROUPBOXWIZARD			( RID_DIALOG_START +  1 )
63#define RID_DLG_LISTCOMBOWIZARD			( RID_DIALOG_START +  2 )
64#define RID_DLG_GRIDWIZARD				( RID_DIALOG_START +  3 )
65
66// please adjust RID_DIALOG_END (below) when adding new dialogs
67#define RID_DIALOG_END					RID_DLG_GRIDWIZARD
68
69//========================================================================
70// tab pages
71
72#define RID_PAGE_TABLESELECTION				( RID_PAGE_START +  1 )
73#define RID_PAGE_GROUPRADIOSELECTION		( RID_PAGE_START +  2 )
74#define RID_PAGE_DEFAULTFIELDSELECTION		( RID_PAGE_START +  3 )
75#define RID_PAGE_OPTIONVALUES				( RID_PAGE_START +  4 )
76#define RID_PAGE_OPTION_DBFIELD				( RID_PAGE_START +  5 )
77#define RID_PAGE_OPTIONS_FINAL				( RID_PAGE_START +  6 )
78#define RID_PAGE_LCW_CONTENTSELECTION_TABLE	( RID_PAGE_START +  7 )
79#define RID_PAGE_LCW_CONTENTSELECTION_FIELD	( RID_PAGE_START +  8 )
80#define RID_PAGE_LCW_FIELDLINK				( RID_PAGE_START +  9 )
81#define RID_PAGE_GW_FIELDSELECTION			( RID_PAGE_START + 10 )
82#define RID_PAGE_FORM_DATASOURCE_STATUS		( RID_PAGE_START + 11 )
83
84// please adjust RID_PAGE_END (below) when adding new tab pages
85#define RID_PAGE_END						RID_PAGE_GW_FIELDSELECTION
86
87//========================================================================
88// ErrorBox
89
90#define RID_ERR_INVALID_FORM_CONNECTION		( RID_ERRORBOX_START +  1 )
91
92// please adjust RID_ERRORBOX_END (below) when adding new error boxes
93#define RID_ERRORBOX_END					RID_ERR_INVALID_FORM_CONNECTION
94
95
96//========================================================================
97//========================================================================
98//= range checks
99
100#if RID_STRING_END > RID_DBP_END
101	#error "please adjust the resource id ranges!!"
102#endif
103#if RID_DIALOG_END > RID_DBP_END
104	#error "please adjust the resource id ranges!!"
105#endif
106#if RID_PAGE_END > RID_DBP_END
107	#error "please adjust the resource id ranges!!"
108#endif
109#if RID_ERRORBOX_END > RID_DBP_END
110	#error "please adjust the resource id ranges!!"
111#endif
112
113//========================================================================
114// local ids
115
116//........................................................................
117// FixedLine
118
119#define FL_DATA						1
120#define FL_DEFAULTSELECTION			2
121#define FL_OPTIONVALUES				3
122#define FL_DATABASEFIELD_EXPL		4
123#define FL_NAMEIT					5
124#define FL_FRAME					6
125#define FL_FORMSETINGS				7
126
127//........................................................................
128// FixedText
129
130#define FT_DATASOURCE				 1
131#define FT_TABLE					 2
132#define	FT_RADIOLABELS				 3
133#define FT_RADIOBUTTONS				 4
134#define FT_DEFAULTSELECTION			 5
135#define FT_OPTIONVALUES_EXPL		 6
136#define FT_OPTIONVALUES				 7
137#define FT_DATABASEFIELD_EXPL		 8
138#define FT_DATABASEFIELD_QUEST		 9
139#define FT_NAMEIT					10
140#define FT_THATSALL					11
141#define FT_SELECTTABLE_LABEL		12
142#define FT_TABLEFIELDS				13
143#define FT_DISPLAYEDFIELD			14
144#define FT_CONTENTFIELD_INFO		15
145#define FT_VALUELISTFIELD			16
146#define FT_TABLEFIELD				17
147#define FT_EXPLANATION				18
148#define FT_EXISTING_FIELDS			19
149#define FT_SELECTED_FIELDS			20
150#define FT_FIELDLINK_DESC			21
151#define FT_FORMDATASOURCELABEL		22
152#define FT_FORMDATASOURCE			23
153#define FT_FORMTABLELABEL			24
154#define FT_FORMTABLE				25
155#define FT_FORMCONTENTTYPELABEL		26
156#define FT_FORMCONTENTTYPE			27
157
158//........................................................................
159// ListBox
160
161#define LB_DATASOURCE				1
162#define LB_TABLE					2
163#define LB_RADIOBUTTONS				3
164#define LB_DEFSELECTIONFIELD		3
165#define LB_STOREINFIELD				4
166#define LB_SELECTTABLE				5
167#define LB_SELECTFIELD				6
168#define LB_EXISTING_FIELDS			7
169#define LB_SELECTED_FIELDS			8
170
171//........................................................................
172// Edit
173
174#define ET_RADIOLABELS				1
175#define ET_OPTIONVALUE				2
176#define ET_NAMEIT					3
177#define ET_DISPLAYEDFIELD			4
178
179//........................................................................
180// PushButton
181
182#define PB_MOVETORIGHT				1
183#define PB_MOVETOLEFT				2
184#define PB_FIELDRIGHT				3
185#define PB_ALLFIELDSRIGHT			4
186#define PB_FIELDLEFT				5
187#define PB_ALLFIELDSLEFT			6
188#define PB_FORMDATASOURCE			7
189
190//........................................................................
191// RadioButton
192
193#define RB_DEFSELECTION_YES			1
194#define RB_DEFSELECTION_NO			2
195#define RB_STOREINFIELD_YES			3
196#define RB_STOREINFIELD_NO			4
197
198//........................................................................
199// ComboBox
200
201#define CMB_VALUELISTFIELD			1
202#define CMB_TABLEFIELD				2
203
204//........................................................................
205// String
206
207#define STR_FIELDINFO_LISTBOX		1
208#define STR_FIELDINFO_COMBOBOX		2
209
210//........................................................................
211// Image
212
213#define IMG_TABLE                   1
214#define IMG_TABLE_HC                2
215#define IMG_QUERY                   3
216#define IMG_QUERY_HC                4
217
218//========================================================================
219// defines
220
221#define WINDOW_SIZE_X		260
222#define WINDOW_SIZE_Y		185
223#define WINDOW_HALF_SIZE_X	( WINDOW_SIZE_X / 2 )
224
225#define BUTTON_SIZE_X		50
226#define BUTTON_SIZE_Y		14
227
228#define ITEM_BUTTON_SIZE_X	20
229#define ITEM_BUTTON_SIZE_Y	12
230
231
232
233#endif // _EXTENSIONS_DBP_DBPRESID_HRC_
234
235