xref: /trunk/main/dbaccess/source/ui/tabledesign/table.src (revision 78190a370f7d7129fed9a7e70ca122eaae71ce1d)
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#ifndef _DBU_TBL_HRC_
23#include "dbu_tbl.hrc"
24#endif
25#ifndef _DBA_DBACCESS_HELPID_HRC_
26#include "dbaccess_helpid.hrc"
27#endif
28#ifndef _DBACCESS_SLOTID_HRC_
29#include "dbaccess_slotid.hrc"
30#endif
31#ifndef DBACCESS_UI_BROWSER_ID_HXX
32#include "browserids.hxx"
33#endif
34#ifndef _GLOBLMN_HRC
35#include <svx/globlmn.hrc>
36#endif
37#ifndef DBAUI_TOOLBOX_HXX
38#include "toolbox.hrc"
39#endif
40
41#define MN_EDIT     20
42#define MN_VIEW     21
43#define MN_EXTRA    22
44#define MN_INDEX    23
45#define MN_WIN      30
46#define MN_HELP     31
47
48String STR_TABLEDESIGN_DBFIELDTYPES
49{
50    Text [ en-US ] = "Unknown;Text;Number;Date/Time;Date;Time;Yes/No;Currency;Memo;Counter;Image;Text (fix);Decimal;Binary (fix);Binary;BigInt;Double;Float;Real;Integer;Small Integer;Tiny Integer;SQL Null;Object;Distinct;Structure;Field;BLOB;CLOB;REF;OTHER;Bit (fix)" ;
51};
52
53String STR_TABLEDESIGN_UNDO_PRIMKEY
54{
55    Text [ en-US ] = "Insert/remove primary key" ;
56};
57
58String STR_VALUE_YES
59{
60    Text [ en-US ] = "Yes" ;
61};
62String STR_VALUE_NO
63{
64    Text [ en-US ] = "No" ;
65};
66String STR_VALUE_ASC
67{
68    Text [ en-US ] = "Ascending" ;
69};
70String STR_VALUE_DESC
71{
72    Text [ en-US ] = "Descending" ;
73};
74String STR_VALUE_NONE
75{
76    // Bemerkung : sollte auch in anderen Sprachen irgendwie zum Wort 'Wert' passen : Wert - keiner ....
77    Text [ en-US ] = "<none>" ;
78};
79
80String STR_TAB_FIELD_NAME
81{
82    Text [ en-US ] = "Field name" ;
83};
84String STR_TAB_FIELD_COLUMN_NAME
85{
86    Text [ en-US ] = "Field Name" ;
87};
88String STR_TAB_FIELD_DATATYPE
89{
90    Text [ en-US ] = "Field ~type" ;
91};
92String STR_TAB_FIELD_COLUMN_DATATYPE
93{
94    Text [ en-US ] = "Field Type" ;
95};
96String STR_TAB_FIELD_LENGTH
97{
98    Text [ en-US ] = "Field length" ;
99};
100String STR_TAB_HELP_TEXT
101{
102    Text [ en-US ] = "Description" ;
103};
104String STR_COLUMN_DESCRIPTION
105{
106    Text [ en-US ] = "Column Description" ;
107};
108String STR_TAB_FIELD_NULLABLE
109{
110    Text [ en-US ] = "Input required" ;
111};
112String STR_FIELD_AUTOINCREMENT
113{
114    Text [ en-US ] = "~AutoValue" ;
115};
116String STR_TAB_PROPERTIES
117{
118    Text [ en-US ] = "Field Properties" ;
119};
120String STR_TABPAGE_GENERAL
121{
122    Text [ en-US ] = "General" ;
123};
124String STR_TAB_TABLE_DESCRIPTION
125{
126    Text [ en-US ] = "Description:" ;
127};
128
129String STR_TAB_TABLE_PROPERTIES
130{
131    Text [ en-US ] = "Table properties" ;
132};
133
134Control RID_DB_TAB_EDITOR
135{
136    Pos = MAP_APPFONT ( 0 , 0 ) ;
137    Size = MAP_APPFONT ( 40 , 12 ) ;
138    TabStop = TRUE ;
139    SvLook = TRUE ;
140    Hide = TRUE ;
141    HelpId = HID_TABDESIGN_BACKGROUND ;
142};
143
144ErrorBox ERR_INVALID_LISTBOX_ENTRY
145{
146    Message [ en-US ] = "The text you entered is not a list element. " ;
147};
148
149Menu RID_TABLEDESIGNROWPOPUPMENU
150{
151    ItemList =
152    {
153    MenuItem
154    {
155        ITEM_EDIT_CUT
156    };
157    MenuItem
158    {
159        ITEM_EDIT_COPY
160    };
161    MenuItem
162    {
163        ITEM_EDIT_PASTE
164    };
165    MenuItem
166    {
167        ITEM_EDIT_DELETE
168    };
169    MenuItem
170    {
171        Identifier = SID_TABLEDESIGN_INSERTROWS ;
172        HelpID = HID_TABLEDESIGN_INSERTROWS ;
173        Text [ en-US ] = "Insert Rows" ;
174        };
175    MenuItem
176    {
177        Separator = TRUE ;
178    };
179    MenuItem
180    {
181        Identifier = SID_TABLEDESIGN_TABED_PRIMARYKEY ;
182        HelpID = HID_TABLEDESIGN_TABED_PRIMARYKEY ;
183        Checkable = TRUE ;
184        Text [ en-US ] = "Primary Key" ;
185        };
186    };
187};
188String STR_TABED_UNDO_CELLMODIFIED
189{
190    Text [ en-US ] = "Modify cell" ;
191};
192String STR_TABED_UNDO_ROWDELETED
193{
194    Text [ en-US ] = "Delete row" ;
195};
196String STR_TABED_UNDO_TYPE_CHANGED
197{
198    Text [ en-US ] = "Modify field type" ;
199};
200String STR_TABED_UNDO_ROWINSERTED
201{
202    Text [ en-US ] = "Insert row" ;
203};
204String STR_TABED_UNDO_NEWROWINSERTED
205{
206    Text [ en-US ] = "Insert new row" ;
207};
208String STR_TABED_UNDO_PRIMKEY
209{
210    Text [ en-US ] = "Insert/remove primary key" ;
211};
212
213String STR_DEFAULT_VALUE
214{
215    Text [ en-US ] = "~Default value" ;
216};
217String STR_FIELD_REQUIRED
218{
219    Text [ en-US ] = "~Entry required" ;
220};
221String STR_TEXT_LENGTH
222{
223    Text [ en-US ] = "~Length" ;
224};
225String STR_NUMERIC_TYPE
226{
227    Text [ en-US ] = "~Type" ;
228};
229String STR_LENGTH
230{
231    Text [ en-US ] = "~Length" ;
232};
233String STR_SCALE
234{
235    Text [ en-US ] = "Decimal ~places" ;
236};
237String STR_FORMAT
238{
239    Text [ en-US ] = "Format example" ;
240};
241String STR_HELP_BOOL_DEFAULT
242{
243    Text [ en-US ] = "Select a value that is to appear in all new records as default.\nIf the field is not to have a default value, select the empty string." ;
244};
245String STR_HELP_DEFAULT_VALUE
246{
247    Text [ en-US ] = "Enter a default value for this field.\n\nWhen you later enter data in the table, this string will be used in each new record for the field selected. It should, therefore, correspond to the cell format that needs to be entered below." ;
248};
249String STR_HELP_FIELD_REQUIRED
250{
251    Text [ en-US ] = "Activate this option if this field cannot contain NULL values, i.e. the user must always enter data." ;
252};
253String STR_HELP_TEXT_LENGTH
254{
255    Text [ en-US ] = "Enter the maximum text length permitted." ;
256};
257String STR_HELP_NUMERIC_TYPE
258{
259    Text [ en-US ] = "Enter the number format." ;
260};
261String STR_HELP_LENGTH
262{
263    Text [ en-US ] = "Determine the length data can have in this field.\n\nIf decimal fields, then the maximum length of the number to be entered, if binary fields, then the length of the data block.\nThe value will be corrected accordingly when it exceeds the maximum for this database." ;
264};
265String STR_HELP_SCALE
266{
267    Text [ en-US ] = "Specify the number of decimal places permitted in this field." ;
268};
269String STR_HELP_FORMAT_CODE
270{
271    Text [ en-US ] = "This is where you see how the data would be displayed in the current format (use the button on the right to modify the format)." ;
272};
273String STR_HELP_FORMAT_BUTTON
274{
275    Text [ en-US ] = "This is where you determine the output format of the data." ;
276};
277String STR_HELP_AUTOINCREMENT
278{
279    Text [ en-US ] = "Choose if this field should contain AutoIncrement values.\n\nYou can not enter data in fields of this type. An intrinsic value will be assigned to each new record automatically (resulting from the increment of the previous record)." ;
280};
281PushButton PB_FORMAT
282{
283    TabStop = TRUE ;
284    Text = "~..." ;
285};
286String STR_TABLEDESIGN_DUPLICATE_NAME
287{
288    Text [ en-US ] = "The table cannot be saved because column name \"$column$\" was assigned twice." ;
289};
290String STR_TBL_COLUMN_IS_KEYCOLUMN
291{
292    Text [ en-US ] = "The column \"$column$\" belongs to the primary key. If the column is deleted, the primary key will also be deleted. Do you really want to continue?" ;
293};
294String STR_TBL_COLUMN_IS_KEYCOLUMN_TITLE
295{
296    Text [ en-US ] = "Primary Key Affected" ;
297};
298String STR_COLUMN_NAME
299{
300    Text [ en-US ] = "Column" ;
301};
302String STR_QRY_CONTINUE
303{
304    Text [ en-US ] = "Continue anyway?" ;
305};
306String STR_STAT_WARNING
307{
308    Text [ en-US ] = "Warning!" ;
309};
310QueryBox TABLE_DESIGN_SAVEMODIFIED
311{
312    Buttons = WB_YES_NO_CANCEL ;
313    DefButton = WB_DEF_YES ;
314    Message [ en-US ] = "The table has been changed.\nDo you want to save the changes?" ;
315};
316QueryBox TABLE_QUERY_CONNECTION_LOST
317{
318    Buttons = WB_YES_NO ;
319    Message [ en-US ] = "The connection to the database was lost! The table design can only be used with limited functionality without a connection.\nReconnect?" ;
320};
321String STR_TABLEDESIGN_CONNECTION_MISSING
322{
323    Text [ en-US ] = "The table could not be saved due to problems connecting to the database." ;
324};
325String STR_TABLEDESIGN_DATASOURCE_DELETED
326{
327    Text [ en-US ] = "The table filter could not be adjusted because the data source has been deleted." ;
328};
329
330QueryBox QUERY_SAVE_TABLE_EDIT_INDEXES
331{
332    Message [ en-US ] = "Before you can edit the indexes of a table, you have to save it.\nDo you want to save the changes now?" ;
333
334    Buttons = WB_YES_NO ;
335};
336String STR_TABLEDESIGN_NO_PRIM_KEY_HEAD
337{
338    Text [ en-US ] = "No primary key" ;
339};
340String STR_TABLEDESIGN_NO_PRIM_KEY
341{
342    Text [ en-US ] = "A unique index or primary key is required for data record identification in this database.\nYou can only enter data into this table when one of these two structural conditions has been met.\n\nShould a primary key be created now?" ;
343};
344String STR_TABLEDESIGN_TITLE
345{
346    Text [ en-US ] = " - %PRODUCTNAME Base: Table Design" ;
347};
348
349/*
350 The menubar resource has become obsolete - you can now find the menubar definition at: <project>/uiconfig/dbtable/menubar/menubar.xml
351*/
352
353String STR_TABLEDESIGN_ALTER_ERROR
354{
355    Text [ en-US ] = "The column \"$column$\" could not be changed. Should the column instead be deleted and the new format appended?" ;
356};
357
358String STR_TABLEDESIGN_SAVE_ERROR
359{
360    Text [ en-US ] = "Error while saving the table design" ;
361};
362
363String STR_TABLEDESIGN_COULD_NOT_DROP_COL
364{
365    Text [ en-US ] = "The column $column$ could not be deleted." ;
366};
367
368QueryBox TABLE_DESIGN_ALL_ROWS_DELETED
369{
370    Buttons = WB_YES_NO_CANCEL ;
371    DefButton = WB_DEF_YES ;
372    Message [ en-US ] = "You are trying to delete all the columns in the table. A table cannot exist without columns. Should the table be deleted from the database? If not, the table will remain unchanged." ;
373};
374
375String STR_AUTOINCREMENT_VALUE
376{
377    Text [ en-US ] = "A~uto-increment statement" ;
378};
379String STR_HELP_AUTOINCREMENT_VALUE
380{
381    Text [ en-US ] = "Enter an SQL statement for the auto-increment field.\n\nThis statement will be directly transferred to the database when the table is created." ;
382};
383
384String STR_NO_TYPE_INFO_AVAILABLE
385{
386    Text [ en-US ] = "No type information could be retrieved from the database.\nThe table design mode is not available for this data source." ;
387};
388
389String STR_CHANGE_COLUMN_NAME
390{
391    Text [ en-US ] = "change field name" ;
392};
393
394String STR_CHANGE_COLUMN_TYPE
395{
396    Text [ en-US ] = "change field type" ;
397};
398
399String STR_CHANGE_COLUMN_DESCRIPTION
400{
401    Text [ en-US ] = "change field description" ;
402};
403
404String STR_CHANGE_COLUMN_ATTRIBUTE
405{
406    Text [ en-US ] = "change field attribute" ;
407};
408
409// ******************************************************************* EOF
410