summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2007-08-20 15:51:55 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2007-08-20 15:51:55 +0000
commite6f9244c6065c74df96633875490feb8804ab1fc (patch)
treefd6aeddf1ee8269207a91026c7496b55dcdb39af /sc
parent18d40d91a90ba7fd908ba814b15bd87fc9dcab76 (diff)
INTEGRATION: CWS calctextcol (1.12.210); FILE MERGED
2007/08/07 11:28:55 tbe 1.12.210.2: #i4040 Convert text to columns 2007/07/31 14:58:32 tbe 1.12.210.1: #i4040 Convert text to columns
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/inc/impex.hxx24
1 files changed, 19 insertions, 5 deletions
diff --git a/sc/source/ui/inc/impex.hxx b/sc/source/ui/inc/impex.hxx
index 37828d35120c..c76d69a42410 100644
--- a/sc/source/ui/inc/impex.hxx
+++ b/sc/source/ui/inc/impex.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: impex.hxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: ihi $ $Date: 2006-10-18 11:47:17 $
+ * last change: $Author: ihi $ $Date: 2007-08-20 16:51:55 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -75,6 +75,7 @@ class ScImportExport
BOOL bSingle; // Einfachselektion
BOOL bUndo; // Mit Undo?
BOOL bOverflow; // zuviele Zeilen/Spalten
+ bool mbApi;
ScAsciiOptions* pExtOptions; // erweiterte Optionen
@@ -92,9 +93,6 @@ class ScImportExport
BOOL RTF2Doc( SvStream&, const String& rBaseURL );
BOOL HTML2Doc( SvStream&, const String& rBaseURL );
- //! only if stream is only used in own (!) memory
- static inline void SetNoEndianSwap( SvStream& rStrm );
-
public:
ScImportExport( ScDocument* ); // Gesamtdokument
ScImportExport( ScDocument*, const String& ); // Bereichs/Zellangabe
@@ -121,6 +119,9 @@ public:
static void WriteUnicodeOrByteEndl( SvStream& rStrm );
static inline BOOL IsEndianSwap( const SvStream& rStrm );
+ //! only if stream is only used in own (!) memory
+ static inline void SetNoEndianSwap( SvStream& rStrm );
+
sal_Unicode GetSeparator() const { return cSep; }
void SetSeparator( sal_Unicode c ) { cSep = c; }
sal_Unicode GetDelimiter() const { return cStr; }
@@ -150,6 +151,9 @@ public:
BOOL IsOverflow() const { return bOverflow; } // nach dem Importieren
const String& GetNonConvertibleChars() const { return aNonConvertibleChars; }
+
+ bool IsApi() const { return mbApi; }
+ void SetApi( bool bApi ) { mbApi = bApi; }
};
@@ -163,6 +167,16 @@ inline BOOL ScImportExport::IsEndianSwap( const SvStream& rStrm )
#endif
}
+// static
+inline void ScImportExport::SetNoEndianSwap( SvStream& rStrm )
+{
+#ifdef OSL_BIGENDIAN
+ rStrm.SetNumberFormatInt( NUMBERFORMAT_INT_BIGENDIAN );
+#else
+ rStrm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
+#endif
+}
+
// Helper class for importing clipboard strings as streams.
class ScImportStringStream : public SvMemoryStream