-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
version bump 0.4.3: shared strings and formatting
- XLSB basic support for number formats - removed extraneous Strings table element - formatting xml tags (rich_stress_test) - updating test_files to 20130130
- Loading branch information
1 parent
bf5155d
commit 5c4bf62
Showing
13 changed files
with
186 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
XLSX.version = '0.4.2'; | ||
XLSX.version = '0.4.3'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,66 @@ | ||
function parse_sty_bin(data) { | ||
function parse_BrtFmt(data, length) { | ||
var ifmt = data.read_shift(2); | ||
var stFmtCode = parse_XLWideString(data,length-2); | ||
return [ifmt, stFmtCode]; | ||
} | ||
|
||
function parse_BrtXF(data, length) { | ||
var ixfeParent = data.read_shift(2); | ||
var ifmt = data.read_shift(2); | ||
parsenoop(data, length-4); | ||
return {ixfe:ixfeParent, ifmt:ifmt }; | ||
} | ||
|
||
function parse_sty_bin(data) { | ||
styles.NumberFmt = []; | ||
for(var y in SSF._table) styles.NumberFmt[y] = SSF._table[y]; | ||
|
||
styles.CellXf = []; | ||
var state = ""; | ||
var pass = false; | ||
recordhopper(data, function(val, R, RT) { | ||
switch(R.n) { | ||
case 'BrtFmt': | ||
styles.NumberFmt[val[0]] = val[1]; SSF.load(val[1], val[0]); | ||
break; | ||
case 'BrtFont': break; /* TODO */ | ||
case 'BrtKnownFonts': break; /* TODO */ | ||
case 'BrtFill': break; /* TODO */ | ||
case 'BrtBorder': break; /* TODO */ | ||
case 'BrtXF': | ||
if(state === "CELLXFS") { | ||
styles.CellXf.push(val); | ||
} | ||
break; /* TODO */ | ||
case 'BrtStyle': break; /* TODO */ | ||
case 'BrtRowHdr': break; /* TODO */ | ||
case 'BrtCellMeta': break; /* ?? */ | ||
case 'BrtBeginStyleSheet': break; | ||
case 'BrtEndStyleSheet': break; | ||
case 'BrtBeginFmts': state = "FMTS"; break; | ||
case 'BrtEndFmts': state = ""; break; | ||
case 'BrtBeginFonts': state = "FONTS"; break; | ||
case 'BrtEndFonts': state = ""; break; | ||
case 'BrtACBegin': state = "ACFONTS"; break; | ||
case 'BrtACEnd': state = ""; break; | ||
case 'BrtBeginFills': state = "FILLS"; break; | ||
case 'BrtEndFills': state = ""; break; | ||
case 'BrtBeginBorders': state = "BORDERS"; break; | ||
case 'BrtEndBorders': state = ""; break; | ||
case 'BrtBeginCellStyleXFs': state = "CELLSTYLEXFS"; break; | ||
case 'BrtEndCellStyleXFs': state = ""; break; | ||
case 'BrtBeginCellXFs': state = "CELLXFS"; break; | ||
case 'BrtEndCellXFs': state = ""; break; | ||
case 'BrtBeginStyles': state = "STYLES"; break; | ||
case 'BrtEndStyles': state = ""; break; | ||
case 'BrtBeginDXFs': state = "DXFS"; break; | ||
case 'BrtEndDXFs': state = ""; break; | ||
case 'BrtBeginTableStyles': state = "TABLESTYLES"; break; | ||
case 'BrtEndTableStyles': state = ""; break; | ||
case 'BrtFRTBegin': pass = true; break; | ||
case 'BrtFRTEnd': pass = false; break; | ||
//default: if(!pass) throw new Error("Unexpected record " + RT + " " + R.n); | ||
} | ||
}); | ||
return styles; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule files
updated
8 files
+2 −2 | 2011/number_format.xls.0.csv | |
+2 −2 | 2011/number_format.xls.1.csv | |
+ − | number_format.xls | |
+ − | number_format.xlsb | |
+ − | number_format.xlsm | |
+ − | rich_text_stress.xls | |
+ − | rich_text_stress.xlsb | |
+ − | rich_text_stress.xlsx |
Oops, something went wrong.