transobj.cxx (474a1d93) transobj.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

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

234 return pObj;
235}
236
237void ScTransferObj::AddSupportedFormats()
238{
239 AddFormat( SOT_FORMATSTR_ID_EMBED_SOURCE );
240 AddFormat( SOT_FORMATSTR_ID_OBJECTDESCRIPTOR );
241 AddFormat( 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

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

234 return pObj;
235}
236
237void ScTransferObj::AddSupportedFormats()
238{
239 AddFormat( SOT_FORMATSTR_ID_EMBED_SOURCE );
240 AddFormat( SOT_FORMATSTR_ID_OBJECTDESCRIPTOR );
241 AddFormat( SOT_FORMAT_GDIMETAFILE );
242 AddFormat( SOT_FORMATSTR_ID_PNG );
242 AddFormat( SOT_FORMAT_BITMAP );
243
244 // ScImportExport formats
245 AddFormat( SOT_FORMATSTR_ID_HTML );
246 AddFormat( SOT_FORMATSTR_ID_SYLK );
247 AddFormat( SOT_FORMATSTR_ID_LINK );
248 AddFormat( SOT_FORMATSTR_ID_DIF );
249 AddFormat( SOT_FORMAT_STRING );

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

325 // SetObject converts a stream into a Int8-Sequence
326 bOK = SetObject( &aObj, SCTRANS_TYPE_IMPEX, rFlavor );
327 }
328 else
329 {
330 DBG_ERROR("unknown DataType");
331 }
332 }
243 AddFormat( SOT_FORMAT_BITMAP );
244
245 // ScImportExport formats
246 AddFormat( SOT_FORMATSTR_ID_HTML );
247 AddFormat( SOT_FORMATSTR_ID_SYLK );
248 AddFormat( SOT_FORMATSTR_ID_LINK );
249 AddFormat( SOT_FORMATSTR_ID_DIF );
250 AddFormat( SOT_FORMAT_STRING );

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

326 // SetObject converts a stream into a Int8-Sequence
327 bOK = SetObject( &aObj, SCTRANS_TYPE_IMPEX, rFlavor );
328 }
329 else
330 {
331 DBG_ERROR("unknown DataType");
332 }
333 }
333 else if ( nFormat == SOT_FORMAT_BITMAP )
334 else if ( nFormat == SOT_FORMAT_BITMAP || nFormat == SOT_FORMATSTR_ID_PNG )
334 {
335 Rectangle aMMRect = pDoc->GetMMRect( aBlock.aStart.Col(), aBlock.aStart.Row(),
336 aBlock.aEnd.Col(), aBlock.aEnd.Row(),
337 aBlock.aStart.Tab() );
338 VirtualDevice aVirtDev;
339 aVirtDev.SetOutputSizePixel( aVirtDev.LogicToPixel( aMMRect.GetSize(), MAP_100TH_MM ) );
340
341 PaintToDev( &aVirtDev, pDoc, 1.0, aBlock, sal_False );

--- 535 unchanged lines hidden ---
335 {
336 Rectangle aMMRect = pDoc->GetMMRect( aBlock.aStart.Col(), aBlock.aStart.Row(),
337 aBlock.aEnd.Col(), aBlock.aEnd.Row(),
338 aBlock.aStart.Tab() );
339 VirtualDevice aVirtDev;
340 aVirtDev.SetOutputSizePixel( aVirtDev.LogicToPixel( aMMRect.GetSize(), MAP_100TH_MM ) );
341
342 PaintToDev( &aVirtDev, pDoc, 1.0, aBlock, sal_False );

--- 535 unchanged lines hidden ---