xref: /trunk/main/sw/source/ui/app/error.src (revision 9cd2463e)
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
26//#include <tools/errcode.hxx>
27#include "globals.hrc"
28#include "app.hrc"
29#include "swerror.h"
30#include "comcore.hrc"// MS: 	Warum gibst auf der Core-Seite
31// 		jetzt Resourcen
32
33/*--------------------------------------------------------------------
34 Description: Strings
35 --------------------------------------------------------------------*/
36
37String STR_COMCORE_READERROR
38{
39	Text [ en-US ] = "Read-Error" ;
40};
41String STR_COMCORE_CANT_SHOW
42{
43	Text [ en-US ] = "Graphic cannot be displayed." ;
44};
45/*--------------------------------------------------------------------
46 Description: Boxes
47 --------------------------------------------------------------------*/
48InfoBox ERR_CLPBRD_WRITE
49{
50	Message [ en-US ] = "Error while copying to the clipboard." ;
51};
52InfoBox ERR_CLPBRD_READ
53{
54	Message [ en-US ] = "Error reading from the clipboard." ;
55};
56
57
58#define ERR_CODE( class, err )	(class | (err - ERROR_SW_BASE))
59#define WARN_CODE( class, err )	(class | ( err - WARN_SW_BASE))
60
61Resource RID_SW_ERRHDL
62{
63	// Import-Errors
64	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SWG_FILE_FORMAT_ERROR )
65	{
66		Text [ en-US ] = "File format error found." ;
67	};
68	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SWG_READ_ERROR )
69	{
70		Text [ en-US ] = "Error reading file." ;
71	};
72	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SW6_INPUT_FILE )
73	{
74		Text [ en-US ] = "Input file error." ;
75	};
76	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SW6_NOWRITER_FILE )
77	{
78		Text [ en-US ] = "This is not a %PRODUCTNAME Writer file." ;
79	};
80	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SW6_UNEXPECTED_EOF )
81	{
82		Text [ en-US ] = "Unexpected end of file." ;
83	};
84	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SW6_PASSWD )
85	{
86		Text [ en-US ] = "Password-protected files cannot be opened." ;
87	};
88	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_WW6_NO_WW6_FILE_ERR )
89	{
90		Text [ en-US ] = "This is not a WinWord6 file." ;
91	};
92	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_WW6_FASTSAVE_ERR )
93	{
94		Text [ en-US ] = "This file was saved with WinWord in 'Fast Save' mode. Please unmark the WinWord option 'Allow Fast Saves' and save the file again." ;
95	};
96	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_FORMAT_ROWCOL )
97	{
98		Text [ en-US ] = "File format error found at $(ARG1)(row,col)." ;
99	};
100	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SWG_NEW_VERSION )
101	{
102		Text [ en-US ] = "File has been written in a newer version." ;
103	};
104	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_WW8_NO_WW8_FILE_ERR )
105	{
106		Text [ en-US ] = "This is not a WinWord97 file." ;
107	};
108	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_FORMAT_FILE_ROWCOL )
109	{
110		Text [ en-US ] = "Format error discovered in the file in sub-document $(ARG1) at $(ARG2)(row,col)." ;
111	};
112	// Export-Errors
113	String ERR_CODE ( ERRCODE_CLASS_WRITE , ERR_SWG_WRITE_ERROR )
114	{
115		Text [ en-US ] = "Error writing file." ;
116	};
117	String ERR_CODE ( ERRCODE_CLASS_WRITE , ERR_SWG_OLD_GLOSSARY )
118	{
119		Text [ en-US ] = "Wrong AutoText document version." ;
120	};
121	String ERR_CODE ( ERRCODE_CLASS_WRITE , ERR_WRITE_ERROR_FILE )
122	{
123		Text [ en-US ] = "Error in writing sub-document $(ARG1)." ;
124	};
125	// Import-/Export-Errors
126	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SWG_INTERNAL_ERROR )
127	{
128		Text [ en-US ] = "Internal error in %PRODUCTNAME Writer file format." ;
129	};
130	String ERR_CODE ( ERRCODE_CLASS_WRITE , ERR_SWG_INTERNAL_ERROR )
131	{
132		Text [ en-US ] = "Internal error in %PRODUCTNAME Writer file format." ;
133	};
134	String ERR_CODE ( ERRCODE_CLASS_LOCKING , ERR_TXTBLOCK_NEWFILE_ERROR )
135	{
136		Text [ en-US ] = "$(ARG1) has changed." ;
137	};
138	String ERR_CODE ( ERRCODE_CLASS_PATH , ERR_AUTOPATH_ERROR )
139	{
140		Text [ en-US ] = "$(ARG1) does not exist." ;
141	};
142	String ERR_CODE ( ERRCODE_CLASS_NONE , ERR_TBLSPLIT_ERROR )
143	{
144		Text [ en-US ] = "Cells cannot be further split." ;
145	};
146	String ERR_CODE ( ERRCODE_CLASS_NONE , ERR_TBLINSCOL_ERROR )
147	{
148		Text [ en-US ] = "Additional columns cannot be inserted." ;
149	};
150	String ERR_CODE ( ERRCODE_CLASS_NONE , ERR_TBLDDECHG_ERROR )
151	{
152		Text [ en-US ] = "The structure of a linked table cannot be modified." ;
153	};
154	// -------------------- Warnings -----------------------------------
155	String WARN_CODE ( ERRCODE_CLASS_READ , WARN_SWG_NO_DRAWINGS )
156	{
157		Text [ en-US ] = "No drawings could be read." ;
158	};
159	String WARN_CODE ( ERRCODE_CLASS_READ , WARN_WW6_FASTSAVE_ERR )
160	{
161		Text [ en-US ] = "This file was saved with Word in 'Fast Save' mode. Please unmark the Word option 'Allow Fast Saves' and save the file again." ;
162	};
163	String WARN_CODE ( ERRCODE_CLASS_READ , WARN_SWG_FEATURES_LOST )
164	{
165		Text [ en-US ] = "Not all attributes could be read." ;
166	};
167	String WARN_CODE ( ERRCODE_CLASS_WRITE , WARN_SWG_FEATURES_LOST )
168	{
169		Text [ en-US ] = "Not all attributes could be recorded." ;
170	};
171	String WARN_CODE ( ERRCODE_CLASS_READ , WARN_SWG_OLE )
172	{
173		Text [ en-US ] = "Some OLE objects could only be loaded as graphics." ;
174	};
175	String WARN_CODE ( ERRCODE_CLASS_WRITE , WARN_SWG_OLE )
176	{
177		Text [ en-US ] = "Some OLE objects could only be saved as graphics." ;
178	};
179	String WARN_CODE ( ERRCODE_CLASS_READ , WARN_SWG_POOR_LOAD )
180	{
181		Text [ en-US ] = "Document could not be completely loaded." ;
182	};
183	String WARN_CODE ( ERRCODE_CLASS_WRITE , WARN_SWG_POOR_LOAD )
184	{
185		Text [ en-US ] = "Document could not be completely saved." ;
186	};
187	String WARN_CODE ( ERRCODE_CLASS_WRITE , WARN_SWG_HTML_NO_MACROS)
188	{
189		Text [ en-US ] = "This HTML document contains %PRODUCTNAME Basic macros.\nThey were not saved with the current export settings." ;
190	};
191	String ERR_CODE ( ERRCODE_CLASS_WRITE , WARN_WRITE_ERROR_FILE )
192	{
193		Text [ en-US ] = "Error in writing sub-document $(ARG1)." ;
194	};
195	String ERR_CODE ( ERRCODE_CLASS_WRITE , WARN_FORMAT_FILE_ROWCOL )
196	{
197		Text [ en-US ] = "Format error discovered in the file in sub-document $(ARG1) at $(ARG2)(row,col)." ;
198	};
199};
200
201// ********************************************************************** EOF
202