1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SC_INC_SCERRORS_HRC
21 #define INCLUDED_SC_INC_SCERRORS_HRC
23 #define NC_(Context, String) (Context "\004" u8##String)
25 #include "scerrors.hxx"
27 const ErrMsgCode RID_ERRHDLSC[] =
29 // ERRORS -----------------------------------------------------
30 { NC_("RID_ERRHDLSC", "Impossible to connect to the file.") ,
31 SCERR_IMPORT_CONNECT },
32 { NC_("RID_ERRHDLSC", "File could not be opened.") ,
34 { NC_("RID_ERRHDLSC", "An unknown error has occurred.") ,
35 SCERR_IMPORT_UNKNOWN },
36 { NC_("RID_ERRHDLSC", "Not enough memory while importing.") ,
37 SCERR_IMPORT_OUTOFMEM },
38 { NC_("RID_ERRHDLSC", "Unknown Lotus1-2-3 file format.") ,
39 SCERR_IMPORT_UNKNOWN_WK },
40 { NC_("RID_ERRHDLSC", "Error in file structure while importing.") ,
41 SCERR_IMPORT_FORMAT },
42 { NC_("RID_ERRHDLSC", "There is no filter available for this file type.") ,
44 { NC_("RID_ERRHDLSC", "Unknown or unsupported Excel file format.") ,
45 SCERR_IMPORT_UNKNOWN_BIFF },
46 { NC_("RID_ERRHDLSC", "Excel file format not yet implemented.") ,
47 SCERR_IMPORT_NI_BIFF },
48 { NC_("RID_ERRHDLSC", "This file is password-protected.") ,
49 SCERR_IMPORT_FILEPASSWD },
50 { NC_("RID_ERRHDLSC", "Internal import error.") ,
51 SCERR_IMPORT_INTERNAL },
52 { NC_("RID_ERRHDLSC", "The file contains data after row 8192 and therefore can not be read.") ,
53 SCERR_IMPORT_8K_LIMIT },
54 { NC_("RID_ERRHDLSC", "Format error discovered in the file in sub-document $(ARG1) at $(ARG2)(row,col)."),
55 SCERR_IMPORT_FILE_ROWCOL },
56 { NC_("RID_ERRHDLSC", "File format error found at $(ARG1)(row,col).") ,
57 SCERR_IMPORT_FORMAT_ROWCOL },
59 // Export ----------------------------------------------------
60 { NC_("RID_ERRHDLSC", "Connection to the file could not be established.") ,
61 SCERR_EXPORT_CONNECT },
62 { NC_("RID_ERRHDLSC", "Data could not be written.") ,
64 { NC_("RID_ERRHDLSC", "$(ARG1)") ,
65 SCERR_EXPORT_SQLEXCEPTION },
66 { NC_("RID_ERRHDLSC", "Cell $(ARG1) contains characters that are not representable in the selected target character set \"$(ARG2)\".") ,
67 SCERR_EXPORT_ENCODING },
68 { NC_("RID_ERRHDLSC", "Cell $(ARG1) contains a string that is longer in the selected target character set \"$(ARG2)\" than the given field width.") ,
69 SCERR_EXPORT_FIELDWIDTH },
71 // WARNINGS ---------------------------------------------------
72 { NC_("RID_ERRHDLSC", "Only the active sheet was saved.") ,
73 SCWARN_EXPORT_ASCII },
74 { NC_("RID_ERRHDLSC", "The maximum number of rows has been exceeded. Excess rows were not imported!") ,
75 SCWARN_IMPORT_RANGE_OVERFLOW },
76 { NC_("RID_ERRHDLSC", "The data could not be loaded completely because the maximum number of rows per sheet was exceeded.") ,
77 SCWARN_IMPORT_ROW_OVERFLOW },
78 { NC_("RID_ERRHDLSC", "The data could not be loaded completely because the maximum number of columns per sheet was exceeded.") ,
79 SCWARN_IMPORT_COLUMN_OVERFLOW },
80 { NC_("RID_ERRHDLSC", "Not all sheets have been loaded because the maximum number of sheets was exceeded.\n\nPlease be warned that re-saving this document will permanently delete those sheets that have not been loaded!") ,
81 SCWARN_IMPORT_SHEET_OVERFLOW },
82 { NC_("RID_ERRHDLSC", "The data could not be loaded completely because the maximum number of characters per cell was exceeded.") ,
83 SCWARN_IMPORT_CELL_OVERFLOW },
84 { NC_("RID_ERRHDLSC", "Corresponding FM3-File could not be opened.") ,
85 SCWARN_IMPORT_OPEN_FM3 },
86 { NC_("RID_ERRHDLSC", "Error in file structure of corresponding FM3-File.") ,
87 SCWARN_IMPORT_WRONG_FM3 },
88 { NC_("RID_ERRHDLSC", "Document too complex for automatic calculation. Press F9 to recalculate.") ,
89 SCWARN_CORE_HARD_RECALC },
90 { NC_("RID_ERRHDLSC", "The document contains more rows than supported in the selected format.\nAdditional rows were not saved.") ,
91 SCWARN_EXPORT_MAXROW },
92 { NC_("RID_ERRHDLSC", "The document contains more columns than supported in the selected format.\nAdditional columns were not saved.") ,
93 SCWARN_EXPORT_MAXCOL },
94 { NC_("RID_ERRHDLSC", "The document contains more sheets than supported in the selected format.\nAdditional sheets were not saved.") ,
95 SCWARN_EXPORT_MAXTAB },
96 { NC_("RID_ERRHDLSC", "The document contains information not recognized by this program version.\nResaving the document will delete this information!") ,
97 SCWARN_IMPORT_INFOLOST },
98 { NC_("RID_ERRHDLSC", "Not all cell contents could be saved in the specified format.") ,
99 SCWARN_EXPORT_DATALOST },
100 { NC_("RID_ERRHDLSC", "The following characters could not be converted to the selected character set\nand were written as Ӓ surrogates:\n\n$(ARG1)"),
101 SCWARN_EXPORT_NONCONVERTIBLE_CHARS },
102 { NC_("RID_ERRHDLSC", "Format error discovered in the file in sub-document $(ARG1) at $(ARG2)(row,col)."),
103 SCWARN_IMPORT_FILE_ROWCOL },
104 { NC_("RID_ERRHDLSC", "Not all attributes could be read.") ,
105 SCWARN_IMPORT_FEATURES_LOST },
106 { nullptr, ERRCODE_NONE }
111 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */