diff options
author | Noel Grandin <noel@peralex.com> | 2016-06-20 12:48:00 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-21 07:54:59 +0000 |
commit | 6efa9c8e87bbc49ff558cf5e9017628cc4312f6e (patch) | |
tree | 310a15f243b7458c675ed4dc3c2d546a786f61d6 /svx/source | |
parent | 5f2b7007fd501025afa4a3ec62c4435bc8eaa18f (diff) |
GALLERY_USE_CLIPBOARD unused since 2001
Change-Id: Idd21f60187e27fc100021ba07374357f502150e7
Reviewed-on: https://gerrit.libreoffice.org/26508
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/gallery2/galbrws2.cxx | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx index d942ba69e7bc..63166c0debfe 100644 --- a/svx/source/gallery2/galbrws2.cxx +++ b/svx/source/gallery2/galbrws2.cxx @@ -267,32 +267,8 @@ void GalleryThemePopup::ExecutePopup( vcl::Window *pWindow, const ::Point &aPos maPopupMenu.EnableItem( MN_PASTECLIPBOARD ); } -#ifdef GALLERY_USE_CLIPBOARD - if( maPopupMenu.IsItemEnabled( MN_PASTECLIPBOARD ) ) - { - TransferableDataHelper aDataHelper( TransferableDataHelper::CreateFromSystemClipboard( this ) ); - sal_Bool bEnable = sal_False; - - if( aDataHelper.GetFormatCount() ) - { - if( aDataHelper.HasFormat( SotClipboardFormatId::DRAWING ) || - aDataHelper.HasFormat( SotClipboardFormatId::FILE_LIST ) || - aDataHelper.HasFormat( SotClipboardFormatId::SIMPLE_FILE ) || - aDataHelper.HasFormat( SotClipboardFormatId::SVXB ) || - aDataHelper.HasFormat( SotClipboardFormatId::GDIMETAFILE ) || - aDataHelper.HasFormat( SotClipboardFormatId::BITMAP ) ) - { - bEnable = sal_True; - } - } - - if( !bEnable ) - maPopupMenu.EnableItem( MN_PASTECLIPBOARD, sal_False ); - } -#else maPopupMenu.EnableItem( MN_COPYCLIPBOARD, false ); maPopupMenu.EnableItem( MN_PASTECLIPBOARD, false ); -#endif // update status css::uno::Reference< css::frame::XDispatchProvider> xDispatchProvider( |