cellsh.cxx (f120fe41) | cellsh.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 --- 363 unchanged lines hidden (view full) --- 372 Window* pWin = GetViewData()->GetActiveWin(); 373 sal_Bool bDraw = ( ScDrawTransferObj::GetOwnClipboard( pWin ) != NULL ); 374 375 TransferableDataHelper aDataHelper( TransferableDataHelper::CreateFromSystemClipboard( pWin ) ); 376 377 lcl_TestFormat( rFormats, aDataHelper, SOT_FORMATSTR_ID_DRAWING ); 378 lcl_TestFormat( rFormats, aDataHelper, SOT_FORMATSTR_ID_SVXB ); 379 lcl_TestFormat( rFormats, aDataHelper, 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 --- 363 unchanged lines hidden (view full) --- 372 Window* pWin = GetViewData()->GetActiveWin(); 373 sal_Bool bDraw = ( ScDrawTransferObj::GetOwnClipboard( pWin ) != NULL ); 374 375 TransferableDataHelper aDataHelper( TransferableDataHelper::CreateFromSystemClipboard( pWin ) ); 376 377 lcl_TestFormat( rFormats, aDataHelper, SOT_FORMATSTR_ID_DRAWING ); 378 lcl_TestFormat( rFormats, aDataHelper, SOT_FORMATSTR_ID_SVXB ); 379 lcl_TestFormat( rFormats, aDataHelper, SOT_FORMAT_GDIMETAFILE ); |
380 lcl_TestFormat( rFormats, aDataHelper, SOT_FORMATSTR_ID_PNG ); |
|
380 lcl_TestFormat( rFormats, aDataHelper, SOT_FORMAT_BITMAP ); 381 lcl_TestFormat( rFormats, aDataHelper, SOT_FORMATSTR_ID_EMBED_SOURCE ); 382 383 if ( !bDraw ) 384 { 385 lcl_TestFormat( rFormats, aDataHelper, SOT_FORMATSTR_ID_LINK ); 386 lcl_TestFormat( rFormats, aDataHelper, SOT_FORMAT_STRING ); 387 lcl_TestFormat( rFormats, aDataHelper, SOT_FORMATSTR_ID_DIF ); --- 12 unchanged lines hidden (view full) --- 400 401sal_Bool lcl_IsCellPastePossible( const TransferableDataHelper& rData ) 402{ 403 sal_Bool bPossible = sal_False; 404 if ( ScTransferObj::GetOwnClipboard( NULL ) || ScDrawTransferObj::GetOwnClipboard( NULL ) ) 405 bPossible = sal_True; 406 else 407 { | 381 lcl_TestFormat( rFormats, aDataHelper, SOT_FORMAT_BITMAP ); 382 lcl_TestFormat( rFormats, aDataHelper, SOT_FORMATSTR_ID_EMBED_SOURCE ); 383 384 if ( !bDraw ) 385 { 386 lcl_TestFormat( rFormats, aDataHelper, SOT_FORMATSTR_ID_LINK ); 387 lcl_TestFormat( rFormats, aDataHelper, SOT_FORMAT_STRING ); 388 lcl_TestFormat( rFormats, aDataHelper, SOT_FORMATSTR_ID_DIF ); --- 12 unchanged lines hidden (view full) --- 401 402sal_Bool lcl_IsCellPastePossible( const TransferableDataHelper& rData ) 403{ 404 sal_Bool bPossible = sal_False; 405 if ( ScTransferObj::GetOwnClipboard( NULL ) || ScDrawTransferObj::GetOwnClipboard( NULL ) ) 406 bPossible = sal_True; 407 else 408 { |
408 if ( rData.HasFormat( SOT_FORMAT_BITMAP ) || | 409 if ( rData.HasFormat( SOT_FORMATSTR_ID_PNG ) || 410 rData.HasFormat( SOT_FORMAT_BITMAP ) || |
409 rData.HasFormat( SOT_FORMAT_GDIMETAFILE ) || 410 rData.HasFormat( SOT_FORMATSTR_ID_SVXB ) || 411 rData.HasFormat( FORMAT_PRIVATE ) || 412 rData.HasFormat( SOT_FORMAT_RTF ) || 413 rData.HasFormat( SOT_FORMATSTR_ID_EMBED_SOURCE ) || 414 rData.HasFormat( SOT_FORMATSTR_ID_LINK_SOURCE ) || 415 rData.HasFormat( SOT_FORMATSTR_ID_EMBED_SOURCE_OLE ) || 416 rData.HasFormat( SOT_FORMATSTR_ID_LINK_SOURCE_OLE ) || --- 585 unchanged lines hidden --- | 411 rData.HasFormat( SOT_FORMAT_GDIMETAFILE ) || 412 rData.HasFormat( SOT_FORMATSTR_ID_SVXB ) || 413 rData.HasFormat( FORMAT_PRIVATE ) || 414 rData.HasFormat( SOT_FORMAT_RTF ) || 415 rData.HasFormat( SOT_FORMATSTR_ID_EMBED_SOURCE ) || 416 rData.HasFormat( SOT_FORMATSTR_ID_LINK_SOURCE ) || 417 rData.HasFormat( SOT_FORMATSTR_ID_EMBED_SOURCE_OLE ) || 418 rData.HasFormat( SOT_FORMATSTR_ID_LINK_SOURCE_OLE ) || --- 585 unchanged lines hidden --- |