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