1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
|
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: advancedsettings.src,v $
* $Revision: 1.6 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#include "dbaccess_helpid.hrc"
#include "dbu_dlg.hrc"
#include "advancedsettings.hrc"
//-------------------------------------------------------------------------
#define AUTO_DATAHANDLING(AUTO_Y) \
FixedLine FL_DATAHANDLING \
{ \
Pos = MAP_APPFONT ( RELATED_CONTROLS , AUTO_Y ) ; \
Size = MAP_APPFONT ( ADVANCED_PAGE_X - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ; \
Text [ en-US ] = "Options"; \
};
//-------------------------------------------------------------------------
#define AUTO_SQL92CHECK(AUTO_Y) \
CheckBox CB_SQL92CHECK \
{ \
Pos = MAP_APPFONT ( 6 , AUTO_Y) ; \
Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
TabStop = TRUE ; \
HelpId = HID_DSADMIN_SQL92CHECK; \
Text[ en-US ] = "Use SQL92 naming constraints"; \
};
//-------------------------------------------------------------------------
#define AUTO_APPENDTABLEALIAS(AUTO_Y) \
CheckBox CB_APPENDTABLEALIAS \
{ \
Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
TabStop = TRUE ; \
HelpId = HID_DSADMIN_APPENDTABLEALIAS; \
Text[ en-US ] = "Append the table alias name on SELECT statements"; \
};
//-------------------------------------------------------------------------
#define AUTO_AS_BEFORE_CORR_NAME(AUTO_Y) \
CheckBox CB_AS_BEFORE_CORR_NAME \
{ \
Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
TabStop = TRUE ; \
HelpId = HID_DSADMIN_AS_BEFORE_CORRELATION_NAME; \
Text[ en-US ] = "Use keyword AS before table alias names"; \
};
//-------------------------------------------------------------------------
#define AUTO_ENABLEOUTERJOIN(AUTO_Y) \
CheckBox CB_ENABLEOUTERJOIN \
{ \
Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
TabStop = TRUE ; \
HelpId = HID_DSADMIN_ENABLEOUTERJOIN; \
Text [ en-US ] = "Use Outer Join syntax '{OJ }'"; \
};
//-------------------------------------------------------------------------
#define AUTO_IGNOREDRIVER_PRIV(AUTO_Y) \
CheckBox CB_IGNOREDRIVER_PRIV \
{ \
Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
TabStop = TRUE ; \
HelpId = HID_DSADMIN_IGNOREDRIVER_PRIV; \
Text[ en-US ] = "Ignore the privileges from the database driver"; \
};
//-------------------------------------------------------------------------
#define AUTO_PARAMETERNAMESUBST(AUTO_Y) \
CheckBox CB_PARAMETERNAMESUBST \
{ \
Pos = MAP_APPFONT ( 6 , AUTO_Y) ; \
Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
TabStop = TRUE ; \
HelpId = HID_DSADMIN_PARAMETERNAMESUBST; \
Text[ en-US ] = "Replace named parameters with '?'"; \
};
//-------------------------------------------------------------------------
#define AUTO_SUPPRESVERSIONCOLUMN(AUTO_Y) \
CheckBox CB_SUPPRESVERSIONCL \
{ \
Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
TabStop = TRUE ; \
HelpId = HID_DSADMIN_SUPPRESS_VERSIONCL; \
Text [ en-US ] = "Display version columns (when available)"; \
};
//-------------------------------------------------------------------------
#define AUTO_CATALOG(AUTO_Y) \
CheckBox CB_CATALOG \
{ \
Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
TabStop = TRUE ; \
HelpId = HID_DSADMIN_CATALOG; \
Text [ en-US ] = "Use catalog name in SELECT statements"; \
};
//-------------------------------------------------------------------------
#define AUTO_SCHEMA(AUTO_Y) \
CheckBox CB_SCHEMA \
{ \
Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
TabStop = TRUE ; \
HelpId = HID_DSADMIN_SCHEMA; \
Text [ en-US ] = "Use schema name in SELECT statements"; \
};
//-------------------------------------------------------------------------
#define AUTO_IGNOREINDEXAPPENDIX(AUTO_Y) \
CheckBox CB_IGNOREINDEXAPPENDIX \
{ \
Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
TabStop = TRUE ; \
HelpId = HID_DSADMIN_IGNOREINDEXAPPENDIX; \
Text[ en-US ] = "Create index with ASC or DESC statement"; \
};
//-------------------------------------------------------------------------
#define AUTO_DOSLINEENDS(AUTO_Y) \
CheckBox CB_DOSLINEENDS \
{ \
Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
TabStop = TRUE ; \
HelpId = HID_DSADMIN_DOSLINEENDS; \
Text [ en-US ] = "End text lines with CR+LF"; \
};
//-------------------------------------------------------------------------
#define AUTO_IGNORECURRENCY(AUTO_Y) \
CheckBox CB_IGNORECURRENCY \
{ \
Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
TabStop = TRUE ; \
HelpId = HID_DSADMIN_IGNORECURRENCY; \
Text [ en-US ] = "Ignore currency field information"; \
};
//-------------------------------------------------------------------------
#define AUTO_CHECKREQUIRED(AUTO_Y) \
CheckBox CB_CHECK_REQUIRED \
{ \
Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
TabStop = TRUE ; \
HelpId = HID_DSADMIN_CHECK_REQUIRED_FIELDS; \
Text [ en-US ] = "Form data input checks for required fields"; \
};
#define AUTO_ESCAPE_DATETIME(AUTO_Y) \
CheckBox CB_ESCAPE_DATETIME \
{ \
Pos = MAP_APPFONT ( 6 , AUTO_Y ) ; \
Size = MAP_APPFONT ( ADVANCED_PAGE_X -12 , CHECKBOX_HEIGHT ) ; \
TabStop = TRUE ; \
HelpId = HID_DSADMIN_ESCAPE_DATETIME; \
Text [ en-US ] = "Use ODBC conformant date/time literals"; \
};
//-------------------------------------------------------------------------
#define WORKAROUND \
StringList [ en-US ] = \
{ \
< "Default" ; Default ; > ; \
< "SQL" ; Default ; > ; \
< "Mixed" ; Default ; > ; \
< "MS Access" ; Default ; > ; \
};
#define AUTO_BOOLEANCOMPARISON(AUTO_Y) \
FixedText FT_BOOLEANCOMPARISON \
{ \
Pos = MAP_APPFONT ( START_X , AUTO_Y + ( LISTBOX_HEIGHT - CHECKBOX_HEIGHT ) / 2 ) ; \
Size = MAP_APPFONT ( 100 , CHECKBOX_HEIGHT ); \
Text [ en-US ] = "Comparison of Boolean values"; \
}; \
ListBox LB_BOOLEANCOMPARISON \
{ \
Pos = MAP_APPFONT ( START_X + 100, AUTO_Y ) ; \
Size = MAP_APPFONT ( 60 , LISTBOX_HEIGHT ) ; \
TabStop = TRUE ; \
SvLook = TRUE; \
DropDown = TRUE; \
Border = TRUE; \
HelpId = HID_DSADMIN_BOOLEANCOMPARISON; \
WORKAROUND \
}; \
//-------------------------------------------------------------------------
TabPage PAGE_GENERATED_VALUES
{
SVLook = TRUE ;
Pos = MAP_APPFONT ( 0 , 0 ) ;
Size = MAP_APPFONT ( ADVANCED_PAGE_X , ADVANCED_PAGE_Y ) ;
Hide = TRUE;
FixedLine FL_SEPARATORAUTO
{
Pos = MAP_APPFONT ( 4, UNRELATED_CONTROLS ) ;
Size = MAP_APPFONT ( ADVANCED_PAGE_X - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ;
Text [ en-US ] = "Settings";
};
CheckBox CB_RETRIEVE_AUTO
{
Pos = MAP_APPFONT ( 6 , UNRELATED_CONTROLS + FIXEDTEXT_HEIGHT + RELATED_CONTROLS) ;
Size = MAP_APPFONT ( ADVANCED_PAGE_X - 2*UNRELATED_CONTROLS , CHECKBOX_HEIGHT ) ;
TabStop = TRUE ;
HelpId = HID_DSADMIN_AUTORETRIEVEENABLED;
Text [ en-US ] = "Re~trieve generated values";
};
FixedText FT_AUTOINCREMENTVALUE
{
Pos = MAP_APPFONT ( 15 , UNRELATED_CONTROLS + FIXEDTEXT_HEIGHT + 2*RELATED_CONTROLS + CHECKBOX_HEIGHT ) ;
Size = MAP_APPFONT ( ADVANCED_PAGE_X - 15 - 6 , FIXEDTEXT_HEIGHT ) ;
Text[ en-US ] = "~Auto-increment statement";
};
Edit ET_AUTOINCREMENTVALUE
{
Border = TRUE ;
Pos = MAP_APPFONT ( 15 , UNRELATED_CONTROLS + 2*FIXEDTEXT_HEIGHT + CHECKBOX_HEIGHT + 3*RELATED_CONTROLS ) ;
Size = MAP_APPFONT ( ADVANCED_PAGE_X - 15 - 2*UNRELATED_CONTROLS , EDIT_HEIGHT ) ;
TabStop = TRUE ;
HelpId = HID_DSADMIN_AUTOINCREMENTVALUE;
};
FixedText FT_RETRIEVE_AUTO
{
Pos = MAP_APPFONT ( 15 , UNRELATED_CONTROLS + 2*FIXEDTEXT_HEIGHT + CHECKBOX_HEIGHT + 4*RELATED_CONTROLS + EDIT_HEIGHT) ;
Size = MAP_APPFONT ( ADVANCED_PAGE_X - 15 - 6 , 10 ) ;
Text [ en-US ] = "~Query of generated values";
};
Edit ET_RETRIEVE_AUTO
{
Border = TRUE ;
Pos = MAP_APPFONT ( 15 , UNRELATED_CONTROLS + 3*FIXEDTEXT_HEIGHT + CHECKBOX_HEIGHT + 5*RELATED_CONTROLS + EDIT_HEIGHT ) ;
Size = MAP_APPFONT ( ADVANCED_PAGE_X - 15 - 2*UNRELATED_CONTROLS, EDIT_HEIGHT ) ;
TabStop = TRUE ;
HelpId = HID_DSADMIN_RETRIEVE_AUTO;
};
};
//-------------------------------------------------------------------------
TabPage PAGE_ADVANCED_SETTINGS_SPECIAL
{
SVLook = TRUE ;
Pos = MAP_APPFONT ( 0 , 0 ) ;
Size = MAP_APPFONT ( ADVANCED_PAGE_X , ADVANCED_PAGE_Y ) ;
Hide = TRUE;
AUTO_DATAHANDLING( RELATED_CONTROLS )
AUTO_SQL92CHECK( 1*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + RELATED_CONTROLS )
AUTO_APPENDTABLEALIAS( 2*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 1*CHECKBOX_HEIGHT + RELATED_CONTROLS )
AUTO_AS_BEFORE_CORR_NAME( 3*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 2*CHECKBOX_HEIGHT + RELATED_CONTROLS )
AUTO_ENABLEOUTERJOIN( 4*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 3*CHECKBOX_HEIGHT + RELATED_CONTROLS )
AUTO_IGNOREDRIVER_PRIV( 5*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 4*CHECKBOX_HEIGHT + RELATED_CONTROLS )
AUTO_PARAMETERNAMESUBST( 6*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 5*CHECKBOX_HEIGHT + RELATED_CONTROLS )
AUTO_SUPPRESVERSIONCOLUMN( 7*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 6*CHECKBOX_HEIGHT + RELATED_CONTROLS )
AUTO_CATALOG( 8*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 7*CHECKBOX_HEIGHT + RELATED_CONTROLS )
AUTO_SCHEMA( 9*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 8*CHECKBOX_HEIGHT + RELATED_CONTROLS )
AUTO_IGNOREINDEXAPPENDIX( 10*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 9*CHECKBOX_HEIGHT + RELATED_CONTROLS )
AUTO_DOSLINEENDS( 11*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 10*CHECKBOX_HEIGHT + RELATED_CONTROLS )
AUTO_CHECKREQUIRED( 12*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 11*CHECKBOX_HEIGHT + RELATED_CONTROLS )
AUTO_IGNORECURRENCY( 13*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 12*CHECKBOX_HEIGHT + RELATED_CONTROLS )
AUTO_ESCAPE_DATETIME( 14*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 14*CHECKBOX_HEIGHT + RELATED_CONTROLS )
AUTO_BOOLEANCOMPARISON( 15*RELATED_CONTROLS + FIXEDTEXT_HEIGHT + 13*CHECKBOX_HEIGHT + RELATED_CONTROLS + ( LISTBOX_HEIGHT - CHECKBOX_HEIGHT ) / 2 )
};
//-------------------------------------------------------------------------
TabDialog DLG_DATABASE_ADVANCED
{
OutputSize = TRUE ;
SVLook = TRUE ;
Moveable = TRUE ;
Closeable = TRUE ;
Hide = TRUE;
HelpId = HID_DSADMIN_ADVANCED;
TabControl 1
{
OutputSize = TRUE ;
HelpId = HID_DSADMIN_TABCONTROL;
SingleLine=TRUE;
};
String STR_GENERATED_VALUE
{
Text [ en-US ] = "Generated Values";
};
String STR_DS_BEHAVIOUR
{
Text [ en-US ] = "Special Settings";
};
Text [ en-US ] = "Advanced Properties" ;
};
|