From 1979ed4e77886f0abd57553ae13a89c501b20b6a Mon Sep 17 00:00:00 2001 From: bigchimp Date: Tue, 8 Jul 2014 22:02:13 +0000 Subject: [PATCH] fpspreadsheet: document reason for r3299 git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3301 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/fpspreadsheet/xlsxooxml.pas | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/components/fpspreadsheet/xlsxooxml.pas b/components/fpspreadsheet/xlsxooxml.pas index 2d00bc186..3b7b3840e 100755 --- a/components/fpspreadsheet/xlsxooxml.pas +++ b/components/fpspreadsheet/xlsxooxml.pas @@ -6,14 +6,14 @@ Writes an OOXML (Office Open XML) document An OOXML document is a compressed ZIP file with the following files inside: [Content_Types].xml - -_rels\.rels - -xl\_rels\workbook.xml.rels - -xl\workbook.xml - Global workbook data and list of worksheets -xl\styles.xml - -xl\sharedStrings.xml - -xl\worksheets\sheet1.xml - Contents of each worksheet +_rels/.rels - +xl/_rels\workbook.xml.rels - +xl/workbook.xml - Global workbook data and list of worksheets +xl/styles.xml - +xl/sharedStrings.xml - +xl/worksheets\sheet1.xml - Contents of each worksheet ... -xl\worksheets\sheetN.xml +xl/worksheets\sheetN.xml Specifications obtained from: @@ -106,6 +106,10 @@ const XML_HEADER = ''; { OOXML Directory structure constants } + // Note: directory separators are always / because the .xlsx is a zip file which + // requires / instead of \, even on Windows; see + // http://www.pkware.com/documents/casestudies/APPNOTE.TXT + // 4.4.17.1 All slashes MUST be forward slashes '/' as opposed to backwards slashes '\' OOXML_PATH_TYPES = '[Content_Types].xml'; OOXML_PATH_RELS = '_rels/'; OOXML_PATH_RELS_RELS = '_rels/.rels';