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) reinterpret_cast<char const *>(Context "\004" u8##String)
25 #include <svtools/ehdl.hxx>
26 #include "scerrors.hxx"
28 const ErrMsgCode RID_ERRHDLSC[] =
30 // ERRORS -----------------------------------------------------
31 { NC_("RID_ERRHDLSC", "Impossible to connect to the file.") ,
32 SCERR_IMPORT_CONNECT },
33 { NC_("RID_ERRHDLSC", "File could not be opened.") ,
35 { NC_("RID_ERRHDLSC", "An unknown error has occurred.") ,
36 SCERR_IMPORT_UNKNOWN },
37 { NC_("RID_ERRHDLSC", "Not enough memory while importing.") ,
38 SCERR_IMPORT_OUTOFMEM },
39 { NC_("RID_ERRHDLSC", "Unknown Lotus1-2-3 file format.") ,
40 SCERR_IMPORT_UNKNOWN_WK },
41 { NC_("RID_ERRHDLSC", "Error in file structure while importing.") ,
42 SCERR_IMPORT_FORMAT },
43 { NC_("RID_ERRHDLSC", "There is no filter available for this file type.") ,
45 { NC_("RID_ERRHDLSC", "Unknown or unsupported Excel file format.") ,
46 SCERR_IMPORT_UNKNOWN_BIFF },
47 { NC_("RID_ERRHDLSC", "Excel file format not yet implemented.") ,
48 SCERR_IMPORT_NI_BIFF },
49 { NC_("RID_ERRHDLSC", "This file is password-protected.") ,
50 SCERR_IMPORT_FILEPASSWD },
51 { NC_("RID_ERRHDLSC", "Internal import error.") ,
52 SCERR_IMPORT_INTERNAL },
53 { NC_("RID_ERRHDLSC", "The file contains data after row 8192 and therefore can not be read.") ,
54 SCERR_IMPORT_8K_LIMIT },
55 { NC_("RID_ERRHDLSC", "Format error discovered in the file in sub-document $(ARG1) at $(ARG2)(row,col)."),
56 SCERR_IMPORT_FILE_ROWCOL },
57 { NC_("RID_ERRHDLSC", "File format error found at $(ARG1)(row,col).") ,
58 SCERR_IMPORT_FORMAT_ROWCOL },
60 // Export ----------------------------------------------------
61 { NC_("RID_ERRHDLSC", "Connection to the file could not be established.") ,
62 SCERR_EXPORT_CONNECT },
63 { NC_("RID_ERRHDLSC", "Data could not be written.") ,
65 { NC_("RID_ERRHDLSC", "$(ARG1)") ,
66 SCERR_EXPORT_SQLEXCEPTION },
67 { NC_("RID_ERRHDLSC", "Cell $(ARG1) contains characters that are not representable in the selected target character set \"$(ARG2)\".") ,
68 SCERR_EXPORT_ENCODING },
69 { NC_("RID_ERRHDLSC", "Cell $(ARG1) contains a string that is longer in the selected target character set \"$(ARG2)\" than the given field width.") ,
70 SCERR_EXPORT_FIELDWIDTH },
72 // WARNINGS ---------------------------------------------------
73 { NC_("RID_ERRHDLSC", "Only the active sheet was saved.") ,
74 SCWARN_EXPORT_ASCII },
75 { NC_("RID_ERRHDLSC", "The maximum number of rows has been exceeded. Excess rows were not imported!") ,
76 SCWARN_IMPORT_RANGE_OVERFLOW },
77 { NC_("RID_ERRHDLSC", "The data could not be loaded completely because the maximum number of rows per sheet was exceeded.") ,
78 SCWARN_IMPORT_ROW_OVERFLOW },
79 { NC_("RID_ERRHDLSC", "The data could not be loaded completely because the maximum number of columns per sheet was exceeded.") ,
80 SCWARN_IMPORT_COLUMN_OVERFLOW },
81 { 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!") ,
82 SCWARN_IMPORT_SHEET_OVERFLOW },
83 { NC_("RID_ERRHDLSC", "The data could not be loaded completely because the maximum number of characters per cell was exceeded.") ,
84 SCWARN_IMPORT_CELL_OVERFLOW },
85 { NC_("RID_ERRHDLSC", "Corresponding FM3-File could not be opened.") ,
86 SCWARN_IMPORT_OPEN_FM3 },
87 { NC_("RID_ERRHDLSC", "Error in file structure of corresponding FM3-File.") ,
88 SCWARN_IMPORT_WRONG_FM3 },
89 { NC_("RID_ERRHDLSC", "Document too complex for automatic calculation. Press F9 to recalculate.") ,
90 SCWARN_CORE_HARD_RECALC },
91 { NC_("RID_ERRHDLSC", "The document contains more rows than supported in the selected format.\nAdditional rows were not saved.") ,
92 SCWARN_EXPORT_MAXROW },
93 { NC_("RID_ERRHDLSC", "The document contains more columns than supported in the selected format.\nAdditional columns were not saved.") ,
94 SCWARN_EXPORT_MAXCOL },
95 { NC_("RID_ERRHDLSC", "The document contains more sheets than supported in the selected format.\nAdditional sheets were not saved.") ,
96 SCWARN_EXPORT_MAXTAB },
97 { NC_("RID_ERRHDLSC", "The document contains information not recognized by this program version.\nResaving the document will delete this information!") ,
98 SCWARN_IMPORT_INFOLOST },
99 { NC_("RID_ERRHDLSC", "Not all cell contents could be saved in the specified format.") ,
100 SCWARN_EXPORT_DATALOST },
101 { NC_("RID_ERRHDLSC", "The following characters could not be converted to the selected character set\nand were written as Ӓ surrogates:\n\n$(ARG1)"),
102 SCWARN_EXPORT_NONCONVERTIBLE_CHARS },
103 { NC_("RID_ERRHDLSC", "Format error discovered in the file in sub-document $(ARG1) at $(ARG2)(row,col)."),
104 SCWARN_IMPORT_FILE_ROWCOL },
105 { NC_("RID_ERRHDLSC", "Not all attributes could be read.") ,
106 SCWARN_IMPORT_FEATURES_LOST },
107 { nullptr, ERRCODE_NONE }
112 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */