viewfun5.cxx (45fd3b9a) | viewfun5.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 --- 441 unchanged lines hidden (view full) --- 450 451 pScDrawView->InsertObjectSafe(pObj, *pScDrawView->GetSdrPageView()); 452 453 GetViewData()->GetViewShell()->SetDrawShell( sal_True ); 454 bRet = sal_True; 455 } 456 } 457 } | 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 --- 441 unchanged lines hidden (view full) --- 450 451 pScDrawView->InsertObjectSafe(pObj, *pScDrawView->GetSdrPageView()); 452 453 GetViewData()->GetViewShell()->SetDrawShell( sal_True ); 454 bRet = sal_True; 455 } 456 } 457 } |
458 else if (nFormatId == SOT_FORMAT_BITMAP) | 458 else if (nFormatId == SOT_FORMAT_BITMAP || nFormatId == SOT_FORMATSTR_ID_PNG) |
459 { 460 BitmapEx aBmpEx; 461 if( aDataHelper.GetBitmapEx( FORMAT_BITMAP, aBmpEx ) ) 462 bRet = PasteBitmapEx( aPos, aBmpEx ); 463 } 464 else if (nFormatId == SOT_FORMAT_GDIMETAFILE) 465 { 466 GDIMetaFile aMtf; --- 274 unchanged lines hidden --- | 459 { 460 BitmapEx aBmpEx; 461 if( aDataHelper.GetBitmapEx( FORMAT_BITMAP, aBmpEx ) ) 462 bRet = PasteBitmapEx( aPos, aBmpEx ); 463 } 464 else if (nFormatId == SOT_FORMAT_GDIMETAFILE) 465 { 466 GDIMetaFile aMtf; --- 274 unchanged lines hidden --- |