summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/servobj.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/docshell/servobj.cxx')
-rw-r--r--sc/source/ui/docshell/servobj.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/servobj.cxx b/sc/source/ui/docshell/servobj.cxx
index 712da4e96ade..1b4190f95737 100644
--- a/sc/source/ui/docshell/servobj.cxx
+++ b/sc/source/ui/docshell/servobj.cxx
@@ -163,7 +163,8 @@ bool ScServerObject::GetData(
OUString aDdeTextFmt = pDocSh->GetDdeTextFmt();
ScDocument& rDoc = pDocSh->GetDocument();
- if( SotClipboardFormatId::STRING == SotExchange::GetFormatIdFromMimeType( rMimeType ))
+ SotClipboardFormatId eFormatId = SotExchange::GetFormatIdFromMimeType( rMimeType );
+ if (SotClipboardFormatId::STRING == eFormatId || SotClipboardFormatId::STRING_TSVC == eFormatId)
{
ScImportExport aObj( &rDoc, aRange );
if( aDdeTextFmt[0] == 'F' )
@@ -182,6 +183,7 @@ bool ScServerObject::GetData(
}
if( aDdeTextFmt == "CSV" || aDdeTextFmt == "FCSV" )
aObj.SetSeparator( ',' );
+ /* TODO: STRING_TSVC could preserve line breaks with added quotes. */
aObj.SetExportTextOptions( ScExportTextOptions( ScExportTextOptions::ToSpace, ' ', false ) );
return aObj.ExportData( rMimeType, rData );
}