summaryrefslogtreecommitdiffstats
path: root/sc/inc
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2017-08-23 19:25:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-25 09:03:42 +0200
commit7ca950ec744b7af1d15724ec2abc296573a641e4 (patch)
treec224a4bb30c6379c4716035d3ae413bd91c0e26d /sc/inc
parentUpdated core (diff)
downloadcore-7ca950ec744b7af1d15724ec2abc296573a641e4.tar.gz
core-7ca950ec744b7af1d15724ec2abc296573a641e4.zip
no need to use ERRCODE_RES_MASK here
the relevant usage sites already call GetRest() before comparing Change-Id: I5e8ce3a3c2b6972810aa527356f6350c61b8bd63 Reviewed-on: https://gerrit.libreoffice.org/41470 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/scerrors.hrc72
1 files changed, 36 insertions, 36 deletions
diff --git a/sc/inc/scerrors.hrc b/sc/inc/scerrors.hrc
index 9e8b89d4d6f2..3672a27b1a70 100644
--- a/sc/inc/scerrors.hrc
+++ b/sc/inc/scerrors.hrc
@@ -28,81 +28,81 @@ const ErrMsgCode RID_ERRHDLSC[] =
{
// ERRORS -----------------------------------------------------
{ NC_("RID_ERRHDLSC", "Impossible to connect to the file.") ,
- ErrCode(sal_uInt32(SCERR_IMPORT_CONNECT) & ERRCODE_RES_MASK) },
+ SCERR_IMPORT_CONNECT },
{ NC_("RID_ERRHDLSC", "File could not be opened.") ,
- ErrCode(sal_uInt32(SCERR_IMPORT_OPEN) & ERRCODE_RES_MASK) },
+ SCERR_IMPORT_OPEN },
{ NC_("RID_ERRHDLSC", "An unknown error has occurred.") ,
- ErrCode(sal_uInt32(SCERR_IMPORT_UNKNOWN) & ERRCODE_RES_MASK) },
+ SCERR_IMPORT_UNKNOWN },
{ NC_("RID_ERRHDLSC", "Not enough memory while importing.") ,
- ErrCode(sal_uInt32(SCERR_IMPORT_OUTOFMEM) & ERRCODE_RES_MASK) },
+ SCERR_IMPORT_OUTOFMEM },
{ NC_("RID_ERRHDLSC", "Unknown Lotus1-2-3 file format.") ,
- ErrCode(sal_uInt32(SCERR_IMPORT_UNKNOWN_WK) & ERRCODE_RES_MASK) },
+ SCERR_IMPORT_UNKNOWN_WK },
{ NC_("RID_ERRHDLSC", "Error in file structure while importing.") ,
- ErrCode(sal_uInt32(SCERR_IMPORT_FORMAT) & ERRCODE_RES_MASK) },
+ SCERR_IMPORT_FORMAT },
{ NC_("RID_ERRHDLSC", "There is no filter available for this file type.") ,
- ErrCode(sal_uInt32(SCERR_IMPORT_NI) & ERRCODE_RES_MASK) },
+ SCERR_IMPORT_NI },
{ NC_("RID_ERRHDLSC", "Unknown or unsupported Excel file format.") ,
- ErrCode(sal_uInt32(SCERR_IMPORT_UNKNOWN_BIFF) & ERRCODE_RES_MASK) },
+ SCERR_IMPORT_UNKNOWN_BIFF },
{ NC_("RID_ERRHDLSC", "Excel file format not yet implemented.") ,
- ErrCode(sal_uInt32(SCERR_IMPORT_NI_BIFF) & ERRCODE_RES_MASK) },
+ SCERR_IMPORT_NI_BIFF },
{ NC_("RID_ERRHDLSC", "This file is password-protected.") ,
- ErrCode(sal_uInt32(SCERR_IMPORT_FILEPASSWD) & ERRCODE_RES_MASK) },
+ SCERR_IMPORT_FILEPASSWD },
{ NC_("RID_ERRHDLSC", "Internal import error.") ,
- ErrCode(sal_uInt32(SCERR_IMPORT_INTERNAL) & ERRCODE_RES_MASK) },
+ SCERR_IMPORT_INTERNAL },
{ NC_("RID_ERRHDLSC", "The file contains data after row 8192 and therefore can not be read.") ,
- ErrCode(sal_uInt32(SCERR_IMPORT_8K_LIMIT) & ERRCODE_RES_MASK) },
+ SCERR_IMPORT_8K_LIMIT },
{ NC_("RID_ERRHDLSC", "Format error discovered in the file in sub-document $(ARG1) at $(ARG2)(row,col)."),
- ErrCode(sal_uInt32(SCERR_IMPORT_FILE_ROWCOL) & ERRCODE_RES_MASK) },
+ SCERR_IMPORT_FILE_ROWCOL },
{ NC_("RID_ERRHDLSC", "File format error found at $(ARG1)(row,col).") ,
- ErrCode(sal_uInt32(SCERR_IMPORT_FORMAT_ROWCOL) & ERRCODE_RES_MASK) },
+ SCERR_IMPORT_FORMAT_ROWCOL },
// Export ----------------------------------------------------
{ NC_("RID_ERRHDLSC", "Connection to the file could not be established.") ,
- ErrCode(sal_uInt32(SCERR_EXPORT_CONNECT) & ERRCODE_RES_MASK) },
+ SCERR_EXPORT_CONNECT },
{ NC_("RID_ERRHDLSC", "Data could not be written.") ,
- ErrCode(sal_uInt32(SCERR_EXPORT_DATA) & ERRCODE_RES_MASK) },
+ SCERR_EXPORT_DATA },
{ NC_("RID_ERRHDLSC", "$(ARG1)") ,
- ErrCode(sal_uInt32(SCERR_EXPORT_SQLEXCEPTION) & ERRCODE_RES_MASK) },
+ SCERR_EXPORT_SQLEXCEPTION },
{ NC_("RID_ERRHDLSC", "Cell $(ARG1) contains characters that are not representable in the selected target character set \"$(ARG2)\".") ,
- ErrCode(sal_uInt32(SCERR_EXPORT_ENCODING) & ERRCODE_RES_MASK) },
+ SCERR_EXPORT_ENCODING },
{ NC_("RID_ERRHDLSC", "Cell $(ARG1) contains a string that is longer in the selected target character set \"$(ARG2)\" than the given field width.") ,
- ErrCode(sal_uInt32(SCERR_EXPORT_FIELDWIDTH) & ERRCODE_RES_MASK) },
+ SCERR_EXPORT_FIELDWIDTH },
// WARNINGS ---------------------------------------------------
{ NC_("RID_ERRHDLSC", "Only the active sheet was saved.") ,
- ErrCode(sal_uInt32(SCWARN_EXPORT_ASCII) & ERRCODE_RES_MASK) },
+ SCWARN_EXPORT_ASCII },
{ NC_("RID_ERRHDLSC", "The maximum number of rows has been exceeded. Excess rows were not imported!") ,
- ErrCode(sal_uInt32(SCWARN_IMPORT_RANGE_OVERFLOW) & ERRCODE_RES_MASK) },
+ SCWARN_IMPORT_RANGE_OVERFLOW },
{ NC_("RID_ERRHDLSC", "The data could not be loaded completely because the maximum number of rows per sheet was exceeded.") ,
- ErrCode(sal_uInt32(SCWARN_IMPORT_ROW_OVERFLOW) & ERRCODE_RES_MASK) },
+ SCWARN_IMPORT_ROW_OVERFLOW },
{ NC_("RID_ERRHDLSC", "The data could not be loaded completely because the maximum number of columns per sheet was exceeded.") ,
- ErrCode(sal_uInt32(SCWARN_IMPORT_COLUMN_OVERFLOW) & ERRCODE_RES_MASK) },
+ SCWARN_IMPORT_COLUMN_OVERFLOW },
{ 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!") ,
- ErrCode(sal_uInt32(SCWARN_IMPORT_SHEET_OVERFLOW) & ERRCODE_RES_MASK) },
+ SCWARN_IMPORT_SHEET_OVERFLOW },
{ NC_("RID_ERRHDLSC", "The data could not be loaded completely because the maximum number of characters per cell was exceeded.") ,
- ErrCode(sal_uInt32(SCWARN_IMPORT_CELL_OVERFLOW) & ERRCODE_RES_MASK) },
+ SCWARN_IMPORT_CELL_OVERFLOW },
{ NC_("RID_ERRHDLSC", "Corresponding FM3-File could not be opened.") ,
- ErrCode(sal_uInt32(SCWARN_IMPORT_OPEN_FM3) & ERRCODE_RES_MASK) },
+ SCWARN_IMPORT_OPEN_FM3 },
{ NC_("RID_ERRHDLSC", "Error in file structure of corresponding FM3-File.") ,
- ErrCode(sal_uInt32(SCWARN_IMPORT_WRONG_FM3) & ERRCODE_RES_MASK) },
+ SCWARN_IMPORT_WRONG_FM3 },
{ NC_("RID_ERRHDLSC", "Document too complex for automatic calculation. Press F9 to recalculate.") ,
- ErrCode(sal_uInt32(SCWARN_CORE_HARD_RECALC) & ERRCODE_RES_MASK) },
+ SCWARN_CORE_HARD_RECALC },
{ NC_("RID_ERRHDLSC", "The document contains more rows than supported in the selected format.\nAdditional rows were not saved.") ,
- ErrCode(sal_uInt32(SCWARN_EXPORT_MAXROW) & ERRCODE_RES_MASK) },
+ SCWARN_EXPORT_MAXROW },
{ NC_("RID_ERRHDLSC", "The document contains more columns than supported in the selected format.\nAdditional columns were not saved.") ,
- ErrCode(sal_uInt32(SCWARN_EXPORT_MAXCOL) & ERRCODE_RES_MASK) },
+ SCWARN_EXPORT_MAXCOL },
{ NC_("RID_ERRHDLSC", "The document contains more sheets than supported in the selected format.\nAdditional sheets were not saved.") ,
- ErrCode(sal_uInt32(SCWARN_EXPORT_MAXTAB) & ERRCODE_RES_MASK) },
+ SCWARN_EXPORT_MAXTAB },
{ NC_("RID_ERRHDLSC", "The document contains information not recognized by this program version.\nResaving the document will delete this information!") ,
- ErrCode(sal_uInt32(SCWARN_IMPORT_INFOLOST) & ERRCODE_RES_MASK) },
+ SCWARN_IMPORT_INFOLOST },
{ NC_("RID_ERRHDLSC", "Not all cell contents could be saved in the specified format.") ,
- ErrCode(sal_uInt32(SCWARN_EXPORT_DATALOST) & ERRCODE_RES_MASK) },
+ SCWARN_EXPORT_DATALOST },
{ NC_("RID_ERRHDLSC", "The following characters could not be converted to the selected character set\nand were written as &#1234; surrogates:\n\n$(ARG1)"),
- ErrCode(sal_uInt32(SCWARN_EXPORT_NONCONVERTIBLE_CHARS) & ERRCODE_RES_MASK) },
+ SCWARN_EXPORT_NONCONVERTIBLE_CHARS },
{ NC_("RID_ERRHDLSC", "Format error discovered in the file in sub-document $(ARG1) at $(ARG2)(row,col)."),
- ErrCode(sal_uInt32(SCWARN_IMPORT_FILE_ROWCOL) & ERRCODE_RES_MASK) },
+ SCWARN_IMPORT_FILE_ROWCOL },
{ NC_("RID_ERRHDLSC", "Not all attributes could be read.") ,
- ErrCode(sal_uInt32(SCWARN_IMPORT_FEATURES_LOST) & ERRCODE_RES_MASK) },
+ SCWARN_IMPORT_FEATURES_LOST },
{ nullptr, ERRCODE_NONE }
};