diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-14 16:34:39 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-17 09:59:59 +0200 |
commit | 8cf544cb3a71598dcf98e6563b51d2e334c720d3 (patch) | |
tree | e645056a4a8dfe9d41083450ae6d7f91d0a273e4 /sc/source/ui/drawfunc | |
parent | 979b460faf310be202d627ebd31dd87e3308e4b9 (diff) |
convert Link<> to typed
Change-Id: Ib0bf56a0e642720ff5daafdfc2dc12809be87e43
Diffstat (limited to 'sc/source/ui/drawfunc')
-rw-r--r-- | sc/source/ui/drawfunc/drtxtob.cxx | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/sc/source/ui/drawfunc/drtxtob.cxx b/sc/source/ui/drawfunc/drtxtob.cxx index c07b2dff7c03..e74c17fca932 100644 --- a/sc/source/ui/drawfunc/drtxtob.cxx +++ b/sc/source/ui/drawfunc/drtxtob.cxx @@ -476,18 +476,14 @@ void ScDrawTextObjectBar::GetState( SfxItemSet& rSet ) } } -IMPL_LINK( ScDrawTextObjectBar, ClipboardChanged, TransferableDataHelper*, pDataHelper ) +IMPL_LINK_TYPED( ScDrawTextObjectBar, ClipboardChanged, TransferableDataHelper*, pDataHelper, void ) { - if ( pDataHelper ) - { - bPastePossible = ( pDataHelper->HasFormat( SotClipboardFormatId::STRING ) || pDataHelper->HasFormat( SotClipboardFormatId::RTF ) ); + bPastePossible = ( pDataHelper->HasFormat( SotClipboardFormatId::STRING ) || pDataHelper->HasFormat( SotClipboardFormatId::RTF ) ); - SfxBindings& rBindings = pViewData->GetBindings(); - rBindings.Invalidate( SID_PASTE ); - rBindings.Invalidate( SID_PASTE_SPECIAL ); - rBindings.Invalidate( SID_CLIPBOARD_FORMAT_ITEMS ); - } - return 0; + SfxBindings& rBindings = pViewData->GetBindings(); + rBindings.Invalidate( SID_PASTE ); + rBindings.Invalidate( SID_PASTE_SPECIAL ); + rBindings.Invalidate( SID_CLIPBOARD_FORMAT_ITEMS ); } void ScDrawTextObjectBar::GetClipState( SfxItemSet& rSet ) |