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