1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
28 #include "dbaccess_helpid.hrc"
29 #include "dbu_dlg.hrc"
30 #include "advancedsettings.hrc"
32 //-------------------------------------------------------------------------
34 #define AUTO_DATAHANDLING(AUTO_Y) \
35 FixedLine FL_DATAHANDLING \
37 Pos = MAP_APPFONT ( RELATED_CONTROLS , AUTO_Y ) ; \
38 Size = MAP_APPFONT ( ADVANCED_PAGE_X - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ; \
39 Text [ en-US ] = "Options"; \
42 //-------------------------------------------------------------------------
44 #define AUTO_SQL92CHECK(AUTO_Y) \
45 CheckBox CB_SQL92CHECK \
47 Pos = MAP_APPFONT ( 6 , AUTO_Y) ; \
48 Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
50 HelpId = HID_DSADMIN_SQL92CHECK; \
51 Text[ en-US ] = "Use SQL92 naming constraints"; \
54 //-------------------------------------------------------------------------
56 #define AUTO_APPENDTABLEALIAS(AUTO_Y) \
57 CheckBox CB_APPENDTABLEALIAS \
59 Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
60 Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
62 HelpId = HID_DSADMIN_APPENDTABLEALIAS; \
63 Text[ en-US ] = "Append the table alias name on SELECT statements"; \
66 //-------------------------------------------------------------------------
68 #define AUTO_AS_BEFORE_CORR_NAME(AUTO_Y) \
69 CheckBox CB_AS_BEFORE_CORR_NAME \
71 Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
72 Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
74 HelpId = HID_DSADMIN_AS_BEFORE_CORRELATION_NAME; \
75 Text[ en-US ] = "Use keyword AS before table alias names"; \
78 //-------------------------------------------------------------------------
80 #define AUTO_ENABLEOUTERJOIN(AUTO_Y) \
81 CheckBox CB_ENABLEOUTERJOIN \
83 Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
84 Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
86 HelpId = HID_DSADMIN_ENABLEOUTERJOIN; \
87 Text [ en-US ] = "Use Outer Join syntax '{OJ }'"; \
91 //-------------------------------------------------------------------------
93 #define AUTO_IGNOREDRIVER_PRIV(AUTO_Y) \
94 CheckBox CB_IGNOREDRIVER_PRIV \
96 Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
97 Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
99 HelpId = HID_DSADMIN_IGNOREDRIVER_PRIV; \
100 Text[ en-US ] = "Ignore the privileges from the database driver"; \
103 //-------------------------------------------------------------------------
105 #define AUTO_PARAMETERNAMESUBST(AUTO_Y) \
106 CheckBox CB_PARAMETERNAMESUBST \
108 Pos = MAP_APPFONT ( 6 , AUTO_Y) ; \
109 Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
111 HelpId = HID_DSADMIN_PARAMETERNAMESUBST; \
112 Text[ en-US ] = "Replace named parameters with '?'"; \
115 //-------------------------------------------------------------------------
117 #define AUTO_SUPPRESVERSIONCOLUMN(AUTO_Y) \
118 CheckBox CB_SUPPRESVERSIONCL \
120 Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
121 Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
123 HelpId = HID_DSADMIN_SUPPRESS_VERSIONCL; \
124 Text [ en-US ] = "Display version columns (when available)"; \
127 //-------------------------------------------------------------------------
129 #define AUTO_CATALOG(AUTO_Y) \
130 CheckBox CB_CATALOG \
132 Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
133 Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
135 HelpId = HID_DSADMIN_CATALOG; \
136 Text [ en-US ] = "Use catalog name in SELECT statements"; \
140 //-------------------------------------------------------------------------
142 #define AUTO_SCHEMA(AUTO_Y) \
145 Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
146 Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
148 HelpId = HID_DSADMIN_SCHEMA; \
149 Text [ en-US ] = "Use schema name in SELECT statements"; \
152 //-------------------------------------------------------------------------
154 #define AUTO_IGNOREINDEXAPPENDIX(AUTO_Y) \
155 CheckBox CB_IGNOREINDEXAPPENDIX \
157 Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
158 Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
160 HelpId = HID_DSADMIN_IGNOREINDEXAPPENDIX; \
161 Text[ en-US ] = "Create index with ASC or DESC statement"; \
164 //-------------------------------------------------------------------------
166 #define AUTO_DOSLINEENDS(AUTO_Y) \
167 CheckBox CB_DOSLINEENDS \
169 Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
170 Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
172 HelpId = HID_DSADMIN_DOSLINEENDS; \
173 Text [ en-US ] = "End text lines with CR+LF"; \
176 //-------------------------------------------------------------------------
177 #define AUTO_IGNORECURRENCY(AUTO_Y) \
178 CheckBox CB_IGNORECURRENCY \
180 Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
181 Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
183 HelpId = HID_DSADMIN_IGNORECURRENCY; \
184 Text [ en-US ] = "Ignore currency field information"; \
187 //-------------------------------------------------------------------------
189 #define AUTO_CHECKREQUIRED(AUTO_Y) \
190 CheckBox CB_CHECK_REQUIRED \
192 Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
193 Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
195 HelpId = HID_DSADMIN_CHECK_REQUIRED_FIELDS; \
196 Text [ en-US ] = "Form data input checks for required fields"; \
199 #define AUTO_ESCAPE_DATETIME(AUTO_Y) \
200 CheckBox CB_ESCAPE_DATETIME \
202 Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
203 Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
205 HelpId = HID_DSADMIN_ESCAPE_DATETIME; \
206 Text [ en-US ] = "Use ODBC conformant date/time literals"; \
210 #define AUTO_PRIMARY_KEY_SUPPORT(AUTO_Y) \
211 CheckBox CB_PRIMARY_KEY_SUPPORT \
213 Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
214 Size = MAP_APPFONT ( ADVANCED_PAGE_X - 12 , CHECKBOX_HEIGHT ) ; \
216 HelpId = HID_DSADMIN_PRIMARY_KEY_SUPPORT; \
217 Text [ en-US ] = "Supports primary keys"; \
220 #define AUTO_RESPECTRESULTSETTYPE(AUTO_Y) \
221 CheckBox CB_RESPECTRESULTSETTYPE \
223 Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
224 Size = MAP_APPFONT ( ADVANCED_PAGE_X - 12 , CHECKBOX_HEIGHT ) ; \
226 HelpId = HID_DSADMIN_RESPECTRESULTSETTYPE; \
227 Text [ en-US ] = "Respect the result set type from the database driver"; \
231 //-------------------------------------------------------------------------
234 StringList [ en-US ] = \
236 < "Default" ; Default ; > ; \
237 < "SQL" ; Default ; > ; \
238 < "Mixed" ; Default ; > ; \
239 < "MS Access" ; Default ; > ; \
243 #define AUTO_BOOLEANCOMPARISON(AUTO_Y) \
244 FixedText FT_BOOLEANCOMPARISON \
246 Pos = MAP_APPFONT ( START_X , AUTO_Y + ( LISTBOX_HEIGHT - CHECKBOX_HEIGHT ) / 2 ) ; \
247 Size = MAP_APPFONT ( 100 , CHECKBOX_HEIGHT ); \
248 Text [ en-US ] = "Comparison of Boolean values"; \
250 ListBox LB_BOOLEANCOMPARISON \
252 Pos = MAP_APPFONT ( START_X + 100, AUTO_Y ) ; \
253 Size = MAP_APPFONT ( 60 , LISTBOX_HEIGHT ) ; \
258 HelpId = HID_DSADMIN_BOOLEANCOMPARISON; \
262 #define AUTO_MAXROWSCAN(AUTO_Y) \
263 FixedText FT_MAXROWSCAN \
265 Pos = MAP_APPFONT ( START_X , AUTO_Y + ( LISTBOX_HEIGHT - CHECKBOX_HEIGHT ) / 2 ) ; \
266 Size = MAP_APPFONT ( 100 , CHECKBOX_HEIGHT ); \
267 Text [ en-US ] = "Rows to scan column types"; \
269 NumericField NF_MAXROWSCAN \
271 Pos = MAP_APPFONT ( START_X + 100, AUTO_Y ) ; \
272 Size = MAP_APPFONT ( 60 , EDIT_HEIGHT ) ; \
274 NoThousandSep = TRUE; \
276 HelpId = HID_DSADMIN_MAXROWSCAN; \
280 //-------------------------------------------------------------------------
282 TabPage PAGE_GENERATED_VALUES
284 HelpID = "dbaccess:TabPage:PAGE_GENERATED_VALUES";
286 Pos = MAP_APPFONT ( 0 , 0 ) ;
287 Size = MAP_APPFONT ( ADVANCED_PAGE_X , ADVANCED_PAGE_Y ) ;
290 FixedLine FL_SEPARATORAUTO
292 Pos = MAP_APPFONT ( 4, UNRELATED_CONTROLS ) ;
293 Size = MAP_APPFONT ( ADVANCED_PAGE_X - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ;
294 Text [ en-US ] = "Settings";
297 CheckBox CB_RETRIEVE_AUTO
299 Pos = MAP_APPFONT ( 6 , UNRELATED_CONTROLS + FIXEDTEXT_HEIGHT + RELATED_CONTROLS) ;
300 Size = MAP_APPFONT ( ADVANCED_PAGE_X - 2*UNRELATED_CONTROLS , CHECKBOX_HEIGHT ) ;
302 HelpId = HID_DSADMIN_AUTORETRIEVEENABLED;
303 Text [ en-US ] = "Re~trieve generated values";
306 FixedText FT_AUTOINCREMENTVALUE
308 Pos = MAP_APPFONT ( 15 , UNRELATED_CONTROLS + FIXEDTEXT_HEIGHT + 2*RELATED_CONTROLS + CHECKBOX_HEIGHT ) ;
309 Size = MAP_APPFONT ( ADVANCED_PAGE_X - 15 - 6 , FIXEDTEXT_HEIGHT ) ;
310 Text[ en-US ] = "~Auto-increment statement";
313 Edit ET_AUTOINCREMENTVALUE
316 Pos = MAP_APPFONT ( 15 , UNRELATED_CONTROLS + 2*FIXEDTEXT_HEIGHT + CHECKBOX_HEIGHT + 3*RELATED_CONTROLS ) ;
317 Size = MAP_APPFONT ( ADVANCED_PAGE_X - 15 - 2*UNRELATED_CONTROLS , EDIT_HEIGHT ) ;
319 HelpId = HID_DSADMIN_AUTOINCREMENTVALUE;
322 FixedText FT_RETRIEVE_AUTO
324 Pos = MAP_APPFONT ( 15 , UNRELATED_CONTROLS + 2*FIXEDTEXT_HEIGHT + CHECKBOX_HEIGHT + 4*RELATED_CONTROLS + EDIT_HEIGHT) ;
325 Size = MAP_APPFONT ( ADVANCED_PAGE_X - 15 - 6 , 10 ) ;
326 Text [ en-US ] = "~Query of generated values";
329 Edit ET_RETRIEVE_AUTO
332 Pos = MAP_APPFONT ( 15 , UNRELATED_CONTROLS + 3*FIXEDTEXT_HEIGHT + CHECKBOX_HEIGHT + 5*RELATED_CONTROLS + EDIT_HEIGHT ) ;
333 Size = MAP_APPFONT ( ADVANCED_PAGE_X - 15 - 2*UNRELATED_CONTROLS, EDIT_HEIGHT ) ;
335 HelpId = HID_DSADMIN_RETRIEVE_AUTO;
339 //-------------------------------------------------------------------------
341 TabPage PAGE_ADVANCED_SETTINGS_SPECIAL
343 HelpID = "dbaccess:TabPage:PAGE_ADVANCED_SETTINGS_SPECIAL";
345 Pos = MAP_APPFONT ( 0 , 0 ) ;
346 Size = MAP_APPFONT ( ADVANCED_PAGE_X , ADVANCED_PAGE_Y ) ;
348 AUTO_DATAHANDLING( RELATED_CONTROLS )
349 AUTO_SQL92CHECK( 1*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + RELATED_CONTROLS )
350 AUTO_APPENDTABLEALIAS( 2*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 1*CHECKBOX_HEIGHT + RELATED_CONTROLS )
351 AUTO_AS_BEFORE_CORR_NAME( 3*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 2*CHECKBOX_HEIGHT + RELATED_CONTROLS )
352 AUTO_ENABLEOUTERJOIN( 4*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 3*CHECKBOX_HEIGHT + RELATED_CONTROLS )
353 AUTO_IGNOREDRIVER_PRIV( 5*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 4*CHECKBOX_HEIGHT + RELATED_CONTROLS )
354 AUTO_PARAMETERNAMESUBST( 6*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 5*CHECKBOX_HEIGHT + RELATED_CONTROLS )
355 AUTO_SUPPRESVERSIONCOLUMN( 7*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 6*CHECKBOX_HEIGHT + RELATED_CONTROLS )
356 AUTO_CATALOG( 8*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 7*CHECKBOX_HEIGHT + RELATED_CONTROLS )
357 AUTO_SCHEMA( 9*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 8*CHECKBOX_HEIGHT + RELATED_CONTROLS )
358 AUTO_IGNOREINDEXAPPENDIX( 10*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 9*CHECKBOX_HEIGHT + RELATED_CONTROLS )
359 AUTO_DOSLINEENDS( 11*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 10*CHECKBOX_HEIGHT + RELATED_CONTROLS )
360 AUTO_CHECKREQUIRED( 12*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 11*CHECKBOX_HEIGHT + RELATED_CONTROLS )
361 AUTO_IGNORECURRENCY( 13*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 12*CHECKBOX_HEIGHT + RELATED_CONTROLS )
362 AUTO_ESCAPE_DATETIME( 14*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 14*CHECKBOX_HEIGHT + RELATED_CONTROLS )
363 AUTO_PRIMARY_KEY_SUPPORT( 15*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 15*CHECKBOX_HEIGHT + RELATED_CONTROLS )
364 AUTO_RESPECTRESULTSETTYPE( 16*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 16*CHECKBOX_HEIGHT + RELATED_CONTROLS )
365 AUTO_BOOLEANCOMPARISON( 17*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 15*CHECKBOX_HEIGHT + RELATED_CONTROLS + ( LISTBOX_HEIGHT - CHECKBOX_HEIGHT ) / 2 )
366 AUTO_MAXROWSCAN( 18*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 15*CHECKBOX_HEIGHT + RELATED_CONTROLS + ( LISTBOX_HEIGHT - CHECKBOX_HEIGHT ) / 2 )
369 //-------------------------------------------------------------------------
371 TabDialog DLG_DATABASE_ADVANCED
378 HelpId = HID_DSADMIN_ADVANCED;
383 HelpId = HID_DSADMIN_TABCONTROL;
386 String STR_GENERATED_VALUE
388 Text [ en-US ] = "Generated Values";
391 String STR_DS_BEHAVIOUR
393 Text [ en-US ] = "Special Settings";
396 Text [ en-US ] = "Advanced Settings" ;