xref: /aoo42x/main/sw/source/ui/app/error.src (revision 15f98d3c)
18660f102SAndrew Rist/**************************************************************
264296bf4Smseidel *
38660f102SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
48660f102SAndrew Rist * or more contributor license agreements.  See the NOTICE file
58660f102SAndrew Rist * distributed with this work for additional information
68660f102SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
78660f102SAndrew Rist * to you under the Apache License, Version 2.0 (the
88660f102SAndrew Rist * "License"); you may not use this file except in compliance
98660f102SAndrew Rist * with the License.  You may obtain a copy of the License at
1064296bf4Smseidel *
118660f102SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
1264296bf4Smseidel *
138660f102SAndrew Rist * Unless required by applicable law or agreed to in writing,
148660f102SAndrew Rist * software distributed under the License is distributed on an
158660f102SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
168660f102SAndrew Rist * KIND, either express or implied.  See the License for the
178660f102SAndrew Rist * specific language governing permissions and limitations
188660f102SAndrew Rist * under the License.
1964296bf4Smseidel *
208660f102SAndrew Rist *************************************************************/
218660f102SAndrew Rist
228660f102SAndrew Rist
23cdf0e10cSrcweir
2464296bf4Smseidel#define __RSC
25cdf0e10cSrcweir
2664296bf4Smseidel//#include <tools/errcode.hxx>
27cdf0e10cSrcweir#include "globals.hrc"
28cdf0e10cSrcweir#include "app.hrc"
29cdf0e10cSrcweir#include "swerror.h"
30*15f98d3cSmseidel#include "comcore.hrc" // MS: Warum gibt es auf der Core-Seite jetzt Ressourcen
31cdf0e10cSrcweir
32cdf0e10cSrcweir/*--------------------------------------------------------------------
3364296bf4Smseidel Description: Strings
34cdf0e10cSrcweir --------------------------------------------------------------------*/
35cdf0e10cSrcweir
36cdf0e10cSrcweirString STR_COMCORE_READERROR
37cdf0e10cSrcweir{
38cdf0e10cSrcweir	Text [ en-US ] = "Read-Error" ;
39cdf0e10cSrcweir};
40cdf0e10cSrcweirString STR_COMCORE_CANT_SHOW
41cdf0e10cSrcweir{
42cdf0e10cSrcweir	Text [ en-US ] = "Graphic cannot be displayed." ;
43cdf0e10cSrcweir};
44cdf0e10cSrcweir/*--------------------------------------------------------------------
4564296bf4Smseidel Description: Boxes
46cdf0e10cSrcweir --------------------------------------------------------------------*/
47cdf0e10cSrcweirInfoBox ERR_CLPBRD_WRITE
48cdf0e10cSrcweir{
49cdf0e10cSrcweir	Message [ en-US ] = "Error while copying to the clipboard." ;
50cdf0e10cSrcweir};
51cdf0e10cSrcweirInfoBox ERR_CLPBRD_READ
52cdf0e10cSrcweir{
53cdf0e10cSrcweir	Message [ en-US ] = "Error reading from the clipboard." ;
54cdf0e10cSrcweir};
55cdf0e10cSrcweir
56cdf0e10cSrcweir
57cdf0e10cSrcweir#define ERR_CODE( class, err )	(class | (err - ERROR_SW_BASE))
58*15f98d3cSmseidel#define WARN_CODE( class, err )	(class | (err - WARN_SW_BASE))
59cdf0e10cSrcweir
60cdf0e10cSrcweirResource RID_SW_ERRHDL
61cdf0e10cSrcweir{
6264296bf4Smseidel	// Import-Errors
63cdf0e10cSrcweir	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SWG_FILE_FORMAT_ERROR )
64cdf0e10cSrcweir	{
65cdf0e10cSrcweir		Text [ en-US ] = "File format error found." ;
66cdf0e10cSrcweir	};
67cdf0e10cSrcweir	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SWG_READ_ERROR )
68cdf0e10cSrcweir	{
69cdf0e10cSrcweir		Text [ en-US ] = "Error reading file." ;
70cdf0e10cSrcweir	};
7164296bf4Smseidel	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SW6_INPUT_FILE )
72cdf0e10cSrcweir	{
73cdf0e10cSrcweir		Text [ en-US ] = "Input file error." ;
74cdf0e10cSrcweir	};
75cdf0e10cSrcweir	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SW6_NOWRITER_FILE )
76cdf0e10cSrcweir	{
77cdf0e10cSrcweir		Text [ en-US ] = "This is not a %PRODUCTNAME Writer file." ;
78cdf0e10cSrcweir	};
79cdf0e10cSrcweir	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SW6_UNEXPECTED_EOF )
80cdf0e10cSrcweir	{
81cdf0e10cSrcweir		Text [ en-US ] = "Unexpected end of file." ;
82cdf0e10cSrcweir	};
83cdf0e10cSrcweir	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SW6_PASSWD )
84cdf0e10cSrcweir	{
85cdf0e10cSrcweir		Text [ en-US ] = "Password-protected files cannot be opened." ;
86cdf0e10cSrcweir	};
87cdf0e10cSrcweir	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_WW6_NO_WW6_FILE_ERR )
88cdf0e10cSrcweir	{
89cdf0e10cSrcweir		Text [ en-US ] = "This is not a WinWord6 file." ;
90cdf0e10cSrcweir	};
9164296bf4Smseidel	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_WW6_FASTSAVE_ERR )
92cdf0e10cSrcweir	{
93*15f98d3cSmseidel		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." ;
94cdf0e10cSrcweir	};
9564296bf4Smseidel	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_FORMAT_ROWCOL )
96cdf0e10cSrcweir	{
97cdf0e10cSrcweir		Text [ en-US ] = "File format error found at $(ARG1)(row,col)." ;
98cdf0e10cSrcweir	};
99cdf0e10cSrcweir	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SWG_NEW_VERSION )
100cdf0e10cSrcweir	{
101cdf0e10cSrcweir		Text [ en-US ] = "File has been written in a newer version." ;
102cdf0e10cSrcweir	};
103cdf0e10cSrcweir	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_WW8_NO_WW8_FILE_ERR )
104cdf0e10cSrcweir	{
10564296bf4Smseidel		Text [ en-US ] = "This is not a WinWord97 file." ;
106cdf0e10cSrcweir	};
107cdf0e10cSrcweir	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_FORMAT_FILE_ROWCOL )
108cdf0e10cSrcweir	{
10964296bf4Smseidel		Text [ en-US ] = "Format error discovered in the file in sub-document $(ARG1) at $(ARG2)(row,col)." ;
110cdf0e10cSrcweir	};
11164296bf4Smseidel	// Export-Errors
112cdf0e10cSrcweir	String ERR_CODE ( ERRCODE_CLASS_WRITE , ERR_SWG_WRITE_ERROR )
113cdf0e10cSrcweir	{
114cdf0e10cSrcweir		Text [ en-US ] = "Error writing file." ;
115cdf0e10cSrcweir	};
116cdf0e10cSrcweir	String ERR_CODE ( ERRCODE_CLASS_WRITE , ERR_SWG_OLD_GLOSSARY )
117cdf0e10cSrcweir	{
118cdf0e10cSrcweir		Text [ en-US ] = "Wrong AutoText document version." ;
119cdf0e10cSrcweir	};
12064296bf4Smseidel	String ERR_CODE ( ERRCODE_CLASS_WRITE , ERR_WRITE_ERROR_FILE )
121cdf0e10cSrcweir	{
12264296bf4Smseidel		Text [ en-US ] = "Error in writing sub-document $(ARG1)." ;
123cdf0e10cSrcweir	};
12464296bf4Smseidel	// Import-/Export-Errors
125cdf0e10cSrcweir	String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SWG_INTERNAL_ERROR )
126cdf0e10cSrcweir	{
127cdf0e10cSrcweir		Text [ en-US ] = "Internal error in %PRODUCTNAME Writer file format." ;
128cdf0e10cSrcweir	};
129cdf0e10cSrcweir	String ERR_CODE ( ERRCODE_CLASS_WRITE , ERR_SWG_INTERNAL_ERROR )
130cdf0e10cSrcweir	{
131cdf0e10cSrcweir		Text [ en-US ] = "Internal error in %PRODUCTNAME Writer file format." ;
132cdf0e10cSrcweir	};
13364296bf4Smseidel	String ERR_CODE ( ERRCODE_CLASS_LOCKING , ERR_TXTBLOCK_NEWFILE_ERROR )
134cdf0e10cSrcweir	{
135cdf0e10cSrcweir		Text [ en-US ] = "$(ARG1) has changed." ;
136cdf0e10cSrcweir	};
13764296bf4Smseidel	String ERR_CODE ( ERRCODE_CLASS_PATH , ERR_AUTOPATH_ERROR )
138cdf0e10cSrcweir	{
139cdf0e10cSrcweir		Text [ en-US ] = "$(ARG1) does not exist." ;
140cdf0e10cSrcweir	};
141cdf0e10cSrcweir	String ERR_CODE ( ERRCODE_CLASS_NONE , ERR_TBLSPLIT_ERROR )
142cdf0e10cSrcweir	{
143cdf0e10cSrcweir		Text [ en-US ] = "Cells cannot be further split." ;
144cdf0e10cSrcweir	};
145cdf0e10cSrcweir	String ERR_CODE ( ERRCODE_CLASS_NONE , ERR_TBLINSCOL_ERROR )
146cdf0e10cSrcweir	{
147cdf0e10cSrcweir		Text [ en-US ] = "Additional columns cannot be inserted." ;
148cdf0e10cSrcweir	};
149cdf0e10cSrcweir	String ERR_CODE ( ERRCODE_CLASS_NONE , ERR_TBLDDECHG_ERROR )
150cdf0e10cSrcweir	{
151cdf0e10cSrcweir		Text [ en-US ] = "The structure of a linked table cannot be modified." ;
152cdf0e10cSrcweir	};
15364296bf4Smseidel	// -------------------- Warnings -----------------------------------
154cdf0e10cSrcweir	String WARN_CODE ( ERRCODE_CLASS_READ , WARN_SWG_NO_DRAWINGS )
155cdf0e10cSrcweir	{
156cdf0e10cSrcweir		Text [ en-US ] = "No drawings could be read." ;
157cdf0e10cSrcweir	};
158cdf0e10cSrcweir	String WARN_CODE ( ERRCODE_CLASS_READ , WARN_WW6_FASTSAVE_ERR )
159cdf0e10cSrcweir	{
16064296bf4Smseidel		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." ;
161cdf0e10cSrcweir	};
162cdf0e10cSrcweir	String WARN_CODE ( ERRCODE_CLASS_READ , WARN_SWG_FEATURES_LOST )
163cdf0e10cSrcweir	{
164cdf0e10cSrcweir		Text [ en-US ] = "Not all attributes could be read." ;
165cdf0e10cSrcweir	};
166cdf0e10cSrcweir	String WARN_CODE ( ERRCODE_CLASS_WRITE , WARN_SWG_FEATURES_LOST )
167cdf0e10cSrcweir	{
168cdf0e10cSrcweir		Text [ en-US ] = "Not all attributes could be recorded." ;
169cdf0e10cSrcweir	};
170cdf0e10cSrcweir	String WARN_CODE ( ERRCODE_CLASS_READ , WARN_SWG_OLE )
171cdf0e10cSrcweir	{
172cdf0e10cSrcweir		Text [ en-US ] = "Some OLE objects could only be loaded as graphics." ;
173cdf0e10cSrcweir	};
174cdf0e10cSrcweir	String WARN_CODE ( ERRCODE_CLASS_WRITE , WARN_SWG_OLE )
175cdf0e10cSrcweir	{
176cdf0e10cSrcweir		Text [ en-US ] = "Some OLE objects could only be saved as graphics." ;
177cdf0e10cSrcweir	};
178cdf0e10cSrcweir	String WARN_CODE ( ERRCODE_CLASS_READ , WARN_SWG_POOR_LOAD )
179cdf0e10cSrcweir	{
180cdf0e10cSrcweir		Text [ en-US ] = "Document could not be completely loaded." ;
181cdf0e10cSrcweir	};
182cdf0e10cSrcweir	String WARN_CODE ( ERRCODE_CLASS_WRITE , WARN_SWG_POOR_LOAD )
183cdf0e10cSrcweir	{
184cdf0e10cSrcweir		Text [ en-US ] = "Document could not be completely saved." ;
185cdf0e10cSrcweir	};
186cdf0e10cSrcweir	String WARN_CODE ( ERRCODE_CLASS_WRITE , WARN_SWG_HTML_NO_MACROS)
187cdf0e10cSrcweir	{
18864296bf4Smseidel		Text [ en-US ] = "This HTML document contains %PRODUCTNAME Basic macros.\nThey were not saved with the current export settings." ;
189cdf0e10cSrcweir	};
190cdf0e10cSrcweir	String ERR_CODE ( ERRCODE_CLASS_WRITE , WARN_WRITE_ERROR_FILE )
191cdf0e10cSrcweir	{
19264296bf4Smseidel		Text [ en-US ] = "Error in writing sub-document $(ARG1)." ;
193cdf0e10cSrcweir	};
194cdf0e10cSrcweir	String ERR_CODE ( ERRCODE_CLASS_WRITE , WARN_FORMAT_FILE_ROWCOL )
195cdf0e10cSrcweir	{
19664296bf4Smseidel		Text [ en-US ] = "Format error discovered in the file in sub-document $(ARG1) at $(ARG2)(row,col)." ;
197cdf0e10cSrcweir	};
198cdf0e10cSrcweir};
199cdf0e10cSrcweir
20064296bf4Smseidel// ********************************************************************** EOF
201