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 /sd/source/ui/view/outlnvsh.cxx | |
parent | 979b460faf310be202d627ebd31dd87e3308e4b9 (diff) |
convert Link<> to typed
Change-Id: Ib0bf56a0e642720ff5daafdfc2dc12809be87e43
Diffstat (limited to 'sd/source/ui/view/outlnvsh.cxx')
-rw-r--r-- | sd/source/ui/view/outlnvsh.cxx | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/sd/source/ui/view/outlnvsh.cxx b/sd/source/ui/view/outlnvsh.cxx index c3382c85967a..ed7dde9c1f41 100644 --- a/sd/source/ui/view/outlnvsh.cxx +++ b/sd/source/ui/view/outlnvsh.cxx @@ -706,22 +706,18 @@ void OutlineViewShell::FuPermanent(SfxRequest &rReq) } } -IMPL_LINK( OutlineViewShell, ClipboardChanged, TransferableDataHelper*, pDataHelper ) +IMPL_LINK_TYPED( OutlineViewShell, ClipboardChanged, TransferableDataHelper*, pDataHelper, void ) { - if ( pDataHelper ) - { - bPastePossible = ( pDataHelper->GetFormatCount() != 0 && - ( pDataHelper->HasFormat( SotClipboardFormatId::STRING ) || - pDataHelper->HasFormat( SotClipboardFormatId::RTF ) || - pDataHelper->HasFormat( SotClipboardFormatId::HTML ) ) ); - - SfxBindings& rBindings = GetViewFrame()->GetBindings(); - rBindings.Invalidate( SID_PASTE ); - rBindings.Invalidate( SID_PASTE_SPECIAL ); - rBindings.Invalidate( SID_PASTE_UNFORMATTED ); - rBindings.Invalidate( SID_CLIPBOARD_FORMAT_ITEMS ); - } - return 0; + bPastePossible = pDataHelper->GetFormatCount() != 0 && + ( pDataHelper->HasFormat( SotClipboardFormatId::STRING ) || + pDataHelper->HasFormat( SotClipboardFormatId::RTF ) || + pDataHelper->HasFormat( SotClipboardFormatId::HTML ) ); + + SfxBindings& rBindings = GetViewFrame()->GetBindings(); + rBindings.Invalidate( SID_PASTE ); + rBindings.Invalidate( SID_PASTE_SPECIAL ); + rBindings.Invalidate( SID_PASTE_UNFORMATTED ); + rBindings.Invalidate( SID_CLIPBOARD_FORMAT_ITEMS ); } /** |