summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/querydesign/query.src
blob: 4906c99b6a21a87616c3704bc244c93084b2dfb8 (plain)
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
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
/*************************************************************************
 *
 *  OpenOffice.org - a multi-platform office productivity suite
 *
 *  $RCSfile: query.src,v $
 *
 *  $Revision: 1.97 $
 *
 *  last change: $Author: ihi $ $Date: 2007-04-19 15:06:45 $
 *
 *  The Contents of this file are made available subject to
 *  the terms of GNU Lesser General Public License Version 2.1.
 *
 *
 *    GNU Lesser General Public License Version 2.1
 *    =============================================
 *    Copyright 2005 by Sun Microsystems, Inc.
 *    901 San Antonio Road, Palo Alto, CA 94303, USA
 *
 *    This library is free software; you can redistribute it and/or
 *    modify it under the terms of the GNU Lesser General Public
 *    License version 2.1, as published by the Free Software Foundation.
 *
 *    This library 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 for more details.
 *
 *    You should have received a copy of the GNU Lesser General Public
 *    License along with this library; if not, write to the Free Software
 *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *    MA  02111-1307  USA
 *
 ************************************************************************/
#ifndef _DBU_QRY_HRC_
#include "dbu_qry.hrc"
#endif
#ifndef DBAUI_QUERY_HRC
#include "Query.hrc"
#endif
#ifndef _GLOBLMN_HRC
#include <svx/globlmn.hrc>
#endif
#ifndef _CNTIDS_HRC
#include <sfx2/cntids.hrc>
#endif
#ifndef DBACCESS_UI_BROWSER_ID_HXX
#include "browserids.hxx"
#endif
#ifndef _DBA_DBACCESS_HELPID_HRC_
#include "dbaccess_helpid.hrc"
#endif
#ifndef DBAUI_TOOLBOX_HXX
#include "toolbox.hrc"
#endif

#define MN_EDIT 20
#define MN_VIEW 21
#define MN_EXTRA 22
#define MN_INSERT 23
#define MN_WIN 30
#define MN_HELP 31

Menu RID_MENU_JOINVIEW_CONNECTION
{
    ItemList =
    {
        MenuItem
        {
            ITEM_EDIT_DELETE
        };
        MenuItem
        {
            MID_DBUI_QUERY_EDIT_JOINCONNECTION
        };
    };
};

Menu RID_MENU_JOINVIEW_TABLE
{
    ItemList =
    {
        MenuItem
        {
            ITEM_EDIT_DELETE
        };
     };
};

Menu RID_QUERYCOLPOPUPMENU
{
    ItemList =
    {
        MenuItem
        {
            MID_COLUMN_WIDTH
        };
        MenuItem
        {
            Separator = TRUE ;
        };
        MenuItem
        {
            ITEM_EDIT_DELETE
        };
    };
};
ImageList IMG_JOINS
{
    Prefix = "jo";
    MaskColor   = Color {
            Red   = 0xffff;
            Green = 0x0000;
            Blue  = 0xffff;
    };
    IdList = {
        IMG_PRIMARY_KEY; IMG_FOREIGN_KEY;
    };
    IdCount = { 2; };
};
ImageList IMG_JOINS_H
{
    Prefix = "joh";
    MaskColor   = Color {
            Red   = 0xffff;
            Green = 0x0000;
            Blue  = 0xffff;
    };
    IdList = {
        IMG_PRIMARY_KEY; IMG_FOREIGN_KEY;
    };
    IdCount = { 2; };
};

String STR_QUERY_UNDO_TABWINSHOW
{
    Text [ en-US ] = "Add Table Window" ;
};

String STR_QUERY_UNDO_MOVETABWIN
{
    Text [ en-US ] = "Move table window" ;
};
String STR_QUERY_UNDO_INSERTCONNECTION
{
    Text [ en-US ] = "Insert Join" ;
};

String STR_QUERY_UNDO_REMOVECONNECTION
{
    Text [ en-US ] = "Delete Join" ;
};

String STR_QUERY_UNDO_SIZETABWIN
{
    Text [ en-US ] = "Resize table window" ;
};
String STR_QUERY_UNDO_TABFIELDDELETE
{
    Text [ en-US ] = "Delete Column" ;
};

String STR_QUERY_UNDO_TABFIELDMOVED
{
    Text [ en-US ] = "Move column";
};

String STR_QUERY_UNDO_TABFIELDCREATE
{
    Text [ en-US ] = "Add Column" ;
};
String RID_STR_TABLE_DOESNT_EXIST
{
    Text [ en-US ] = "Invalid expression, table '$name$' does not exist.";
};

String RID_STR_FIELD_DOESNT_EXIST
{
    Text [ en-US ] = "Invalid expression, field name '$name$' does not exist.";
};
String RID_STR_TOMUCHTABLES
{
    Text [ en-US ] = "The query covers #num# tables. The selected database type, however, can only process a maximum of #maxnum# table(s) per statement.";
};

String STR_QUERY_UNDO_TABWINDELETE
{
    Text [ en-US ] = "Delete Table Window" ;
};

String STR_QUERY_UNDO_MODIFY_CELL
{
    Text [ en-US ] = "Edit Column Description";
};
String STR_QUERY_UNDO_SIZE_COLUMN
{
    Text [ en-US ] = "Adjust column width";
};
String STR_QUERY_SORTTEXT
{
    Text [ en-US ] = "(not sorted);ascending;descending" ;
};

String STR_QUERY_FUNCTIONS
{
    Text [ en-US ] = "(no function);Group";
};
String STR_QUERY_NOTABLE
{
    Text [ en-US ] = "(no table)";
};
String STR_QRY_ORDERBY_UNRELATED
{
    Text [ en-US ] = "The database only supports sorting for visible fields.";
};
Menu RID_QUERYFUNCTION_POPUPMENU
{
    ItemList =
    {
        MenuItem
        {
            Identifier = ID_QUERY_FUNCTION ;
            HelpID = HID_QUERY_FUNCTION;
            Text [ en-US ] = "Functions";
        };
        MenuItem
        {
            Separator = TRUE ;
        };
        MenuItem
        {
            Identifier = ID_QUERY_TABLENAME ;
            HelpID = HID_QUERY_TABLENAME ;
            Text [ en-US ] = "Table Name";
        };
        MenuItem
        {
            Identifier = ID_QUERY_ALIASNAME ;
            HelpID = HID_QUERY_ALIASNAME ;
            Text [ en-US ] = "Alias";
        };
        MenuItem
        {
            Separator = TRUE;
        };
        MenuItem
        {
            Identifier = ID_QUERY_DISTINCT ;
            HelpID = HID_QUERY_DISTINCT ;
            Text [ en-US ] = "Distinct Values";
        };
    };
};
String STR_QUERY_HANDLETEXT
{
    Text [ en-US ] = "Field;Alias;Table;Sort;Visible;Function;Criterion;Or;Or";
};

String STR_QRY_TOO_MANY_COLUMNS
{
    Text [ en-US ] = "There are too many columns.";
};

ErrorBox ERR_QRY_CRITERIA_ON_ASTERISK
{
    Message [ en-US ] = "A condition cannot be applied to field [*]" ;
};
String STR_QRY_TOO_LONG_STATEMENT
{
    Text [ en-US ] = "The SQL statement created is too long.";
};
String STR_QRY_TOOCOMPLEX
{
    Text [ en-US ] = "Query is too complex" ;
};
String STR_QRY_NOSELECT
{
    Text [ en-US ] = "Nothing has been selected." ;
};
String STR_QRY_TOOMANYCOND
{
    Text [ en-US ] = "Too many search criteria" ;
};
String STR_QRY_SYNTAX
{
    Text [ en-US ] = "SQL syntax error" ;
};
ErrorBox ERR_QRY_ORDERBY_ON_ASTERISK
{
    Message [ en-US ] = "[*] cannot be used as a sort criterion.";
};
String STR_QUERY_TRUE
{
    Text [ en-US ] = "TRUE" ;
};
String STR_QUERY_FALSE
{
    Text [ en-US ] = "FALSE" ;
};
String STR_QRY_TOO_MANY_TABLES
{
    Text [ en-US ] = "There are too many tables.";
};

String STR_QRY_NATIVE
{
    Text [ en-US ] = "The statement will not be applied when querying in the SQL dialect of the database." ;
};
ErrorBox ERR_QRY_AMB_FIELD
{
    Message [ en-US ] = "Field name not found or not unique" ;
};
String STR_QRY_ILLEGAL_JOIN
{
    Text [ en-US ] = "Join could not be processed" ;
};

String STR_QUERY_SAVEMODIFIED
{
    Text [ en-US ] = "$object$ has been changed.\nDo you want to save the changes?" ;
};

Resource RSC_QUERY_OBJECT_TYPE
{
    String 1
    {

        Text [ en-US ] = "The query";
    };
    String 2
    {

        Text [ en-US ] = "The table view";
    };
    String 3
    {

        Text [ en-US ] = "The SQL statement";
    };
};

String STR_SVT_SQL_SYNTAX_ERROR
{
    Text [ en-US ] = "Syntax error in SQL statement" ;
};

String STR_QUERYDESIGN_NO_VIEW_SUPPORT
{
    Text [ en-US ] = "This database does not support table views.";
};

String STR_QUERYDESIGN_NO_VIEW_ASK
{
    Text [ en-US ] = "Do you want to create a query instead?";
};

ErrorBox ERR_QRY_NOSTATEMENT
{
    Message [ en-US ] = "No query could be created.";
};

ErrorBox ERR_QRY_NOCRITERIA
{
    Message [ en-US ] = "No query could be created because no fields were selected.";
};

/*
  The menubar resource has become obsolete - you can now find the menubar definition at: <project>/uiconfig/dbquery/menubar/menubar.xml
 */

String STR_DATASOURCE_DELETED
{
    Text [ en-US ] = "The corresponding data source has been deleted. Therefore, data relevant to that data source cannot be saved.";
};

String STR_QRY_COLUMN_NOT_FOUND
{
    Text [ en-US ] = "The column '$name$' is unknown.";
};

String STR_QRY_JOIN_COLUMN_COMPARE
{
    Text [ en-US ] = "Columns can only be compared using '='.";
};

String STR_QRY_LIKE_LEFT_NO_COLUMN
{
    Text [ en-US ] = "You must use a column name before 'LIKE'.";
};

String STR_QRY_CHECK_CASESENSITIVE
{
    Text [ en-US ] = "The column could not be found. Please note that the database is case-sensitive.";
};

String STR_QUERYDESIGN
{
    Text [ en-US ] = " - %PRODUCTNAME Base: Query Design";
};

String STR_VIEWDESIGN
{
    Text [ en-US ] = " - %PRODUCTNAME Base: View Design";
};

String STR_ERROR_PARSING_STATEMENT
{
    Text [ en-US ] = "The SQL command which constitutes the query could not be parsed.";
};

String STR_INFO_OPENING_IN_SQL_VIEW
{
    Text [ en-US ] = "The query will be opened in SQL view.";
};

String STR_STATEMENT_WITHOUT_RESULT_SET
{
    Text [ en-US ] = "The query does not create a result set, and thus cannot be part of another query.";
};