summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/excdoc.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-08-05 22:51:01 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-09-03 14:15:56 -0500
commitd3483180e684ab8272b30676a395a53c9c7c6ad2 (patch)
tree6a58df0f92b3c11318c862ab0e5c82b935c0a86e /sc/source/filter/excel/excdoc.cxx
parentf8fdcfe28859fee61c87e0a6a06f5d8eab82eed4 (diff)
write OOXML externalReferences, externalLinks, fdo#45286
This for the first time writes external references (hopefully) correctly and adds the necessary relationship streams and the externalLink streams with sheetData. At least Excel 2013 loaded the result without complaining, so do we. (cherry picked from commit 8c23a767d926d8d08213f5e2f8e81775c653cbd7) Conflicts: sc/source/filter/excel/xelink.cxx do not write empty externalReferences element, fdo#45286 follow-up OOXML validation spewed - (xl/workbook.xml:2 col:700) cvc-complex-type.2.4.b: The content of element ┬┤externalReferences┬┤ is not complete. One of ┬┤{"http://schemas.openxmlformats.org/spreadsheetml/2006/main":externalReference}┬┤ is expected. (cherry picked from commit 8c51532289db36337c4984baec1bf5a7ca9e40af) really do not write empty externalReferences element, fdo#45286 follow-up Xti records exist also for internal sheet references in BIFF. It is not enough to check for their presence, at least one EXC_SBTYPE_EXTERN must be present as SUPBOOK. (cherry picked from commit e04a4d2d2c18134556bb4e001d497ca7d66c6828) Change-Id: I3d615490a60c5420ae13c0bfc6297642d86a07b9 Reviewed-on: https://gerrit.libreoffice.org/10872 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source/filter/excel/excdoc.cxx')
-rw-r--r--sc/source/filter/excel/excdoc.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/filter/excel/excdoc.cxx b/sc/source/filter/excel/excdoc.cxx
index 40ed956b624e..d5bc941e7154 100644
--- a/sc/source/filter/excel/excdoc.cxx
+++ b/sc/source/filter/excel/excdoc.cxx
@@ -377,6 +377,7 @@ void ExcTable::FillAsHeader( ExcBoundsheetList& rBoundsheetList )
// COUNTRY - in BIFF8 in workbook globals
Add( new XclExpCountry( GetRoot() ) );
+
// link table: SUPBOOK, XCT, CRN, EXTERNNAME, EXTERNSHEET, NAME
aRecList.AppendRecord( CreateRecord( EXC_ID_EXTERNSHEET ) );
aRecList.AppendRecord( CreateRecord( EXC_ID_NAME ) );