summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/impex.hxx
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2006-10-18 10:47:17 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2006-10-18 10:47:17 +0000
commit4468c1e47a3c98399244f1c65870c861f7fd3742 (patch)
treeb19df926243b24c4d06cb112b33c0e709ed75ec3 /sc/source/ui/inc/impex.hxx
parent6795b75e21ca212950975a01278f8baf37fc49fe (diff)
INTEGRATION: CWS calc39 (1.11.282); FILE MERGED
2006/10/05 22:30:58 er 1.11.282.1: #i15509# invoke CSV text import dialog when pasting unformatted text with delimiters from clipboard
Diffstat (limited to 'sc/source/ui/inc/impex.hxx')
-rw-r--r--sc/source/ui/inc/impex.hxx18
1 files changed, 16 insertions, 2 deletions
diff --git a/sc/source/ui/inc/impex.hxx b/sc/source/ui/inc/impex.hxx
index 5716edf1c0b4..37828d35120c 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.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 21:33:21 $
+ * last change: $Author: ihi $ $Date: 2006-10-18 11:47:17 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -164,5 +164,19 @@ inline BOOL ScImportExport::IsEndianSwap( const SvStream& rStrm )
}
+// Helper class for importing clipboard strings as streams.
+class ScImportStringStream : public SvMemoryStream
+{
+public:
+ ScImportStringStream( const ::rtl::OUString rStr )
+ : SvMemoryStream( (void*)rStr.getStr(),
+ rStr.getLength() * sizeof(sal_Unicode), STREAM_READ)
+ {
+ SetStreamCharSet( RTL_TEXTENCODING_UNICODE );
+ SetEndianSwap( FALSE );
+ }
+};
+
+
#endif