xref: /aoo42x/main/basic/source/classes/sb.src (revision 63e57358)
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
23
24#define __RSC
25#ifndef _ERRCODE_HXX //autogen
26#include <tools/errcode.hxx>
27#endif
28#include "sb.hrc"
29#include <basic/sberrors.hxx>
30
31Resource RID_BASIC_START
32{
33	String SbERR_SYNTAX & ERRCODE_RES_MASK
34	{
35		Text [ en-US ] = "Syntax error." ;
36	};
37	String SbERR_NO_GOSUB & ERRCODE_RES_MASK
38	{
39		Text [ en-US ] = "Return without Gosub." ;
40	};
41	String SbERR_REDO_FROM_START & ERRCODE_RES_MASK
42	{
43		Text [ en-US ] = "Incorrect entry; please retry." ;
44	};
45	String SbERR_BAD_ARGUMENT & ERRCODE_RES_MASK
46	{
47		Text [ en-US ] = "Invalid procedure call." ;
48	};
49	String SbERR_MATH_OVERFLOW & ERRCODE_RES_MASK
50	{
51		Text [ en-US ] = "Overflow." ;
52	};
53	String SbERR_NO_MEMORY & ERRCODE_RES_MASK
54	{
55		Text [ en-US ] = "Not enough memory." ;
56	};
57	String SbERR_ALREADY_DIM & ERRCODE_RES_MASK
58	{
59		Text [ en-US ] = "Array already dimensioned." ;
60	};
61	String SbERR_OUT_OF_RANGE & ERRCODE_RES_MASK
62	{
63		Text [ en-US ] = "Index out of defined range." ;
64	};
65	String SbERR_DUPLICATE_DEF & ERRCODE_RES_MASK
66	{
67		Text [ en-US ] = "Duplicate definition." ;
68	};
69	String SbERR_ZERODIV & ERRCODE_RES_MASK
70	{
71		Text [ en-US ] = "Division by zero." ;
72	};
73	String SbERR_VAR_UNDEFINED & ERRCODE_RES_MASK
74	{
75		Text [ en-US ] = "Variable not defined." ;
76	};
77	String SbERR_CONVERSION & ERRCODE_RES_MASK
78	{
79		Text [ en-US ] = "Data type mismatch." ;
80	};
81	String SbERR_BAD_PARAMETER & ERRCODE_RES_MASK
82	{
83		Text [ en-US ] = "Invalid parameter." ;
84	};
85	String SbERR_USER_ABORT & ERRCODE_RES_MASK
86	{
87		Text [ en-US ] = "Process interrupted by user." ;
88	};
89	String SbERR_BAD_RESUME & ERRCODE_RES_MASK
90	{
91		Text [ en-US ] = "Resume without error." ;
92	};
93	String SbERR_STACK_OVERFLOW & ERRCODE_RES_MASK
94	{
95		Text [ en-US ] = "Not enough stack memory." ;
96	};
97	String SbERR_PROC_UNDEFINED & ERRCODE_RES_MASK
98	{
99		Text [ en-US ] = "Sub-procedure or function procedure not defined." ;
100	};
101	String SbERR_BAD_DLL_LOAD & ERRCODE_RES_MASK
102	{
103		Text [ en-US ] = "Error loading DLL file." ;
104	};
105	String SbERR_BAD_DLL_CALL & ERRCODE_RES_MASK
106	{
107		Text [ en-US ] = "Wrong DLL call convention." ;
108	};
109	String SbERR_INTERNAL_ERROR & ERRCODE_RES_MASK
110	{
111		Text [ en-US ] = "Internal error $(ARG1)." ;
112	};
113	String SbERR_BAD_CHANNEL & ERRCODE_RES_MASK
114	{
115		Text [ en-US ] = "Invalid file name or file number." ;
116	};
117	String SbERR_FILE_NOT_FOUND & ERRCODE_RES_MASK
118	{
119		Text [ en-US ] = "File not found." ;
120	};
121	String SbERR_BAD_FILE_MODE & ERRCODE_RES_MASK
122	{
123		Text [ en-US ] = "Incorrect file mode." ;
124	};
125	String SbERR_FILE_ALREADY_OPEN & ERRCODE_RES_MASK
126	{
127		Text [ en-US ] = "File already open." ;
128	};
129	String SbERR_IO_ERROR & ERRCODE_RES_MASK
130	{
131		Text [ en-US ] = "Device I/O error." ;
132	};
133	String SbERR_FILE_EXISTS & ERRCODE_RES_MASK
134	{
135		Text [ en-US ] = "File already exists." ;
136	};
137	String SbERR_BAD_RECORD_LENGTH & ERRCODE_RES_MASK
138	{
139		Text [ en-US ] = "Incorrect record length." ;
140	};
141	String SbERR_DISK_FULL & ERRCODE_RES_MASK
142	{
143		Text [ en-US ] = "Disk or hard drive full." ;
144	};
145	String SbERR_READ_PAST_EOF & ERRCODE_RES_MASK
146	{
147		Text [ en-US ] = "Reading exceeds EOF." ;
148	};
149	String SbERR_BAD_RECORD_NUMBER & ERRCODE_RES_MASK
150	{
151		Text [ en-US ] = "Incorrect record number." ;
152	};
153	String SbERR_TOO_MANY_FILES & ERRCODE_RES_MASK
154	{
155		Text [ en-US ] = "Too many files." ;
156	};
157	String SbERR_NO_DEVICE & ERRCODE_RES_MASK
158	{
159		Text [ en-US ] = "Device not available." ;
160	};
161	String SbERR_ACCESS_DENIED & ERRCODE_RES_MASK
162	{
163		Text [ en-US ] = "Access denied." ;
164	};
165	String SbERR_NOT_READY & ERRCODE_RES_MASK
166	{
167		Text [ en-US ] = "Disk not ready." ;
168	};
169	String SbERR_NOT_IMPLEMENTED & ERRCODE_RES_MASK
170	{
171		Text [ en-US ] = "Not implemented." ;
172	};
173	String SbERR_DIFFERENT_DRIVE & ERRCODE_RES_MASK
174	{
175		Text [ en-US ] = "Renaming on different drives impossible." ;
176	};
177	String SbERR_ACCESS_ERROR & ERRCODE_RES_MASK
178	{
179		Text [ en-US ] = "Path/File access error." ;
180	};
181	String SbERR_PATH_NOT_FOUND & ERRCODE_RES_MASK
182	{
183		Text [ en-US ] = "Path not found." ;
184	};
185	String SbERR_NO_OBJECT & ERRCODE_RES_MASK
186	{
187		Text [ en-US ] = "Object variable not set." ;
188	};
189	String SbERR_BAD_PATTERN & ERRCODE_RES_MASK
190	{
191		Text [ en-US ] = "Invalid string pattern." ;
192	};
193	String SBERR_IS_NULL & ERRCODE_RES_MASK
194	{
195		Text [ en-US ] = "Use of zero not permitted." ;
196	};
197	String SbERR_DDE_ERROR & ERRCODE_RES_MASK
198	{
199		Text [ en-US ] = "DDE Error." ;
200	};
201	String SbERR_DDE_WAITINGACK & ERRCODE_RES_MASK
202	{
203		Text [ en-US ] = "Awaiting response to DDE connection." ;
204	};
205	String SbERR_DDE_OUTOFCHANNELS & ERRCODE_RES_MASK
206	{
207		Text [ en-US ] = "No DDE channels available." ;
208	};
209	String SbERR_DDE_NO_RESPONSE & ERRCODE_RES_MASK
210	{
211		Text [ en-US ] = "No application responded to DDE connect initiation." ;
212	};
213	String SbERR_DDE_MULT_RESPONSES & ERRCODE_RES_MASK
214	{
215		Text [ en-US ] = "Too many applications responded to DDE connect initiation." ;
216	};
217	String SbERR_DDE_CHANNEL_LOCKED & ERRCODE_RES_MASK
218	{
219		Text [ en-US ] = "DDE channel locked." ;
220	};
221	String SbERR_DDE_NOTPROCESSED & ERRCODE_RES_MASK
222	{
223		Text [ en-US ] = "External application cannot execute DDE operation." ;
224	};
225	String SbERR_DDE_TIMEOUT & ERRCODE_RES_MASK
226	{
227		Text [ en-US ] = "Timeout while waiting for DDE response." ;
228	};
229	String SbERR_DDE_USER_INTERRUPT & ERRCODE_RES_MASK
230	{
231		Text [ en-US ] = "User pressed ESCAPE during DDE operation." ;
232	};
233	String SbERR_DDE_BUSY & ERRCODE_RES_MASK
234	{
235		Text [ en-US ] = "External application busy." ;
236	};
237	String SbERR_DDE_NO_DATA & ERRCODE_RES_MASK
238	{
239		Text [ en-US ] = "DDE operation without data." ;
240	};
241	String SbERR_DDE_WRONG_DATA_FORMAT & ERRCODE_RES_MASK
242	{
243		Text [ en-US ] = "Data are in wrong format." ;
244	};
245	String SbERR_DDE_PARTNER_QUIT & ERRCODE_RES_MASK
246	{
247		Text [ en-US ] = "External application has been terminated." ;
248	};
249	String SbERR_DDE_CONV_CLOSED & ERRCODE_RES_MASK
250	{
251		Text [ en-US ] = "DDE connection interrupted or modified." ;
252	};
253	String SbERR_DDE_NO_CHANNEL & ERRCODE_RES_MASK
254	{
255		Text [ en-US ] = "DDE method invoked with no channel open." ;
256	};
257	String SbERR_DDE_INVALID_LINK & ERRCODE_RES_MASK
258	{
259		Text [ en-US ] = "Invalid DDE link format." ;
260	};
261	String SbERR_DDE_QUEUE_OVERFLOW & ERRCODE_RES_MASK
262	{
263		Text [ en-US ] = "DDE message has been lost." ;
264	};
265	String SbERR_DDE_LINK_ALREADY_EST & ERRCODE_RES_MASK
266	{
267		Text [ en-US ] = "Paste link already performed." ;
268	};
269	String SbERR_DDE_LINK_INV_TOPIC & ERRCODE_RES_MASK
270	{
271		Text [ en-US ] = "Link mode cannot be set due to invalid link topic." ;
272	};
273	String SbERR_DDE_DLL_NOT_FOUND & ERRCODE_RES_MASK
274	{
275		Text [ en-US ] = "DDE requires the DDEML.DLL file." ;
276	};
277	String SbERR_CANNOT_LOAD & ERRCODE_RES_MASK
278	{
279		Text [ en-US ] = "Module cannot be loaded; invalid format." ;
280	};
281	String SbERR_BAD_INDEX & ERRCODE_RES_MASK
282	{
283		Text [ en-US ] = "Invalid object index." ;
284	};
285	String SbERR_NO_ACTIVE_OBJECT & ERRCODE_RES_MASK
286	{
287		Text [ en-US ] = "Object is not available." ;
288	};
289	String SbERR_BAD_PROP_VALUE & ERRCODE_RES_MASK
290	{
291		Text [ en-US ] = "Incorrect property value." ;
292	};
293	String SbERR_PROP_READONLY & ERRCODE_RES_MASK
294	{
295		Text [ en-US ] = "This property is read-only." ;
296	};
297	String SbERR_PROP_WRITEONLY & ERRCODE_RES_MASK
298	{
299		Text [ en-US ] = "This property is write only." ;
300	};
301	String SbERR_INVALID_OBJECT & ERRCODE_RES_MASK
302	{
303		Text [ en-US ] = "Invalid object reference." ;
304	};
305	String SbERR_NO_METHOD & ERRCODE_RES_MASK
306	{
307		Text [ en-US ] = "Property or method not found: $(ARG1)." ;
308	};
309	String SbERR_NEEDS_OBJECT & ERRCODE_RES_MASK
310	{
311		Text [ en-US ] = "Object required." ;
312	};
313	String SbERR_INVALID_USAGE_OBJECT & ERRCODE_RES_MASK
314	{
315		Text [ en-US ] = "Invalid use of an object." ;
316	};
317	String SbERR_NO_OLE & ERRCODE_RES_MASK
318	{
319		Text [ en-US ] = "OLE Automation is not supported by this object." ;
320	};
321	String SbERR_BAD_METHOD & ERRCODE_RES_MASK
322	{
323		Text [ en-US ] = "This property or method is not supported by the object." ;
324	};
325	String SbERR_OLE_ERROR & ERRCODE_RES_MASK
326	{
327		Text [ en-US ] = "OLE Automation Error." ;
328	};
329	String SbERR_BAD_ACTION & ERRCODE_RES_MASK
330	{
331		Text [ en-US ] = "This action is not supported by given object." ;
332	};
333	String SbERR_NO_NAMED_ARGS & ERRCODE_RES_MASK
334	{
335		Text [ en-US ] = "Named arguments are not supported by given object." ;
336	};
337	String SbERR_BAD_LOCALE & ERRCODE_RES_MASK
338	{
339		Text [ en-US ] = "The current locale setting is not supported by the given object." ;
340	};
341	String SbERR_NAMED_NOT_FOUND & ERRCODE_RES_MASK
342	{
343		Text [ en-US ] = "Named argument not found." ;
344	};
345	String SbERR_NOT_OPTIONAL & ERRCODE_RES_MASK
346	{
347		Text [ en-US ] = "Argument is not optional." ;
348	};
349	String SbERR_WRONG_ARGS & ERRCODE_RES_MASK
350	{
351		Text [ en-US ] = "Invalid number of arguments." ;
352	};
353	String SbERR_NOT_A_COLL & ERRCODE_RES_MASK
354	{
355		Text [ en-US ] = "Object is not a list." ;
356	};
357	String SbERR_BAD_ORDINAL & ERRCODE_RES_MASK
358	{
359		Text [ en-US ] = "Invalid ordinal number." ;
360	};
361	String SbERR_DLLPROC_NOT_FOUND & ERRCODE_RES_MASK
362	{
363		Text [ en-US ] = "Specified DLL function not found." ;
364	};
365	String SbERR_BAD_CLIPBD_FORMAT & ERRCODE_RES_MASK
366	{
367		Text [ en-US ] = "Invalid clipboard format." ;
368	};
369	String SbERR_PROPERTY_NOT_FOUND & ERRCODE_RES_MASK
370	{
371		Text [ en-US ] = "Object does not have this property." ;
372	};
373	String SbERR_METHOD_NOT_FOUND & ERRCODE_RES_MASK
374	{
375		Text [ en-US ] = "Object does not have this method." ;
376	};
377	String SbERR_ARG_MISSING & ERRCODE_RES_MASK
378	{
379		Text [ en-US ] = "Required argument lacking." ;
380	};
381	String SbERR_BAD_NUMBER_OF_ARGS & ERRCODE_RES_MASK
382	{
383		Text [ en-US ] = "Invalid number of arguments." ;
384	};
385	String SbERR_METHOD_FAILED & ERRCODE_RES_MASK
386	{
387		Text [ en-US ] = "Error executing a method." ;
388	};
389	String SbERR_SETPROP_FAILED & ERRCODE_RES_MASK
390	{
391		Text [ en-US ] = "Unable to set property." ;
392	};
393	String SbERR_GETPROP_FAILED & ERRCODE_RES_MASK
394	{
395		Text [ en-US ] = "Unable to determine property." ;
396	};
397	// Compiler errors. These are not runtime errors.
398	String SbERR_UNEXPECTED & ERRCODE_RES_MASK
399	{
400		Text [ en-US ] = "Unexpected symbol: $(ARG1)." ;
401	};
402	String SbERR_EXPECTED & ERRCODE_RES_MASK
403	{
404		Text [ en-US ] = "Expected: $(ARG1)." ;
405	};
406	String SbERR_SYMBOL_EXPECTED & ERRCODE_RES_MASK
407	{
408		Text [ en-US ] = "Symbol expected." ;
409	};
410	String SbERR_VAR_EXPECTED & ERRCODE_RES_MASK
411	{
412		Text [ en-US ] = "Variable expected." ;
413	};
414	String SbERR_LABEL_EXPECTED & ERRCODE_RES_MASK
415	{
416		Text [ en-US ] = "Label expected." ;
417	};
418	String SbERR_LVALUE_EXPECTED & ERRCODE_RES_MASK
419	{
420		Text [ en-US ] = "Value cannot be applied." ;
421	};
422	String SbERR_VAR_DEFINED & ERRCODE_RES_MASK
423	{
424		Text [ en-US ] = "Variable $(ARG1) already defined." ;
425	};
426	String SbERR_PROC_DEFINED & ERRCODE_RES_MASK
427	{
428		Text [ en-US ] = "Sub procedure or function procedure $(ARG1) already defined." ;
429	};
430	String SbERR_LABEL_DEFINED & ERRCODE_RES_MASK
431	{
432		Text [ en-US ] = "Label $(ARG1) already defined." ;
433	};
434	String SbERR_UNDEF_VAR & ERRCODE_RES_MASK
435	{
436		Text [ en-US ] = "Variable $(ARG1) not found." ;
437	};
438	String SbERR_UNDEF_ARRAY & ERRCODE_RES_MASK
439	{
440		Text [ en-US ] = "Array or procedure $(ARG1) not found." ;
441	};
442	String SbERR_UNDEF_PROC & ERRCODE_RES_MASK
443	{
444		Text [ en-US ] = "Procedure $(ARG1) not found." ;
445	};
446	String SbERR_UNDEF_LABEL & ERRCODE_RES_MASK
447	{
448		Text [ en-US ] = "Label $(ARG1) undefined." ;
449	};
450	String SbERR_UNDEF_TYPE & ERRCODE_RES_MASK
451	{
452		Text [ en-US ] = "Unknown data type $(ARG1)." ;
453	};
454	String SbERR_BAD_EXIT & ERRCODE_RES_MASK
455	{
456		Text [ en-US ] = "Exit $(ARG1) expected." ;
457	};
458	String SbERR_BAD_BLOCK & ERRCODE_RES_MASK
459	{
460		Text [ en-US ] = "Statement block still open: $(ARG1) missing." ;
461	};
462	String SbERR_BAD_BRACKETS & ERRCODE_RES_MASK
463	{
464		Text [ en-US ] = "Parentheses do not match." ;
465	};
466	String SbERR_BAD_DECLARATION & ERRCODE_RES_MASK
467	{
468		Text [ en-US ] = "Symbol $(ARG1) already defined differently." ;
469	};
470	String SbERR_BAD_PARAMETERS & ERRCODE_RES_MASK
471	{
472		Text [ en-US ] = "Parameters do not correspond to procedure." ;
473	};
474	String SbERR_BAD_CHAR_IN_NUMBER & ERRCODE_RES_MASK
475	{
476		Text [ en-US ] = "Invalid character in number." ;
477	};
478	String SbERR_MUST_HAVE_DIMS & ERRCODE_RES_MASK
479	{
480		Text [ en-US ] = "Array must be dimensioned." ;
481	};
482	String SbERR_NO_IF & ERRCODE_RES_MASK
483	{
484		Text [ en-US ] = "Else/Endif without If." ;
485	};
486	String SbERR_NOT_IN_SUBR & ERRCODE_RES_MASK
487	{
488		Text [ en-US ] = "$(ARG1) not allowed within a procedure." ;
489	};
490	String SbERR_NOT_IN_MAIN & ERRCODE_RES_MASK
491	{
492		Text [ en-US ] = "$(ARG1) not allowed outside a procedure." ;
493	};
494	String SbERR_WRONG_DIMS & ERRCODE_RES_MASK
495	{
496		Text [ en-US ] = "Dimension specifications do not match." ;
497	};
498	String SbERR_BAD_OPTION & ERRCODE_RES_MASK
499	{
500		Text [ en-US ] = "Unknown option: $(ARG1)." ;
501	};
502	String SbERR_CONSTANT_REDECLARED & ERRCODE_RES_MASK
503	{
504		Text [ en-US ] = "Constant $(ARG1) redefined." ;
505	};
506	String SbERR_PROG_TOO_LARGE & ERRCODE_RES_MASK
507	{
508		Text [ en-US ] = "Program too large." ;
509	};
510	String SbERR_NO_STRINGS_ARRAYS & ERRCODE_RES_MASK
511	{
512		Text [ en-US ] = "Strings or arrays not permitted." ;
513	};
514	String ERRCODE_BASIC_EXCEPTION & ERRCODE_RES_MASK
515	{
516		Text [ en-US ] = "An exception occurred $(ARG1)." ;
517	};
518	String ERRCODE_BASIC_ARRAY_FIX & ERRCODE_RES_MASK
519	{
520		Text [ en-US ] = "This array is fixed or temporarily locked." ;
521	};
522	String ERRCODE_BASIC_STRING_OVERFLOW & ERRCODE_RES_MASK
523	{
524		Text [ en-US ] = "Out of string space." ;
525	};
526	String ERRCODE_BASIC_EXPR_TOO_COMPLEX & ERRCODE_RES_MASK
527	{
528		Text [ en-US ] = "Expression Too Complex." ;
529	};
530	String ERRCODE_BASIC_OPER_NOT_PERFORM & ERRCODE_RES_MASK
531	{
532		Text [ en-US ] = "Can't perform requested operation." ;
533	};
534	String ERRCODE_BASIC_TOO_MANY_DLL & ERRCODE_RES_MASK
535	{
536		Text [ en-US ] = "Too many DLL application clients." ;
537	};
538	String ERRCODE_BASIC_LOOP_NOT_INIT & ERRCODE_RES_MASK
539	{
540		Text [ en-US ] = "For loop not initialized." ;
541	};
542	String ERRCODE_BASIC_COMPAT & ERRCODE_RES_MASK
543	{
544		Text [ en-US ] = "$(ARG1)" ;
545	};
546};
547// Note: IDS_SBERR_TERMINATED = IDS_SBERR_START+2000.
548String IDS_SBERR_TERMINATED
549{
550	Text [ en-US ] = "The macro running has been interrupted" ;
551};
552String IDS_SBERR_STOREREF
553{
554	Text [ en-US ] = "Reference will not be saved: " ;
555};
556String ERRCODE_BASMGR_LIBLOAD & ERRCODE_RES_MASK
557{
558	Text [ en-US ] = "Error loading library '$(ARG1)'." ;
559};
560String ERRCODE_BASMGR_LIBSAVE & ERRCODE_RES_MASK
561{
562	Text [ en-US ] = "Error saving library: '$(ARG1)'." ;
563};
564String ERRCODE_BASMGR_MGROPEN & ERRCODE_RES_MASK
565{
566	Text [ en-US ] = "The BASIC from the file '$(ARG1)' could not be initialized." ;
567};
568String ERRCODE_BASMGR_MGRSAVE & ERRCODE_RES_MASK
569{
570	Text [ en-US ] = "Error saving BASIC: '$(ARG1)'." ;
571};
572String ERRCODE_BASMGR_REMOVELIB & ERRCODE_RES_MASK
573{
574	Text [ en-US ] = "Error removing library." ;
575};
576String ERRCODE_BASMGR_UNLOADLIB & ERRCODE_RES_MASK
577{
578	Text [ en-US ] = "The library could not be removed from memory." ;
579};
580
581// ********************************************************************** EOF
582