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 ADABASUI_ADABASNEWDB_HRC
29#include "AdabasNewDb.hrc"
30#endif
31#include "dbaccess_helpid.hrc"
32#include "adabasui_resource.hrc"
33//==================================================================
34// NEWDB Admin
35//==================================================================
36#define WIN_X	268
37#define WIN_Y	210
38#define MOVE_Y	21
39#define ADJUST_X 45
40ModalDialog DLG_ADABAS_NEWDB
41{
42	Moveable	= TRUE ;
43	Closeable	= TRUE ;
44	OutputSize	= TRUE ;
45	SVLook		= TRUE;
46	HelpID		= HID_DLG_ADABAS_NEWDB ;
47	Size		= MAP_APPFONT ( WIN_X , WIN_Y + MOVE_Y) ;
48
49	FixedText FT_DATABASENAME
50	{
51		Pos		= MAP_APPFONT ( 12 , 6) ;
52		Size	= MAP_APPFONT ( 64 + ADJUST_X, 10 ) ;
53		Text[ en-US ] = "Database ~name";
54};
55	Edit ET_DATABASENAME
56	{
57		Border  = TRUE ;
58        Pos     = MAP_APPFONT ( 77 + ADJUST_X, 5) ;
59        Size    = MAP_APPFONT ( 161 - ADJUST_X, 12 ) ;
60		TabStop = TRUE ;
61		HelpID	= HID_DLG_ADABAS_DBNAME ;
62	};
63
64    FixedLine FL_USER
65	{
66		Pos		= MAP_APPFONT ( 6 , 3 + MOVE_Y) ;
67        Size    = MAP_APPFONT ( WIN_X - 12 , 8 ) ;
68		Text[ en-US ] = "User settings";
69};
70
71	FixedText FT_CONUSR
72	{
73		Pos		= MAP_APPFONT ( 12 , 31 + MOVE_Y) ;
74		Size	= MAP_APPFONT ( 64 + ADJUST_X, 10 ) ;
75		Text[ en-US ] = "~Control user";
76};
77	FixedText FT_SYSUSR
78	{
79		Pos		= MAP_APPFONT ( 12 , 14 + MOVE_Y) ;
80		Size	= MAP_APPFONT ( 64 + ADJUST_X, 10 ) ;
81		Text[ en-US ] = "~Administrator";
82};
83	FixedText FT_DOMAIN_USR
84	{
85		Pos		= MAP_APPFONT ( 12 , 48 + MOVE_Y) ;
86		Size	= MAP_APPFONT ( 64 + ADJUST_X, 10 ) ;
87		Text[ en-US ] = "~Domain user";
88};
89
90	Edit ET_SYSUSR
91	{
92		Border	= TRUE ;
93        Pos     = MAP_APPFONT ( 77 + ADJUST_X, 13 + MOVE_Y) ;
94		Size	= MAP_APPFONT ( 105 - ADJUST_X, 12 ) ;
95		TabStop = TRUE ;
96		HelpID	= HID_DLG_ADABAS_SYSUSR ;
97	};
98
99	PushButton PB_SYSPWD
100	{
101        Pos     = MAP_APPFONT ( 188 , 13 + MOVE_Y) ;
102		Size	= MAP_APPFONT ( 50 , 14 ) ;
103		TabStop = TRUE ;
104		HelpID	= HID_DLG_ADABAS_SYSPWD ;
105		Text[ en-US ] = "P~assword...";
106};
107
108	Edit ET_CONUSR
109	{
110		Border  = TRUE ;
111        Pos     = MAP_APPFONT ( 77 + ADJUST_X, 30 + MOVE_Y) ;
112		Size	= MAP_APPFONT ( 105 - ADJUST_X, 12 ) ;
113		TabStop = TRUE ;
114		HelpID	= HID_DLG_ADABAS_CONUSR ;
115	};
116
117	PushButton PB_CONPWD
118	{
119        Pos     = MAP_APPFONT ( 188 , 30 + MOVE_Y) ;
120		Size	= MAP_APPFONT ( 50 , 14 ) ;
121		TabStop = TRUE ;
122		HelpID	= HID_DLG_ADABAS_CONPWD ;
123		Text[ en-US ] = "~Password...";
124};
125	Edit ET_DOMAIN_USR
126	{
127        Pos     = MAP_APPFONT ( 77 + ADJUST_X, 47 + MOVE_Y) ;
128		Size	= MAP_APPFONT ( 105 - ADJUST_X, 12 ) ;
129		Border	= TRUE ;
130		TabStop = TRUE ;
131		ReadOnly= TRUE;
132		HelpID	= HID_DLG_ADABAS_USR ;
133		Text = "adabas";
134	};
135
136	PushButton PB_DOMAINPWD
137	{
138        Pos     = MAP_APPFONT ( 188 , 47 + MOVE_Y) ;
139		Size	= MAP_APPFONT ( 50 , 14 ) ;
140		TabStop = TRUE ;
141		HelpID	= HID_DLG_ADABAS_DOMAINPWD ;
142		Text[ en-US ] = "Passwo~rd...";
143};
144
145	FixedImage BMP_CON
146	{
147        Pos     = MAP_APPFONT ( 240 , 27 + MOVE_Y) ;
148		Size	= MAP_APPFONT ( 20 , 20 ) ;
149		HelpID	= HID_DLG_ADABAS_CON_PWD ;
150	};
151	FixedImage BMP_SYS
152	{
153        Pos     = MAP_APPFONT ( 240 , 11 + MOVE_Y) ;
154		Size	= MAP_APPFONT ( 20 , 20 ) ;
155		HelpID	= HID_DLG_ADABAS_SYS_PWD ;
156	};
157	FixedImage BMP_DOMAIN
158	{
159        Pos     = MAP_APPFONT ( 240 , 44 + MOVE_Y) ;
160		Size	= MAP_APPFONT ( 20 , 20 ) ;
161		HelpID	= HID_DLG_ADABAS_DOMAIN_PWD ;
162	};
163
164	FixedText FT_RESTORE
165	{
166		Pos		= MAP_APPFONT ( 12 , 13 + MOVE_Y) ;
167		Size	= MAP_APPFONT ( 64 + ADJUST_X, 10 ) ;
168		Text[ en-US ] = "~Backup file";
169};
170
171	Edit ET_RESTORE
172	{
173		Border	= TRUE ;
174        Pos     = MAP_APPFONT ( 77 + ADJUST_X, 13 + MOVE_Y) ;
175		Size	= MAP_APPFONT ( 105 - ADJUST_X, 12 ) ;
176		TabStop = TRUE ;
177		HelpID	= HID_DLG_ADABAS_RESTORE ;
178	};
179
180	PushButton PB_RESTORE
181	{
182        Pos     = MAP_APPFONT ( 188 , 13 + MOVE_Y) ;
183		Size	= MAP_APPFONT ( 50 , 14 ) ;
184		TabStop = TRUE ;
185		HelpID	= HID_DLG_ADABAS_PBRESTORE ;
186		Text[ en-US ]	= "...";
187};
188
189	/* DEVSPACE positions */
190    FixedLine FL_DBSETTINGS
191	{
192		Pos		= MAP_APPFONT ( 6 , 70 + MOVE_Y) ;
193        Size    = MAP_APPFONT ( WIN_X - 12 , 8 ) ;
194		Text[ en-US ] = "Database settings";
195};
196
197	FixedText FT_SYSDEVSPACE
198	{
199        Pos     = MAP_APPFONT ( 12 , 83 + MOVE_Y) ;
200        Size    = MAP_APPFONT ( 64 + ADJUST_X, 8 ) ;
201		Text[ en-US ] = "S~YSDEVSPACE";
202};
203
204	FixedText FT_TRANSACTIONLOG
205	{
206        Pos     = MAP_APPFONT ( 12 , 99 + MOVE_Y) ;
207        Size    = MAP_APPFONT ( 64 + ADJUST_X, 8 ) ;
208		Text[ en-US ] = "TRANSACTI~ONLOG";
209};
210
211	FixedText FT_DATADEVSPACE
212	{
213        Pos     = MAP_APPFONT ( 12 , 116 + MOVE_Y) ;
214        Size    = MAP_APPFONT ( 64 + ADJUST_X, 8 ) ;
215		Text[ en-US ] = "DATAD~EVSPACE";
216};
217
218	Edit ET_SYSDEVSPACE
219	{
220		Border	= TRUE ;
221        Pos     = MAP_APPFONT ( 77 + ADJUST_X, 81 + MOVE_Y) ;
222        Size    = MAP_APPFONT ( 161 - ADJUST_X, 12 ) ;
223		TabStop = TRUE ;
224		HelpID	= HID_DLG_ADABAS_SYSDEVSPACE ;
225	};
226
227	PushButton PB_SYSDEVSPACE
228	{
229		Pos		= MAP_APPFONT ( WIN_X - 24, 81 + MOVE_Y) ;
230		Size	= MAP_APPFONT ( 12 , 12 ) ;
231		TabStop = TRUE ;
232		HelpID	= HID_DLG_ADABAS_PBSYSDEVSPACE ;
233		Text[ en-US ]	= "...";
234};
235
236	Edit ET_TRANSACTIONLOG
237	{
238		Border	= TRUE ;
239        Pos     = MAP_APPFONT ( 77 + ADJUST_X, 97 + MOVE_Y) ;
240        Size    = MAP_APPFONT ( 161 - ADJUST_X, 12 ) ;
241		TabStop = TRUE ;
242		HelpID	= HID_DLG_ADABAS_TRANSACTIONLOG ;
243	};
244
245	PushButton PB_TRANSACTIONLOG
246	{
247		Pos		= MAP_APPFONT ( WIN_X - 24, 97+ MOVE_Y) ;
248		Size	= MAP_APPFONT ( 12 , 12 ) ;
249		TabStop = TRUE ;
250		HelpID	= HID_DLG_ADABAS_PBTRANSACTIONLOG ;
251		Text[ en-US ] = "...";
252};
253
254	Edit ET_DATADEVSPACE
255	{
256        Pos     = MAP_APPFONT ( 77 + ADJUST_X, 114 + MOVE_Y) ;
257        Size    = MAP_APPFONT ( 161 - ADJUST_X, 12) ;
258		Border	= TRUE ;
259		TabStop = TRUE ;
260		HelpID	= HID_DLG_ADABAS_DATADEVSPACE ;
261	};
262
263
264	PushButton PB_DATADEVSPACE
265	{
266		Pos		= MAP_APPFONT ( WIN_X - 24, 114 + MOVE_Y) ;
267		Size	= MAP_APPFONT ( 12 , 12 ) ;
268		TabStop = TRUE ;
269		HelpID	= HID_DLG_ADABAS_PBDATADEVSPACE ;
270		Text[ en-US ] = "...";
271};
272	/* DEVSPACE sizes */
273	FixedText FT_TRANSACTIONLOG_SIZE
274	{
275        Pos = MAP_APPFONT ( 12 , 133 + MOVE_Y) ;
276        Size = MAP_APPFONT ( 64 + ADJUST_X, 8 ) ;
277		Text[ en-US ] = "Transaction ~file (MB)";
278};
279	NumericField NF_TRANSACTIONLOG_SIZE
280	{
281        Pos             = MAP_APPFONT ( 77 + ADJUST_X, 131 + MOVE_Y) ;
282        Size            = MAP_APPFONT ( 40 , 12 ) ;
283		Border			= TRUE ;
284		TabStop			= TRUE ;
285		Spin			= TRUE ;
286StrictFormat    = TRUE;
287		HelpID	= HID_DLG_ADABAS_TRANSACTIONLOG_SIZE ;
288	};
289	FixedText FT_DATADEVSPACE_SIZE
290	{
291        Pos = MAP_APPFONT ( 12 , 150 + MOVE_Y) ;
292        Size = MAP_APPFONT ( 64 + ADJUST_X, 8 ) ;
293		Text[ en-US ] = "Data~base size (MB)";
294};
295	NumericField NF_DATADEVSPACE_SIZE
296	{
297        Pos             = MAP_APPFONT ( 77 + ADJUST_X, 148 + MOVE_Y) ;
298        Size            = MAP_APPFONT ( 40 , 12 ) ;
299		Border			= TRUE ;
300		TabStop			= TRUE ;
301		Spin			= TRUE ;
302StrictFormat    = TRUE;
303		HelpID	= HID_DLG_ADABAS_DATADEVSPACE_SIZE ;
304	};
305	FixedText FT_CACHE_SIZE
306	{
307        Pos = MAP_APPFONT ( 12 , 167 + MOVE_Y) ;
308        Size = MAP_APPFONT ( 64 + ADJUST_X, 8 ) ;
309		Text[ en-US ] = "Data ~buffer size (MB)";
310};
311	NumericField NF_CACHE_SIZE
312	{
313        Pos             = MAP_APPFONT ( 77 + ADJUST_X, 165 + MOVE_Y) ;
314        Size            = MAP_APPFONT ( 40 , 12 ) ;
315		Border			= TRUE ;
316		TabStop			= TRUE ;
317		Spin			= TRUE ;
318StrictFormat    = TRUE;
319		HelpID			= HID_DLG_ADABAS_CACHE_SIZE ;
320	};
321    FixedLine FL_END
322    {
323        Pos     = MAP_APPFONT ( 0 , WIN_Y - 24 + MOVE_Y) ;
324        Size    = MAP_APPFONT ( WIN_X , 1 ) ;
325	};
326	OKButton PB_OK
327	{
328		Pos			= MAP_APPFONT ( WIN_X - 112, WIN_Y - 20 + MOVE_Y) ;
329		Size		= MAP_APPFONT ( 50 , 14 ) ;
330		TabStop		= TRUE ;
331		DefButton	= TRUE ;
332	};
333	CancelButton PB_CANCEL
334	{
335		Pos			= MAP_APPFONT ( WIN_X - 56 , WIN_Y - 20+ MOVE_Y) ;
336		Size		= MAP_APPFONT ( 50 , 14 ) ;
337		TabStop		= TRUE ;
338	};
339
340	String STR_BACKUPFILE_LOAD
341	{
342		Text[ en-US ]	= "Backup file information";
343};
344
345	Text[ en-US ] = "Create New Adabas D Database";
346};
347
348Image CHECK_GREEN
349{
350	ImageBitmap = Bitmap { File = "nu07.bmp"; };
351	MaskColor	= Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; };
352};
353Image UNCHECK_RED
354{
355	ImageBitmap = Bitmap { File = "nu08.bmp"; };
356	MaskColor	= Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; };
357};
358Image DEFAULT_BLUE
359{
360	ImageBitmap = Bitmap { File = "nu09.bmp"; };
361	MaskColor	= Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; };
362};
363/* Fehlermeldungen beim Erstellen einer Adabas DB */
364
365String STR_ADABAS_NO_PARAM_SET
366{
367	Text[ en-US ]	= "No entry could be written in the configuration file.";
368};
369
370String STR_ADABAS_NO_DB_CREATED
371{
372	Text[ en-US ]	= "An error occurred as the DB files were being created.";
373};
374
375String STR_ADABAS_NO_SYSTEM_TABLES
376{
377	Text[ en-US ]	= "An error occurred as the system tables were being created.";
378};
379String STR_ADABAS_NO_BACKUP_FILE
380{
381	Text[ en-US ]	= "The backup file entered does not exist.";
382};
383
384InfoBox INFO_STR_MAX_FILE_LENGTH
385{
386	Message[ en-US ]	= "The fully qualified file cannot be longer than \'#\' characters.";
387};
388
389String STR_NO_SAME_USER
390{
391	Text[ en-US ] = "The administrator and the control user cannot have the same name!";
392};
393String STR_DEVSPACE_NO_FILE
394{
395	Text[ en-US ] = "No name has been entered for the $name$ file!";
396};
397String STR_NO_PERMISSION
398{
399	Text[ en-US ] = "You have to have administrator rights to create a new database!";
400};
401
402String STR_FILE_OR_DIR_UNKNOWN
403{
404	Text[ en-US ] = "The specified file name or directory does not exist.";
405};
406
407String STR_ERROR_IN_ADABAS_INSTALLATION
408{
409	Text [ en-US ] = "No new database can be created.\nPlease check your Adabas D installation, especially the variables \"DBROOT\" and \"DBWORK\".";
410};
411
412String STR_STAT_WARNING
413{
414	Text [ en-US ] = "Warning!" ;
415};
416
417String STR_ADABAS_CREATEFILES
418{
419	Text [ en-US ] = "Creating database files." ;
420};
421
422String STR_ADABAS_CREATEPARAM_FILE
423{
424	Text [ en-US ] = "Creating database configuration file." ;
425};
426String STR_ADABAS_START_DATABASE
427{
428	Text [ en-US ] = "Starting database for the first time." ;
429
430};
431String STR_ADABAS_DB_EXISTS
432{
433	Text[ en-US ] = "The name entered already exists.";
434};
435
436String STR_ADABAS_NO_DEFAULTNAME
437{
438	Text[ en-US ] = "No default names could be set for the database files. The total length is more than 40 characters.";
439};
440
441String STR_ADABAS_NO_ACCESSRIGHTS
442{
443	Text[ en-US ] = "No default names could be set for the database files. There is no write access.";
444};
445
446String STR_ADABAS_CANNOT_CONVERT
447{
448	Text[ en-US ] = "The current database need to be converted. Please insert control user  and password.";
449};
450
451String STR_ADABAS_PASSWORD_ILLEGAL
452{
453	Text[ en-US ] = "Spaces are not permitted in the password. Please enter a new password.";
454};
455
456