transfer2.cxx (5900e8ec) transfer2.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

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

453 case SOT_FORMATSTR_ID_FILECONTENT:
454 case SOT_FORMATSTR_ID_FILEGRPDESCRIPTOR:
455 case SOT_FORMATSTR_ID_UNIFORMRESOURCELOCATOR:
456 if( pImpl->pBookmk )
457 bFnd = SetINetBookmark( *pImpl->pBookmk, rFlavor );
458 break;
459
460 case SOT_FORMATSTR_ID_SVXB:
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

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

453 case SOT_FORMATSTR_ID_FILECONTENT:
454 case SOT_FORMATSTR_ID_FILEGRPDESCRIPTOR:
455 case SOT_FORMATSTR_ID_UNIFORMRESOURCELOCATOR:
456 if( pImpl->pBookmk )
457 bFnd = SetINetBookmark( *pImpl->pBookmk, rFlavor );
458 break;
459
460 case SOT_FORMATSTR_ID_SVXB:
461 case SOT_FORMATSTR_ID_PNG:
461 case SOT_FORMAT_BITMAP:
462 case SOT_FORMAT_GDIMETAFILE:
463 if( pImpl->pGrf )
464 bFnd = SetGraphic( *pImpl->pGrf, rFlavor );
465 break;
466 }
467
468 return bFnd;

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

549 GraphicType nType = rGrf.GetType();
550 if( GRAPHIC_NONE != nType )
551 {
552 if( !pImpl->pGrf )
553 pImpl->pGrf = new Graphic( rGrf );
554 else
555 *pImpl->pGrf = rGrf;
556
462 case SOT_FORMAT_BITMAP:
463 case SOT_FORMAT_GDIMETAFILE:
464 if( pImpl->pGrf )
465 bFnd = SetGraphic( *pImpl->pGrf, rFlavor );
466 break;
467 }
468
469 return bFnd;

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

550 GraphicType nType = rGrf.GetType();
551 if( GRAPHIC_NONE != nType )
552 {
553 if( !pImpl->pGrf )
554 pImpl->pGrf = new Graphic( rGrf );
555 else
556 *pImpl->pGrf = rGrf;
557
557 AddFormat( SOT_FORMATSTR_ID_SVXB );
558 if( GRAPHIC_BITMAP == nType )
559 AddFormat( SOT_FORMAT_BITMAP );
560 else if( GRAPHIC_GDIMETAFILE == nType )
561 AddFormat( SOT_FORMAT_GDIMETAFILE );
562 }
558 AddFormat( SOT_FORMATSTR_ID_SVXB );
559
560 if( GRAPHIC_BITMAP == nType )
561 {
562 AddFormat( SOT_FORMATSTR_ID_PNG );
563 AddFormat( SOT_FORMAT_BITMAP );
564 }
565 else if( GRAPHIC_GDIMETAFILE == nType )
566 {
567 AddFormat( SOT_FORMAT_GDIMETAFILE );
568 }
569 }
563}
564
565// -----------------------------------------------------------------------------
566
567void TransferDataContainer::CopyString( sal_uInt16 nFmt, const String& rStr )
568{
569 if( rStr.Len() )
570 {

--- 54 unchanged lines hidden ---
570}
571
572// -----------------------------------------------------------------------------
573
574void TransferDataContainer::CopyString( sal_uInt16 nFmt, const String& rStr )
575{
576 if( rStr.Len() )
577 {

--- 54 unchanged lines hidden ---