merge the formfield patch from ooo-build
[ooovba.git] / applied_patches / 0547-svx-debug-sdrolestreams.diff
blob05c82f698a30a341b1be8286faaa102db8c8f25d
1 --- svx/source/msfilter/msdffimp.cxx 1 Jul 2008 23:17:50 -0000 1.156
2 +++ svx/source/msfilter/msdffimp.cxx 1 Oct 2008 14:56:28 -0000
3 @@ -7490,6 +7490,18 @@ com::sun::star::uno::Reference < com::su
4 pFilter = aMatch.GetFilter4EA( aType );
7 +//#define DBG_EXTRACTOLESTREAMS
8 +#ifdef DBG_EXTRACTOLESTREAMS
9 + static sal_Int32 nCount(0);
10 + String aTmpName(String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("/tmp/embedded_stream_")));
11 + aTmpName += String::CreateFromInt32(nCount++);
12 + aTmpName += String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM(".bin"));
13 + SvFileStream aTmpStream(aTmpName,STREAM_READ|STREAM_WRITE|STREAM_TRUNC);
14 + pStream->Seek(0);
15 + *pStream >> aTmpStream;
16 + aTmpStream.Close();
17 +#endif
19 if ( pName || pFilter )
21 //Reuse current ole name