seltrans.cxx (b3f79822) seltrans.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

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

204 switch (eMode)
205 {
206 case SC_SELTRANS_CELL:
207 case SC_SELTRANS_CELLS:
208 // same formats as in ScTransferObj::AddSupportedFormats
209 AddFormat( SOT_FORMATSTR_ID_EMBED_SOURCE );
210 AddFormat( SOT_FORMATSTR_ID_OBJECTDESCRIPTOR );
211 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

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

204 switch (eMode)
205 {
206 case SC_SELTRANS_CELL:
207 case SC_SELTRANS_CELLS:
208 // same formats as in ScTransferObj::AddSupportedFormats
209 AddFormat( SOT_FORMATSTR_ID_EMBED_SOURCE );
210 AddFormat( SOT_FORMATSTR_ID_OBJECTDESCRIPTOR );
211 AddFormat( SOT_FORMAT_GDIMETAFILE );
212 AddFormat( SOT_FORMATSTR_ID_PNG );
212 AddFormat( SOT_FORMAT_BITMAP );
213 AddFormat( SOT_FORMATSTR_ID_HTML );
214 AddFormat( SOT_FORMATSTR_ID_SYLK );
215 AddFormat( SOT_FORMATSTR_ID_LINK );
216 AddFormat( SOT_FORMATSTR_ID_DIF );
217 AddFormat( SOT_FORMAT_STRING );
218 AddFormat( SOT_FORMAT_RTF );
219 if ( eMode == SC_SELTRANS_CELL )
220 AddFormat( SOT_FORMATSTR_ID_EDITENGINE );
221 break;
222
223 // different graphic formats as in ScDrawTransferObj::AddSupportedFormats:
224
225 case SC_SELTRANS_DRAW_BITMAP:
226 AddFormat( SOT_FORMATSTR_ID_OBJECTDESCRIPTOR );
227 AddFormat( SOT_FORMATSTR_ID_SVXB );
213 AddFormat( SOT_FORMAT_BITMAP );
214 AddFormat( SOT_FORMATSTR_ID_HTML );
215 AddFormat( SOT_FORMATSTR_ID_SYLK );
216 AddFormat( SOT_FORMATSTR_ID_LINK );
217 AddFormat( SOT_FORMATSTR_ID_DIF );
218 AddFormat( SOT_FORMAT_STRING );
219 AddFormat( SOT_FORMAT_RTF );
220 if ( eMode == SC_SELTRANS_CELL )
221 AddFormat( SOT_FORMATSTR_ID_EDITENGINE );
222 break;
223
224 // different graphic formats as in ScDrawTransferObj::AddSupportedFormats:
225
226 case SC_SELTRANS_DRAW_BITMAP:
227 AddFormat( SOT_FORMATSTR_ID_OBJECTDESCRIPTOR );
228 AddFormat( SOT_FORMATSTR_ID_SVXB );
229 AddFormat( SOT_FORMATSTR_ID_PNG );
228 AddFormat( SOT_FORMAT_BITMAP );
229 AddFormat( SOT_FORMAT_GDIMETAFILE );
230 break;
231
232 case SC_SELTRANS_DRAW_GRAPHIC:
233 AddFormat( SOT_FORMATSTR_ID_OBJECTDESCRIPTOR );
234 AddFormat( SOT_FORMATSTR_ID_SVXB );
235 AddFormat( SOT_FORMAT_GDIMETAFILE );
230 AddFormat( SOT_FORMAT_BITMAP );
231 AddFormat( SOT_FORMAT_GDIMETAFILE );
232 break;
233
234 case SC_SELTRANS_DRAW_GRAPHIC:
235 AddFormat( SOT_FORMATSTR_ID_OBJECTDESCRIPTOR );
236 AddFormat( SOT_FORMATSTR_ID_SVXB );
237 AddFormat( SOT_FORMAT_GDIMETAFILE );
238 AddFormat( SOT_FORMATSTR_ID_PNG );
236 AddFormat( SOT_FORMAT_BITMAP );
237 break;
238
239 case SC_SELTRANS_DRAW_BOOKMARK:
240 AddFormat( SOT_FORMATSTR_ID_OBJECTDESCRIPTOR );
241 AddFormat( SOT_FORMATSTR_ID_SOLK );
242 AddFormat( SOT_FORMAT_STRING );
243 AddFormat( SOT_FORMATSTR_ID_UNIFORMRESOURCELOCATOR );

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

251 AddFormat( SOT_FORMAT_GDIMETAFILE );
252 break;
253
254 case SC_SELTRANS_DRAW_OTHER:
255 // other drawing objects
256 AddFormat( SOT_FORMATSTR_ID_EMBED_SOURCE );
257 AddFormat( SOT_FORMATSTR_ID_OBJECTDESCRIPTOR );
258 AddFormat( SOT_FORMATSTR_ID_DRAWING );
239 AddFormat( SOT_FORMAT_BITMAP );
240 break;
241
242 case SC_SELTRANS_DRAW_BOOKMARK:
243 AddFormat( SOT_FORMATSTR_ID_OBJECTDESCRIPTOR );
244 AddFormat( SOT_FORMATSTR_ID_SOLK );
245 AddFormat( SOT_FORMAT_STRING );
246 AddFormat( SOT_FORMATSTR_ID_UNIFORMRESOURCELOCATOR );

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

254 AddFormat( SOT_FORMAT_GDIMETAFILE );
255 break;
256
257 case SC_SELTRANS_DRAW_OTHER:
258 // other drawing objects
259 AddFormat( SOT_FORMATSTR_ID_EMBED_SOURCE );
260 AddFormat( SOT_FORMATSTR_ID_OBJECTDESCRIPTOR );
261 AddFormat( SOT_FORMATSTR_ID_DRAWING );
262 AddFormat( SOT_FORMATSTR_ID_PNG );
259 AddFormat( SOT_FORMAT_BITMAP );
260 AddFormat( SOT_FORMAT_GDIMETAFILE );
261 break;
262
263 default:
264 {
265 // added to avoid warnings
266 }

--- 179 unchanged lines hidden ---
263 AddFormat( SOT_FORMAT_BITMAP );
264 AddFormat( SOT_FORMAT_GDIMETAFILE );
265 break;
266
267 default:
268 {
269 // added to avoid warnings
270 }

--- 179 unchanged lines hidden ---