From e361f6b81b09919c77995a85250c70b099389915 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sat, 30 Nov 2013 18:19:40 +0100 Subject: more OOXML export validation fixes, fdo#71971 Change-Id: Ic322d58817986887bbcd666ac3abc416609adf5c --- sc/source/filter/excel/excdoc.cxx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'sc') diff --git a/sc/source/filter/excel/excdoc.cxx b/sc/source/filter/excel/excdoc.cxx index 574dcbb09bb7..a8bfbf77c5d3 100644 --- a/sc/source/filter/excel/excdoc.cxx +++ b/sc/source/filter/excel/excdoc.cxx @@ -561,6 +561,7 @@ void ExcTable::FillAsXmlTable( SCTAB nCodeNameIdx ) aRecList.AppendRecord( mxCellTable ); // label ranges + // missing SaveXML Add( new XclExpLabelranges( GetRoot() ) ); // DFF not needed in MSOOXML export @@ -572,15 +573,23 @@ void ExcTable::FillAsXmlTable( SCTAB nCodeNameIdx ) // Add( rR.pObjRecs ); // pivot tables + // not in the worksheet file aRecList.AppendRecord( GetPivotTableManager().CreatePivotTablesRecord( mnScTab ) ); // list of NOTE records, generated by the cell table + // not in the worksheet file if( mxNoteList != 0 && !mxNoteList->IsEmpty() ) aRecList.AppendNewRecord( new XclExpComments( mnScTab, *mxNoteList ) ); // web queries + // missing SaveXML implementation Add( new XclExpWebQueryBuffer( GetRoot() ) ); + ScDocument& rDoc = GetDoc(); + const ScTableProtection* pTabProtect = rDoc.GetTabProtection(mnScTab); + if (pTabProtect && pTabProtect->isProtected()) + Add( new XclExpSheetProtection(true, mnScTab) ); + lcl_AddScenariosAndFilters( aRecList, GetRoot(), mnScTab ); // MERGEDCELLS record, generated by the cell table @@ -589,11 +598,6 @@ void ExcTable::FillAsXmlTable( SCTAB nCodeNameIdx ) // conditional formats Add( new XclExpCondFormatBuffer( GetRoot(), xExtLst ) ); - ScDocument& rDoc = GetDoc(); - const ScTableProtection* pTabProtect = rDoc.GetTabProtection(mnScTab); - if (pTabProtect && pTabProtect->isProtected()) - Add( new XclExpSheetProtection(true, mnScTab) ); - if( HasVbaStorage() ) if( nCodeNameIdx < GetExtDocOptions().GetCodeNameCount() ) Add( new XclCodename( GetExtDocOptions().GetCodeName( nCodeNameIdx ) ) ); -- cgit