svx/source/gallery2/galbrws2.cxx |   24 ------------------------
 1 file changed, 24 deletions(-)

New commits:
commit 6efa9c8e87bbc49ff558cf5e9017628cc4312f6e
Author: Noel Grandin <n...@peralex.com>
Date:   Mon Jun 20 12:48:00 2016 +0200

    GALLERY_USE_CLIPBOARD unused since 2001
    
    Change-Id: Idd21f60187e27fc100021ba07374357f502150e7
    Reviewed-on: https://gerrit.libreoffice.org/26508
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Noel Grandin <noelgran...@gmail.com>

diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx
index d942ba6..63166c0 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(
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to