diff options
author | Niklas Nebel <nn@openoffice.org> | 2001-08-16 11:22:45 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2001-08-16 11:22:45 +0000 |
commit | 3a2b120bcb4cced1871a6b216de1454029cd07ea (patch) | |
tree | 61a4f84d3a707b857e55df991042ad782e20f650 /sc/source/ui/view/cellsh.cxx | |
parent | efa2fc9e5d2aaddea611ff5155365c3336a838ed (diff) |
#90675# translated clipboard format names are now in so3
Diffstat (limited to 'sc/source/ui/view/cellsh.cxx')
-rw-r--r-- | sc/source/ui/view/cellsh.cxx | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx index 9b2937bf9522..96fc2df47477 100644 --- a/sc/source/ui/view/cellsh.cxx +++ b/sc/source/ui/view/cellsh.cxx @@ -2,9 +2,9 @@ * * $RCSfile: cellsh.cxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: nn $ $Date: 2001-07-19 20:28:13 $ + * last change: $Author: nn $ $Date: 2001-08-16 12:15:35 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -332,25 +332,17 @@ void lcl_TestFormat( SvxClipboardFmtItem& rFormats, const TransferableDataHelper { if ( rDataHelper.HasFormat( nFormatId ) ) { - USHORT nResId = 0; + // #90675# translated format name strings are no longer inserted here, + // handled by "paste special" dialog / toolbox controller instead. + // Only the object type name has to be set here: String aStrVal; - switch ( nFormatId ) + if ( nFormatId == SOT_FORMATSTR_ID_EMBED_SOURCE ) { - case SOT_FORMATSTR_ID_LINK: nResId = SCSTR_CLIP_DDE; break; - case SOT_FORMAT_STRING: nResId = SCSTR_CLIP_STRING; break; - case SOT_FORMATSTR_ID_DIF: nResId = SCSTR_CLIP_DIF; break; - case SOT_FORMAT_RTF: nResId = SCSTR_CLIP_RTF; break; - case SOT_FORMATSTR_ID_EMBED_SOURCE: - { - TransferableObjectDescriptor aDesc; - if ( ((TransferableDataHelper&)rDataHelper).GetTransferableObjectDescriptor( - SOT_FORMATSTR_ID_OBJECTDESCRIPTOR, aDesc ) ) - aStrVal = aDesc.maTypeName; - } - break; + TransferableObjectDescriptor aDesc; + if ( ((TransferableDataHelper&)rDataHelper).GetTransferableObjectDescriptor( + SOT_FORMATSTR_ID_OBJECTDESCRIPTOR, aDesc ) ) + aStrVal = aDesc.maTypeName; } - if ( nResId ) - aStrVal = String( ScResId( nResId ) ); if ( aStrVal.Len() ) rFormats.AddClipbrdFormat( nFormatId, aStrVal ); |