diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-11-30 18:19:40 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-11-30 18:45:18 +0100 |
commit | e361f6b81b09919c77995a85250c70b099389915 (patch) | |
tree | 03bb373ead257ca9c851795a351a545c107766a0 | |
parent | 7415fc31f5cdf7ff3f78dd304b9576b931a82aeb (diff) |
more OOXML export validation fixes, fdo#71971
Change-Id: Ic322d58817986887bbcd666ac3abc416609adf5c
-rw-r--r-- | sc/source/filter/excel/excdoc.cxx | 14 |
1 files changed, 9 insertions, 5 deletions
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 ) ) ); |