diff options
author | Eike Rathke <er@openoffice.org> | 2001-09-07 18:37:38 +0000 |
---|---|---|
committer | Eike Rathke <er@openoffice.org> | 2001-09-07 18:37:38 +0000 |
commit | 5234dba199bcb1de2f9f92f51208c1a30c71aa14 (patch) | |
tree | fce097d51e524b40d559e80ed682a3e66957b82d /sc/source/ui/docshell/impex.cxx | |
parent | bb22a5cbebea7236b6de9b9bc8883a810879c141 (diff) |
#90962# paste OUString instead of String from clipboard (not limited to 64k)
Diffstat (limited to 'sc/source/ui/docshell/impex.cxx')
-rw-r--r-- | sc/source/ui/docshell/impex.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx index 3a92abdb4c72..70c1eab74609 100644 --- a/sc/source/ui/docshell/impex.cxx +++ b/sc/source/ui/docshell/impex.cxx @@ -2,9 +2,9 @@ * * $RCSfile: impex.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: er $ $Date: 2001-08-06 10:21:02 $ + * last change: $Author: er $ $Date: 2001-09-07 19:36:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -380,14 +380,14 @@ inline void ScImportExport::SetNoEndianSwap( SvStream& rStrm ) } -BOOL ScImportExport::ImportString( const String& rText, ULONG nFmt ) +BOOL ScImportExport::ImportString( const ::rtl::OUString& rText, ULONG nFmt ) { switch ( nFmt ) { // formats supporting unicode case FORMAT_STRING : { - SvMemoryStream aStrm( (void*)rText.GetBuffer(), rText.Len() * sizeof(sal_Unicode), STREAM_READ ); + SvMemoryStream aStrm( (void*)rText.getStr(), rText.getLength() * sizeof(sal_Unicode), STREAM_READ ); aStrm.SetStreamCharSet( RTL_TEXTENCODING_UNICODE ); SetNoEndianSwap( aStrm ); //! no swapping in memory return ImportStream( aStrm, nFmt ); @@ -397,8 +397,8 @@ BOOL ScImportExport::ImportString( const String& rText, ULONG nFmt ) default: { rtl_TextEncoding eEnc = gsl_getSystemTextEncoding(); - ByteString aTmp( rText, eEnc ); - SvMemoryStream aStrm( (void*)aTmp.GetBuffer(), aTmp.Len() * sizeof(sal_Char), STREAM_READ ); + ::rtl::OString aTmp( rText.getStr(), rText.getLength(), eEnc ); + SvMemoryStream aStrm( (void*)aTmp.getStr(), aTmp.getLength() * sizeof(sal_Char), STREAM_READ ); aStrm.SetStreamCharSet( eEnc ); SetNoEndianSwap( aStrm ); //! no swapping in memory return ImportStream( aStrm, nFmt ); |