ooo-build r14175 - in trunk: . patches/dev300



Author: thorstenb
Date: Wed Oct  1 15:00:16 2008
New Revision: 14175
URL: http://svn.gnome.org/viewvc/ooo-build?rev=14175&view=rev

Log:
    * patches/dev300/apply:
    * patches/dev300/svx-debug-sdrolestreams.diff: code snippet
    exporting embedded OLE streams to some /tmp/ location in Escher
    import (disabled)



Added:
   trunk/patches/dev300/svx-debug-sdrolestreams.diff
Modified:
   trunk/ChangeLog
   trunk/patches/dev300/apply

Modified: trunk/patches/dev300/apply
==============================================================================
--- trunk/patches/dev300/apply	(original)
+++ trunk/patches/dev300/apply	Wed Oct  1 15:00:16 2008
@@ -2681,6 +2681,8 @@
 instset-prefer-langpacks.diff, thorsten
 # call unopkg such that java does not require interactive session
 solenv-installer-unopkg-call.diff, thorsten
+# (disabled) debug code extracting SdrOLE streams to some tmp location
+svx-debug-sdrolestreams.diff, thorsten
 
 [ ImpressFontSize ]
 [ Fixes <= dev300-m30 <= ooo300-m3 ]

Added: trunk/patches/dev300/svx-debug-sdrolestreams.diff
==============================================================================
--- (empty file)
+++ trunk/patches/dev300/svx-debug-sdrolestreams.diff	Wed Oct  1 15:00:16 2008
@@ -0,0 +1,21 @@
+--- svx/source/msfilter/msdffimp.cxx	1 Jul 2008 23:17:50 -0000	1.156
++++ svx/source/msfilter/msdffimp.cxx	1 Oct 2008 14:56:28 -0000
+@@ -7490,6 +7490,18 @@ com::sun::star::uno::Reference < com::su
+                 pFilter = aMatch.GetFilter4EA( aType );
+         }
+ 
++//#define DBG_EXTRACTOLESTREAMS
++#ifdef DBG_EXTRACTOLESTREAMS
++        static sal_Int32 nCount(0);
++        String aTmpName(String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("/tmp/embedded_stream_")));
++        aTmpName += String::CreateFromInt32(nCount++);
++        aTmpName += String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM(".bin"));
++        SvFileStream aTmpStream(aTmpName,STREAM_READ|STREAM_WRITE|STREAM_TRUNC);
++        pStream->Seek(0);
++        *pStream >> aTmpStream;
++        aTmpStream.Close();
++#endif
++
+         if ( pName || pFilter )
+         {
+             //Reuse current ole name



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]