[ooo-build-commit] patches/dev300

Jan Nieuwenhuizen janneke at kemper.freedesktop.org
Mon Jul 27 11:31:49 PDT 2009


 patches/dev300/apply                                     |    1 
 patches/dev300/oox-calc-export-export-pivot-content.diff |   50 +++++++++++++++
 2 files changed, 51 insertions(+)

New commits:
commit 5661117064b055f9fd07edd341f3909233d8b847
Author: Jan Nieuwenhuizen <janneke at gnu.org>
Date:   Mon Jul 27 20:22:45 2009 +0200

    OOXML: Disable pivot cache export.  Fixes content-bit of n#505917.
    
    This does not export a working pivot table, but it does export
    all [pivot table] data in a working .xlsx spreadsheet.
    
       * Modified     sc/source/filter/xlsx/xlsx-xepivot.cxx

diff --git a/patches/dev300/apply b/patches/dev300/apply
index 78489a9..1b39a43 100644
--- a/patches/dev300/apply
+++ b/patches/dev300/apply
@@ -3297,6 +3297,7 @@ oox-pptx-export-para-linespacing.diff, n#498737, rodo
 oox-pptx-export-fix-action-button-presets.diff, n#497570, rodo
 oox-drawingml-fix-shapes-map-crash.diff, rodo
 oox-pptx-export-animations-filter.diff, n#497570, rodo
+oox-calc-export-export-pivot-content.diff, n#505917, janneke
 
 [ CrossWin32Patches ]
 # Experimental patches to crosscompile OOo for Win32
diff --git a/patches/dev300/oox-calc-export-export-pivot-content.diff b/patches/dev300/oox-calc-export-export-pivot-content.diff
new file mode 100644
index 0000000..6e36ca6
--- /dev/null
+++ b/patches/dev300/oox-calc-export-export-pivot-content.diff
@@ -0,0 +1,50 @@
+From 2602c2c2ab3882a882ce8871d81973e5d5b524b4 Mon Sep 17 00:00:00 2001
+From: Jan Nieuwenhuizen <janneke at gnu.org>
+Date: Mon, 27 Jul 2009 11:27:36 +0200
+Subject: [PATCH] OOXML: Disable pivot cache export.  Fixes content-bit of n#505917.
+
+   * Modified     sc/source/filter/xlsx/xlsx-xepivot.cxx
+---
+ sc/source/filter/xlsx/xlsx-xepivot.cxx |    6 ++++++
+ 1 files changed, 6 insertions(+), 0 deletions(-)
+
+diff --git sc/source/filter/xlsx/xlsx-xepivot.cxx sc/source/filter/xlsx/xlsx-xepivot.cxx
+index 57409c1..217e01d 100644
+--- sc/source/filter/xlsx/xlsx-xepivot.cxx
++++ sc/source/filter/xlsx/xlsx-xepivot.cxx
+@@ -740,6 +740,8 @@ void XclExpPivotCache::Save( XclExpStream& rStrm )
+ void XclExpPivotCache::SaveXml( XclExpXmlStream& rStrm )
+ {
+     DBG_ASSERT( mbValid, "XclExpPivotCache::Save - invalid pivot cache" );
++#ifdef XLSX_PIVOT_CACHE /* <pivotCache> without xl/pivotCaches/ cacheStream
++                           results in a broken .xlsx */
+     sax_fastparser::FSHelperPtr& rWorkbook = rStrm.GetCurrentStream();
+     OUString sId = OUStringBuffer()
+         .appendAscii("rId")
+@@ -758,6 +760,7 @@ void XclExpPivotCache::SaveXml( XclExpXmlStream& rStrm )
+     // create the pivot cache storage stream
+     // OOXTODO: WriteCacheStream();
+     rWorkbook->endElement( XML_pivotCache );
++#endif /* XLSX_PIVOT_CACHE */
+ }
+ 
+ // private --------------------------------------------------------------------
+@@ -1844,12 +1847,15 @@ void XclExpPivotTableManager::WritePivotCaches( XclExpStream& rStrm )
+ 
+ void XclExpPivotTableManager::WritePivotCachesXml( XclExpXmlStream& rStrm )
+ {
++#ifdef XLSX_PIVOT_CACHE /* <pivotCache> without xl/pivotCaches/ cacheStream
++                           results in a broken .xlsx */
+     if( maPCacheList.IsEmpty() )
+         return;
+     sax_fastparser::FSHelperPtr& rWorkbook = rStrm.GetCurrentStream();
+     rWorkbook->startElement( XML_pivotCaches, FSEND );
+     maPCacheList.SaveXml( rStrm );
+     rWorkbook->endElement( XML_pivotCaches );
++#endif /* XLSX_PIVOT_CACHE */
+ }
+ 
+ void XclExpPivotTableManager::WritePivotTables( XclExpStream& rStrm, SCTAB nScTab )
+-- 
+1.6.0.rc1.49.g98a8
+


More information about the ooo-build-commit mailing list