svdxcgv.cxx (ddde725d) | svdxcgv.cxx (bb18ee55) |
---|---|
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 --- 515 unchanged lines hidden (view full) --- 524 if (bMark) 525 { // Obj in der ersten gefundenen PageView markieren 526 MarkObj(pObj,pMarkPV); 527 } 528} 529 530//////////////////////////////////////////////////////////////////////////////////////////////////// 531 | 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 --- 515 unchanged lines hidden (view full) --- 524 if (bMark) 525 { // Obj in der ersten gefundenen PageView markieren 526 MarkObj(pObj,pMarkPV); 527 } 528} 529 530//////////////////////////////////////////////////////////////////////////////////////////////////// 531 |
532BitmapEx SdrExchangeView::GetMarkedObjBitmap( bool bNoVDevIfOneBmpMarked ) const | 532BitmapEx SdrExchangeView::GetMarkedObjBitmapEx(bool bNoVDevIfOneBmpMarked) const |
533{ 534 BitmapEx aBmp; 535 536 if( AreObjectsMarked() ) 537 { 538 if(1 == GetMarkedObjectCount()) 539 { 540 if(bNoVDevIfOneBmpMarked) --- 14 unchanged lines hidden (view full) --- 555 { 556 aBmp = pSdrGrafObj->GetGraphic().getSvgData()->getReplacement(); 557 } 558 } 559 } 560 561 if( !aBmp ) 562 { | 533{ 534 BitmapEx aBmp; 535 536 if( AreObjectsMarked() ) 537 { 538 if(1 == GetMarkedObjectCount()) 539 { 540 if(bNoVDevIfOneBmpMarked) --- 14 unchanged lines hidden (view full) --- 555 { 556 aBmp = pSdrGrafObj->GetGraphic().getSvgData()->getReplacement(); 557 } 558 } 559 } 560 561 if( !aBmp ) 562 { |
563 const Graphic aGraphic( GetMarkedObjMetaFile( bNoVDevIfOneBmpMarked ) ); | 563 const Graphic aGraphic(GetMarkedObjMetaFile(bNoVDevIfOneBmpMarked)); |
564 565 // #i102089# support user's settings of AA and LineSnap when the MetaFile gets 566 // rasterconverted to a bitmap 567 const SvtOptionsDrawinglayer aDrawinglayerOpt; 568 const GraphicConversionParameters aParameters( 569 Size(), 570 false, 571 aDrawinglayerOpt.IsAntiAliasing(), 572 aDrawinglayerOpt.IsSnapHorVerLinesToDiscrete()); 573 574 aBmp = aGraphic.GetBitmapEx(aParameters); 575 } 576 } 577 578 return aBmp; 579} 580 581// ----------------------------------------------------------------------------- 582 | 564 565 // #i102089# support user's settings of AA and LineSnap when the MetaFile gets 566 // rasterconverted to a bitmap 567 const SvtOptionsDrawinglayer aDrawinglayerOpt; 568 const GraphicConversionParameters aParameters( 569 Size(), 570 false, 571 aDrawinglayerOpt.IsAntiAliasing(), 572 aDrawinglayerOpt.IsSnapHorVerLinesToDiscrete()); 573 574 aBmp = aGraphic.GetBitmapEx(aParameters); 575 } 576 } 577 578 return aBmp; 579} 580 581// ----------------------------------------------------------------------------- 582 |
583GDIMetaFile SdrExchangeView::GetMarkedObjMetaFile( sal_Bool bNoVDevIfOneMtfMarked ) const | 583GDIMetaFile SdrExchangeView::GetMarkedObjMetaFile(bool bNoVDevIfOneMtfMarked) const |
584{ 585 GDIMetaFile aMtf; 586 587 if( AreObjectsMarked() ) 588 { 589 Rectangle aBound( GetMarkedObjBoundRect() ); 590 Size aBoundSize( aBound.GetWidth(), aBound.GetHeight() ); 591 MapMode aMap( pMod->GetScaleUnit(), Point(), pMod->GetScaleFraction(), pMod->GetScaleFraction() ); --- 62 unchanged lines hidden (view full) --- 654{ 655 Graphic aRet; 656 657 if( AreObjectsMarked() ) 658 { 659 if( ( 1 == GetMarkedObjectCount() ) && GetSdrMarkByIndex( 0 ) ) 660 aRet = SdrExchangeView::GetObjGraphic( pMod, GetMarkedObjectByIndex( 0 ) ); 661 else | 584{ 585 GDIMetaFile aMtf; 586 587 if( AreObjectsMarked() ) 588 { 589 Rectangle aBound( GetMarkedObjBoundRect() ); 590 Size aBoundSize( aBound.GetWidth(), aBound.GetHeight() ); 591 MapMode aMap( pMod->GetScaleUnit(), Point(), pMod->GetScaleFraction(), pMod->GetScaleFraction() ); --- 62 unchanged lines hidden (view full) --- 654{ 655 Graphic aRet; 656 657 if( AreObjectsMarked() ) 658 { 659 if( ( 1 == GetMarkedObjectCount() ) && GetSdrMarkByIndex( 0 ) ) 660 aRet = SdrExchangeView::GetObjGraphic( pMod, GetMarkedObjectByIndex( 0 ) ); 661 else |
662 aRet = GetMarkedObjMetaFile( sal_False ); | 662 aRet = GetMarkedObjMetaFile(false); |
663 } 664 665 return aRet; 666} 667 668// ----------------------------------------------------------------------------- 669 670Graphic SdrExchangeView::GetObjGraphic( const SdrModel* pModel, const SdrObject* pObj ) --- 242 unchanged lines hidden --- | 663 } 664 665 return aRet; 666} 667 668// ----------------------------------------------------------------------------- 669 670Graphic SdrExchangeView::GetObjGraphic( const SdrModel* pModel, const SdrObject* pObj ) --- 242 unchanged lines hidden --- |