gridwin.cxx (3ea0c3d5) gridwin.cxx (a206ee71)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 3608 unchanged lines hidden (view full) ---

3617
3618 ScDocument* pThisDoc = pViewData->GetDocument();
3619 SdrObject* pHitObj = pThisDoc->GetObjectAtPoint(
3620 pViewData->GetTabNo(), PixelToLogic(rEvt.maPosPixel) );
3621 if ( pHitObj && nMyAction == DND_ACTION_LINK ) // && !rData.pDrawTransfer )
3622 {
3623 if ( IsDropFormatSupported(SOT_FORMATSTR_ID_SVXB)
3624 || IsDropFormatSupported(SOT_FORMAT_GDIMETAFILE)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 3608 unchanged lines hidden (view full) ---

3617
3618 ScDocument* pThisDoc = pViewData->GetDocument();
3619 SdrObject* pHitObj = pThisDoc->GetObjectAtPoint(
3620 pViewData->GetTabNo(), PixelToLogic(rEvt.maPosPixel) );
3621 if ( pHitObj && nMyAction == DND_ACTION_LINK ) // && !rData.pDrawTransfer )
3622 {
3623 if ( IsDropFormatSupported(SOT_FORMATSTR_ID_SVXB)
3624 || IsDropFormatSupported(SOT_FORMAT_GDIMETAFILE)
3625 || IsDropFormatSupported(SOT_FORMATSTR_ID_PNG)
3625 || IsDropFormatSupported(SOT_FORMAT_BITMAP) )
3626 {
3627 // graphic dragged onto drawing object
3628 DrawMarkDropObj( pHitObj );
3629 nRet = nMyAction;
3630 }
3631 }
3632 if (!nRet)

--- 18 unchanged lines hidden (view full) ---

3651 IsDropFormatSupported( SOT_FORMATSTR_ID_LINK ) ||
3652 IsDropFormatSupported( SOT_FORMATSTR_ID_HTML ) ||
3653 IsDropFormatSupported( SOT_FORMATSTR_ID_HTML_SIMPLE ) ||
3654 IsDropFormatSupported( SOT_FORMATSTR_ID_DIF ) ||
3655 IsDropFormatSupported( SOT_FORMATSTR_ID_DRAWING ) ||
3656 IsDropFormatSupported( SOT_FORMATSTR_ID_SVXB ) ||
3657 IsDropFormatSupported( SOT_FORMAT_RTF ) ||
3658 IsDropFormatSupported( SOT_FORMAT_GDIMETAFILE ) ||
3626 || IsDropFormatSupported(SOT_FORMAT_BITMAP) )
3627 {
3628 // graphic dragged onto drawing object
3629 DrawMarkDropObj( pHitObj );
3630 nRet = nMyAction;
3631 }
3632 }
3633 if (!nRet)

--- 18 unchanged lines hidden (view full) ---

3652 IsDropFormatSupported( SOT_FORMATSTR_ID_LINK ) ||
3653 IsDropFormatSupported( SOT_FORMATSTR_ID_HTML ) ||
3654 IsDropFormatSupported( SOT_FORMATSTR_ID_HTML_SIMPLE ) ||
3655 IsDropFormatSupported( SOT_FORMATSTR_ID_DIF ) ||
3656 IsDropFormatSupported( SOT_FORMATSTR_ID_DRAWING ) ||
3657 IsDropFormatSupported( SOT_FORMATSTR_ID_SVXB ) ||
3658 IsDropFormatSupported( SOT_FORMAT_RTF ) ||
3659 IsDropFormatSupported( SOT_FORMAT_GDIMETAFILE ) ||
3660 IsDropFormatSupported( SOT_FORMATSTR_ID_PNG ) ||
3659 IsDropFormatSupported( SOT_FORMAT_BITMAP ) ||
3660 IsDropFormatSupported( SOT_FORMATSTR_ID_SBA_DATAEXCHANGE ) ||
3661 IsDropFormatSupported( SOT_FORMATSTR_ID_SBA_FIELDDATAEXCHANGE ) ||
3662 ( !bMove && (
3663 IsDropFormatSupported( SOT_FORMAT_FILE_LIST ) ||
3664 IsDropFormatSupported( SOT_FORMAT_FILE ) ||
3665 IsDropFormatSupported( SOT_FORMATSTR_ID_SOLK ) ||
3666 IsDropFormatSupported( SOT_FORMATSTR_ID_UNIFORMRESOURCELOCATOR ) ||

--- 124 unchanged lines hidden (view full) ---

3791 else if ( aDataHelper.HasFormat( SOT_FORMAT_FILE_LIST ) )
3792 nFormatId = SOT_FORMAT_FILE_LIST;
3793 else if ( aDataHelper.HasFormat( SOT_FORMAT_FILE ) ) // #i62773# FILE_LIST/FILE before STRING (Unix file managers)
3794 nFormatId = SOT_FORMAT_FILE;
3795 else if ( aDataHelper.HasFormat( SOT_FORMAT_STRING ) )
3796 nFormatId = SOT_FORMAT_STRING;
3797 else if ( aDataHelper.HasFormat( SOT_FORMAT_GDIMETAFILE ) )
3798 nFormatId = SOT_FORMAT_GDIMETAFILE;
3661 IsDropFormatSupported( SOT_FORMAT_BITMAP ) ||
3662 IsDropFormatSupported( SOT_FORMATSTR_ID_SBA_DATAEXCHANGE ) ||
3663 IsDropFormatSupported( SOT_FORMATSTR_ID_SBA_FIELDDATAEXCHANGE ) ||
3664 ( !bMove && (
3665 IsDropFormatSupported( SOT_FORMAT_FILE_LIST ) ||
3666 IsDropFormatSupported( SOT_FORMAT_FILE ) ||
3667 IsDropFormatSupported( SOT_FORMATSTR_ID_SOLK ) ||
3668 IsDropFormatSupported( SOT_FORMATSTR_ID_UNIFORMRESOURCELOCATOR ) ||

--- 124 unchanged lines hidden (view full) ---

3793 else if ( aDataHelper.HasFormat( SOT_FORMAT_FILE_LIST ) )
3794 nFormatId = SOT_FORMAT_FILE_LIST;
3795 else if ( aDataHelper.HasFormat( SOT_FORMAT_FILE ) ) // #i62773# FILE_LIST/FILE before STRING (Unix file managers)
3796 nFormatId = SOT_FORMAT_FILE;
3797 else if ( aDataHelper.HasFormat( SOT_FORMAT_STRING ) )
3798 nFormatId = SOT_FORMAT_STRING;
3799 else if ( aDataHelper.HasFormat( SOT_FORMAT_GDIMETAFILE ) )
3800 nFormatId = SOT_FORMAT_GDIMETAFILE;
3801 else if ( aDataHelper.HasFormat( SOT_FORMATSTR_ID_PNG ) )
3802 nFormatId = SOT_FORMATSTR_ID_PNG;
3799 else if ( aDataHelper.HasFormat( SOT_FORMAT_BITMAP ) )
3800 nFormatId = SOT_FORMAT_BITMAP;
3801
3802 return nFormatId;
3803}
3804
3805sal_uLong lcl_GetDropLinkId( const uno::Reference<datatransfer::XTransferable>& xTransfer )
3806{

--- 1986 unchanged lines hidden ---
3803 else if ( aDataHelper.HasFormat( SOT_FORMAT_BITMAP ) )
3804 nFormatId = SOT_FORMAT_BITMAP;
3805
3806 return nFormatId;
3807}
3808
3809sal_uLong lcl_GetDropLinkId( const uno::Reference<datatransfer::XTransferable>& xTransfer )
3810{

--- 1986 unchanged lines hidden ---