summaryrefslogtreecommitdiff
path: root/sc/inc/filter.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/inc/filter.hxx')
-rw-r--r--sc/inc/filter.hxx52
1 files changed, 25 insertions, 27 deletions
diff --git a/sc/inc/filter.hxx b/sc/inc/filter.hxx
index c678e71535f6..6a119a8570c0 100644
--- a/sc/inc/filter.hxx
+++ b/sc/inc/filter.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -41,38 +42,34 @@ class ScDocument;
class ScRange;
class SvNumberFormatter;
-// Return-Werte Im-/Exportfilter (sal_uLong)
+// return values im-/export filter (sal_uLong)
typedef sal_uLong FltError;
-//enum FltError {
-#define eERR_OK ERRCODE_NONE // kein Fehler, alles OK
+#define eERR_OK ERRCODE_NONE // no error
#define eERR_OPEN SCERR_IMPORT_OPEN // ...
-#define eERR_UNBEK SCERR_IMPORT_UNKNOWN // unbekannter Fehler, auch historische Bedeutung
-#define eERR_NOMEM SCERR_IMPORT_OUTOFMEM // nicht mehr genuegend Speicher zur Verfuegung
-#define eERR_UNKN_WK SCERR_IMPORT_UNKNOWN_WK // unbekanntes WK?-Format (Lotus 1-2-3)
-#define eERR_FORMAT SCERR_IMPORT_FORMAT // Formatfehler beim Lesen (kein Formel-Fehler!)
-#define eERR_NI SCERR_IMPORT_NI // Nicht implementierter Filter
-#define eERR_UNKN_BIFF SCERR_IMPORT_UNKNOWN_BIFF // unbekanntes BIFF-Format (Excel)
-#define eERR_NI_BIFF SCERR_IMPORT_NI_BIFF // nicht implementiertes BIFF-Format
-#define eERR_FILEPASSWD SCERR_IMPORT_FILEPASSWD // File Passwordgeschuetzt
-#define eERR_INTERN SCERR_IMPORT_INTERNAL // interner Fehler
-#define eERR_RNGOVRFLW SCWARN_IMPORT_RANGE_OVERFLOW// ueberlauf der Zellkoordinaten:
- // Tabelle abgschnitten auf erlaubtem Bereich
-// mehr Fehlercodes siehe scerrors.hxx
-
-// };
-
-
-// fuer Import
+#define eERR_UNBEK SCERR_IMPORT_UNKNOWN // unknown error, historical meaning
+#define eERR_NOMEM SCERR_IMPORT_OUTOFMEM // out of memory
+#define eERR_UNKN_WK SCERR_IMPORT_UNKNOWN_WK // unknown WK? format (Lotus 1-2-3)
+#define eERR_FORMAT SCERR_IMPORT_FORMAT // format error during reading (no formula error!)
+#define eERR_NI SCERR_IMPORT_NI // filter not implemented
+#define eERR_UNKN_BIFF SCERR_IMPORT_UNKNOWN_BIFF // unknown BIFF format (Excel)
+#define eERR_NI_BIFF SCERR_IMPORT_NI_BIFF // not implemented BIFF format
+#define eERR_FILEPASSWD SCERR_IMPORT_FILEPASSWD // file password protected
+#define eERR_INTERN SCERR_IMPORT_INTERNAL // internal error
+#define eERR_RNGOVRFLW SCWARN_IMPORT_RANGE_OVERFLOW// overflow of cell coordinates
+ // table restricted to valid area (?)
+// more error codes: s. scerrors.hxx
+
+// for import
enum EXCIMPFORMAT { EIF_AUTO, EIF_BIFF5, EIF_BIFF8, EIF_BIFF_LE4 };
-// fuer Export
+// for export
enum ExportFormatLotus { ExpWK1, ExpWK3, ExpWK4 };
enum ExportFormatExcel { ExpBiff2, ExpBiff3, ExpBiff4, ExpBiff4W, ExpBiff5, ExpBiff8, Exp2007Xml };
-// Optionen fuer DIF-Im-/Export (Kombination ueber '|')
+// options for DIF im-/export (combine with '|')
#define SC_DIFOPT_PLAIN 0x00000000
#define SC_DIFOPT_DATE 0x00000001
#define SC_DIFOPT_TIME 0x00000002
@@ -91,7 +88,7 @@ class ScEEAbsImport {
virtual sal_uLong Read( SvStream& rStream, const String& rBaseURL ) = 0;
virtual ScRange GetRange() = 0;
virtual void WriteToDocument(
- sal_Bool bSizeColsRows = sal_False, double nOutputFactor = 1.0,
+ sal_Bool bSizeColsRows = false, double nOutputFactor = 1.0,
SvNumberFormatter* pFormatter = NULL, bool bConvertDate = true ) = 0;
};
@@ -101,10 +98,10 @@ class ScFormatFilterPlugin {
virtual FltError ScImportLotus123( SfxMedium&, ScDocument*, CharSet eSrc = RTL_TEXTENCODING_DONTKNOW ) = 0;
virtual FltError ScImportQuattroPro( SfxMedium &rMedium, ScDocument *pDoc ) = 0;
virtual FltError ScImportExcel( SfxMedium&, ScDocument*, const EXCIMPFORMAT ) = 0;
- // eFormat == EIF_AUTO -> passender Filter wird automatisch verwendet
- // eFormat == EIF_BIFF5 -> nur Biff5-Stream fuehrt zum Erfolg (auch wenn in einem Excel97-Doc)
- // eFormat == EIF_BIFF8 -> nur Biff8-Stream fuehrt zum Erfolg (nur in Excel97-Docs)
- // eFormat == EIF_BIFF_LE4 -> nur Nicht-Storage-Dateien _koennen_ zum Erfolg fuehren
+ // eFormat == EIF_AUTO -> matching filter is used automatically
+ // eFormat == EIF_BIFF5 -> only Biff5 stream is read sucessfully (in an Excel97 doc, too)
+ // eFormat == EIF_BIFF8 -> only Biff8 stream is read sucessfully (only in Excel97 docs)
+ // eFormat == EIF_BIFF_LE4 -> only non storage files _might_ be read sucessfully
virtual FltError ScImportStarCalc10( SvStream&, ScDocument* ) = 0;
virtual FltError ScImportDif( SvStream&, ScDocument*, const ScAddress& rInsPos,
const CharSet eSrc = RTL_TEXTENCODING_DONTKNOW, sal_uInt32 nDifOption = SC_DIFOPT_EXCEL ) = 0;
@@ -143,3 +140,4 @@ class ScFormatFilter {
#endif
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */