diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2018-07-08 19:30:28 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-07-17 10:26:33 +0200 |
commit | 923131f8b47f7ae53b1385df213722991673bffa (patch) | |
tree | a2a2fe163cf11aec36edef4905c4dd47ea4e563e /svtools | |
parent | a51e14849606111e9dcbccb2707786c53e0f732d (diff) |
tdf#105262 Clean up CopyGraphic
It's only available in read-only mode, it doesn't work and
the images can be copied with the normal copy option
Change-Id: I6493147309104b2b0f3881a667547c38d7633ef3
Reviewed-on: https://gerrit.libreoffice.org/57162
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/misc/transfer2.cxx | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/svtools/source/misc/transfer2.cxx b/svtools/source/misc/transfer2.cxx index b1ece2619f52..f41163a729ba 100644 --- a/svtools/source/misc/transfer2.cxx +++ b/svtools/source/misc/transfer2.cxx @@ -427,51 +427,6 @@ void TransferDataContainer::CopyByteString( SotClipboardFormatId nFormatId, } -void TransferDataContainer::CopyINetImage( const INetImage& rINtImg ) -{ - SvMemoryStream aMemStm( 1024, 1024 ); - aMemStm.SetVersion( SOFFICE_FILEFORMAT_50 ); - rINtImg.Write( aMemStm, SotClipboardFormatId::INET_IMAGE ); - CopyAnyData( SotClipboardFormatId::INET_IMAGE, static_cast<sal_Char const *>(aMemStm.GetData()), - aMemStm.Seek( STREAM_SEEK_TO_END ) ); -} - - -void TransferDataContainer::CopyImageMap( const ImageMap& rImgMap ) -{ - SvMemoryStream aMemStm( 8192, 8192 ); - aMemStm.SetVersion( SOFFICE_FILEFORMAT_50 ); - rImgMap.Write( aMemStm ); - CopyAnyData( SotClipboardFormatId::SVIM, static_cast<sal_Char const *>(aMemStm.GetData()), - aMemStm.Seek( STREAM_SEEK_TO_END ) ); -} - - -void TransferDataContainer::CopyGraphic( const Graphic& rGrf ) -{ - GraphicType nType = rGrf.GetType(); - if( GraphicType::NONE == nType ) - return; - - if( !pImpl->pGrf ) - pImpl->pGrf.reset( new Graphic( rGrf ) ); - else - *pImpl->pGrf = rGrf; - - AddFormat( SotClipboardFormatId::SVXB ); - - if( GraphicType::Bitmap == nType ) - { - AddFormat( SotClipboardFormatId::PNG ); - AddFormat( SotClipboardFormatId::BITMAP ); - } - else if( GraphicType::GdiMetafile == nType ) - { - AddFormat( SotClipboardFormatId::GDIMETAFILE ); - } -} - - void TransferDataContainer::CopyString( SotClipboardFormatId nFmt, const OUString& rStr ) { if( !rStr.isEmpty() ) |