XTDataObject.cxx (45fd3b9a) XTDataObject.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

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

302 Sequence< sal_Int8 > clipDataStream;
303 aAny >>= clipDataStream;
304
305 sal_uInt32 nRequiredMemSize = 0;
306 if ( m_DataFormatTranslator.isOemOrAnsiTextFormat( fetc.cfFormat ) )
307 nRequiredMemSize = sizeof( sal_Int8 ) * clipDataStream.getLength( ) + 1;
308
309 // prepare data for transmision
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

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

302 Sequence< sal_Int8 > clipDataStream;
303 aAny >>= clipDataStream;
304
305 sal_uInt32 nRequiredMemSize = 0;
306 if ( m_DataFormatTranslator.isOemOrAnsiTextFormat( fetc.cfFormat ) )
307 nRequiredMemSize = sizeof( sal_Int8 ) * clipDataStream.getLength( ) + 1;
308
309 // prepare data for transmision
310 // #124085# DIBV5 should not happen for now, but keep as hint here
310 if ( CF_DIBV5 == fetc.cfFormat || CF_DIB == fetc.cfFormat )
311 {
312#ifdef DBG_UTIL
313 if(CF_DIBV5 == fetc.cfFormat)
314 {
315 OSL_ENSURE(clipDataStream.getLength( ) > (sizeof(BITMAPFILEHEADER) + sizeof(BITMAPV5HEADER)), "Wrong size on CF_DIBV5 data (!)");
316 }
317 else // CF_DIB == fetc.cfFormat

--- 541 unchanged lines hidden ---
311 if ( CF_DIBV5 == fetc.cfFormat || CF_DIB == fetc.cfFormat )
312 {
313#ifdef DBG_UTIL
314 if(CF_DIBV5 == fetc.cfFormat)
315 {
316 OSL_ENSURE(clipDataStream.getLength( ) > (sizeof(BITMAPFILEHEADER) + sizeof(BITMAPV5HEADER)), "Wrong size on CF_DIBV5 data (!)");
317 }
318 else // CF_DIB == fetc.cfFormat

--- 541 unchanged lines hidden ---