From 3641a047c30fcf35acf45df63d9043920a776ecb Mon Sep 17 00:00:00 2001 From: Jonathan Mackenzie Date: Fri, 12 Jun 2020 11:09:42 +0930 Subject: [PATCH] Set defaults to english Bumped version --- lib/msexcel-builder.js | 6 +++--- lib/msexcel-builder.js.map | 4 ++-- package.json | 2 +- src/msexcel-builder.coffee | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/msexcel-builder.js b/lib/msexcel-builder.js index 036cbe7..836e112 100644 --- a/lib/msexcel-builder.js +++ b/lib/msexcel-builder.js @@ -117,7 +117,7 @@ size: 2, baseType: 'variant' }); - tmp.ele('vt:variant').ele('vt:lpstr', '工作表'); + tmp.ele('vt:variant').ele('vt:lpstr', 'Worksheets'); tmp.ele('vt:variant').ele('vt:i4', '' + this.book.sheets.length); tmp = props.ele('TitlesOfParts').ele('vt:vector', { size: this.book.sheets.length, @@ -538,7 +538,7 @@ font.iter || (font.iter = '-'); font.sz || (font.sz = '11'); font.color || (font.color = '-'); - font.name || (font.name = '宋体'); + font.name || (font.name = 'Calibri'); font.scheme || (font.scheme = 'minor'); font.family || (font.family = '2'); k = 'font_' + font.bold + font.iter + font.sz + font.color + font.name + font.scheme + font.family; @@ -815,7 +815,7 @@ ss.ele('cellStyles', { count: '1' }).ele('cellStyle', { - name: '常规', + name: 'Normal', xfId: '0', builtinId: '0' }); diff --git a/lib/msexcel-builder.js.map b/lib/msexcel-builder.js.map index 5c050b3..aed9c6f 100644 --- a/lib/msexcel-builder.js.map +++ b/lib/msexcel-builder.js.map @@ -6,8 +6,8 @@ "src/msexcel-builder.coffee" ], "names": [], - "mappings": ";AAIG;EAAA;;;;;AAAA,MAAA,YAAA,EAAA,WAAA,EAAA,aAAA,EAAA,KAAA,EAAA,aAAA,EAAA,KAAA,EAAA,KAAA,EAAA,QAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,IAAA,EAAA;;EACH,IAAI,kDAAA,IAAW,sBAAf;IACE,KAAA,GAAQ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v0.0.1\n Author : chuanyi.zheng@gmail.com\n History: 2012/11/07 first created\n###\nif (window? && window.JSZip?)\n JSZip = window.JSZip\nelse if (typeof require != 'undefined' )\n JSZip = require 'jszip'\nelse\n throw (\"JSZip not defined\")\n\nif (window? && window.xmlbuilder?)\n xml = window.xmlbuilder\nelse if (typeof require != 'undefined')\n xml = require 'xmlbuilder'\nelse\n throw (\"xmlbuilder not defined\")\n\n####tool =\n# i2a : (i) ->\n# return 'ABCDEFGHIJKLMNOPQ###RSTUVWXYZ123'.charAt(i-1)\n\ntool =\n i2a: (column) ->\n temp = undefined\n letter = ''\n while column > 0\n temp = (column - 1) % 26\n letter = String.fromCharCode(temp + 65) + letter\n column = (column - temp - 1) / 26\n return letter\n\n\nclass ContentTypes\n constructor: (@book)->\n\n toxml:()->\n types = xml.create('Types',{version:'1.0',encoding:'UTF-8',standalone:true})\n types.att('xmlns','http://schemas.openxmlformats.org/package/2006/content-types')\n types.ele('Override',{PartName:'/xl/theme/theme1.xml',ContentType:'application/vnd.openxmlformats-officedocument.theme+xml'})\n types.ele('Override',{PartName:'/xl/styles.xml',ContentType:'application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml'})\n types.ele('Default',{Extension:'rels',ContentType:'application/vnd.openxmlformats-package.relationships+xml'})\n types.ele('Default',{Extension:'xml',ContentType:'application/xml'})\n types.ele('Override',{PartName:'/xl/workbook.xml',ContentType:'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml'})\n types.ele('Override',{PartName:'/docProps/app.xml',ContentType:'application/vnd.openxmlformats-officedocument.extended-properties+xml'})\n for i in [1..@book.sheets.length]\n types.ele('Override',{PartName:'/xl/worksheets/sheet'+i+'.xml',ContentType:'application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml'})\n types.ele('Override',{PartName:'/xl/sharedStrings.xml',ContentType:'application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml'})\n types.ele('Override',{PartName:'/docProps/core.xml',ContentType:'application/vnd.openxmlformats-package.core-properties+xml'})\n return types.end()\n\nclass DocPropsApp\n constructor: (@book)->\n\n toxml: ()->\n props = xml.create('Properties',{version:'1.0',encoding:'UTF-8',standalone:true})\n props.att('xmlns','http://schemas.openxmlformats.org/officeDocument/2006/extended-properties')\n props.att('xmlns:vt','http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes')\n props.ele('Application','Microsoft Excel')\n props.ele('DocSecurity','0')\n props.ele('ScaleCrop','false')\n tmp = props.ele('HeadingPairs').ele('vt:vector',{size:2,baseType:'variant'})\n tmp.ele('vt:variant').ele('vt:lpstr','工作表')\n tmp.ele('vt:variant').ele('vt:i4',''+@book.sheets.length)\n tmp = props.ele('TitlesOfParts').ele('vt:vector',{size:@book.sheets.length,baseType:'lpstr'})\n for i in [1..@book.sheets.length]\n tmp.ele('vt:lpstr',@book.sheets[i-1].name)\n props.ele('Company')\n props.ele('LinksUpToDate','false')\n props.ele('SharedDoc','false')\n props.ele('HyperlinksChanged','false')\n props.ele('AppVersion','12.0000')\n return props.end()\n\nclass XlWorkbook\n constructor: (@book)->\n\n toxml: ()->\n wb = xml.create('workbook',{version:'1.0',encoding:'UTF-8',standalone:true})\n wb.att('xmlns','http://schemas.openxmlformats.org/spreadsheetml/2006/main')\n wb.att('xmlns:r','http://schemas.openxmlformats.org/officeDocument/2006/relationships')\n wb.ele('fileVersion ',{appName:'xl',lastEdited:'4',lowestEdited:'4',rupBuild:'4505'})\n wb.ele('workbookPr',{filterPrivacy:'1',defaultThemeVersion:'124226'})\n wb.ele('bookViews').ele('workbookView ',{xWindow:'0',yWindow:'90',windowWidth:'19200',windowHeight:'11640'})\n tmp = wb.ele('sheets')\n for i in [1..@book.sheets.length]\n tmp.ele('sheet',{name:@book.sheets[i-1].name,sheetId:''+i,'r:id':'rId'+i})\n\n\n definedNames = wb.ele('definedNames') # one entry per autofilter\n @book.sheets.forEach((sheet, idx) ->\n if (sheet.autofilter)\n definedNames.ele('definedName', {name: '_xlnm._FilterDatabase', hidden: '1', localSheetId: idx}).raw(\"'\"+sheet.name + \"'!\" + sheet.getRange())\n )\n wb.ele('calcPr',{calcId:'124519'})\n return wb.end()\n\nclass XlRels\n constructor: (@book)->\n\n toxml: ()->\n rs = xml.create('Relationships',{version:'1.0',encoding:'UTF-8',standalone:true})\n rs.att('xmlns','http://schemas.openxmlformats.org/package/2006/relationships')\n for i in [1..@book.sheets.length]\n rs.ele('Relationship',{Id:'rId'+i,Type:'http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet',Target:'worksheets/sheet'+i+'.xml'})\n rs.ele('Relationship',{Id:'rId'+(@book.sheets.length+1),Type:'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme',Target:'theme/theme1.xml'})\n rs.ele('Relationship',{Id:'rId'+(@book.sheets.length+2),Type:'http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles',Target:'styles.xml'})\n rs.ele('Relationship',{Id:'rId'+(@book.sheets.length+3),Type:'http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings',Target:'sharedStrings.xml'})\n return rs.end()\n\nclass SharedStrings\n constructor: ()->\n @cache = {}\n @arr = []\n\n str2id: (s)->\n id = @cache[s]\n if id\n return id\n else\n @arr.push s\n @cache[s] = @arr.length\n return @arr.length\n\n toxml: ()->\n sst = xml.create('sst',{version:'1.0',encoding:'UTF-8',standalone:true})\n sst.att('xmlns','http://schemas.openxmlformats.org/spreadsheetml/2006/main')\n sst.att('count',''+@arr.length)\n sst.att('uniqueCount',''+@arr.length)\n for i in [0...@arr.length]\n si = sst.ele('si')\n si.ele('t',@arr[i])\n si.ele('phoneticPr',{fontId:1,type:'noConversion'})\n return sst.end()\n\nclass Sheet\n constructor: (@book, @name, @cols, @rows) ->\n @name = @name.replace(/[/*:?\\[\\]]/g,'-');\n\n\n @data = {}\n for i in [1..@rows]\n @data[i] = {}\n for j in [1..@cols]\n @data[i][j] = {v:0}\n @merges = []\n @col_wd = []\n @row_ht = {}\n @styles = {}\n \n\n set: (col, row, str) ->\n if str instanceof Date\n @set col, row, JSDateToExcel str\n # for some reason the number format doesn't apply if the fill is not also set. BUG? Mystery?\n @fill col, row,\n type: \"solid\",\n fgColor: \"FFFFFF\"\n @numberFormat col, row, 'd-mmm'\n else if typeof str == 'object'\n for key of str\n @[key] col, row, str[key]\n else if typeof str == 'string'\n if str != null and str != ''\n @data[row][col].v = @book.ss.str2id('' + str)\n return @data[row][col].dataType = 'string'\n else if typeof str == 'number'\n @data[row][col].v = str\n return @data[row][col].dataType = 'number'\n else\n @data[row][col].v = str\n return\n\n merge: (from_cell, to_cell) ->\n @merges.push({from:from_cell, to:to_cell})\n\n width: (col, wd) ->\n @col_wd.push {c:col,cw:wd}\n\n height: (row, ht) ->\n @row_ht[row] = ht\n\n font: (col, row, font_s)->\n @styles['font_'+col+'_'+row] = @book.st.font2id(font_s)\n\n fill: (col, row, fill_s)->\n @styles['fill_'+col+'_'+row] = @book.st.fill2id(fill_s)\n\n border: (col, row, bder_s)->\n @styles['bder_'+col+'_'+row] = @book.st.bder2id(bder_s)\n\n numberFormat: (col, row, numfmt_s)->\n @styles['numfmt_'+col+'_'+row] = @book.st.numfmt2id(numfmt_s)\n\n align: (col, row, align_s)->\n @styles['algn_'+col+'_'+row] = align_s\n\n valign: (col, row, valign_s)->\n @styles['valgn_'+col+'_'+row] = valign_s\n\n rotate: (col, row, textRotation)->\n @styles['rotate_'+col+'_'+row] = textRotation\n\n wrap: (col, row, wrap_s)->\n @styles['wrap_'+col+'_'+row] = wrap_s\n\n autoFilter: ( filter_s) ->\n @autofilter = if typeof filter_s == 'string' then filter_s else @getRange()\n \n style_id: (col, row) ->\n inx = '_'+col+'_'+row\n style = {numfmt_id: @styles['numfmt'+inx],font_id:@styles['font'+inx],fill_id:@styles['fill'+inx],bder_id:@styles['bder'+inx],align:@styles['algn'+inx],valign:@styles['valgn'+inx],rotate:@styles['rotate'+inx],wrap:@styles['wrap'+inx]}\n id = @book.st.style2id(style)\n return id\n\n getRange: () ->\n return '$A$1:$'+ tool.i2a(@cols)+'$'+@rows\n\n toxml: () ->\n ws = xml.create('worksheet',{version:'1.0',encoding:'UTF-8',standalone:true})\n ws.att('xmlns','http://schemas.openxmlformats.org/spreadsheetml/2006/main')\n ws.att('xmlns:r','http://schemas.openxmlformats.org/officeDocument/2006/relationships')\n ws.ele('dimension',{ref:'A1'})\n ws.ele('sheetViews').ele('sheetView',{workbookViewId:'0'})\n ws.ele('sheetFormatPr',{defaultRowHeight:'13.5'})\n if @col_wd.length > 0\n cols = ws.ele('cols')\n for cw in @col_wd\n cols.ele('col',{min:''+cw.c,max:''+cw.c,width:cw.cw,customWidth:'1'})\n sd = ws.ele('sheetData')\n for i in [1..@rows]\n r = sd.ele('row',{r:''+i,spans:'1:'+@cols})\n ht = @row_ht[i]\n if ht\n r.att('ht',ht)\n r.att('customHeight','1')\n for j in [1..@cols]\n ix = @data[i][j]\n sid = @style_id(j, i)\n if (ix.v isnt null and ix.v isnt undefined) or (sid isnt 1)\n c = r.ele('c',{r:''+tool.i2a(j)+i})\n c.att('s',''+(sid-1)) if sid isnt 1\n if ix.dataType == 'string'\n c.att('t','s')\n c.ele('v',''+(ix.v-1))\n else if ix.dataType == 'number'\n c.ele 'v', ''+ix.v\n\n if @merges.length > 0\n mc = ws.ele('mergeCells',{count:@merges.length})\n for m in @merges\n mc.ele('mergeCell',{ref:(''+tool.i2a(m.from.col)+m.from.row+':'+tool.i2a(m.to.col)+m.to.row)})\n if typeof @autofilter == 'string'\n ws.ele('autoFilter', {ref: @autofilter})\n ws.ele('phoneticPr',{fontId:'1',type:'noConversion'})\n ws.ele('pageMargins',{left:'0.7',right:'0.7',top:'0.75',bottom:'0.75',header:'0.3',footer:'0.3'})\n ws.ele('pageSetup',{paperSize:'9',orientation:'portrait',horizontalDpi:'200',verticalDpi:'200'})\n return ws.end()\n\nclass Style\n\n numberFormats: {\n 0: 'General'\n 1: '0'\n 2: '0.00'\n 3: '#,##0'\n 4: '#,##0.00'\n 9: '0%'\n 10: '0.00%'\n 11: '0.00E+00'\n 12: '# ?/?'\n 13: '# ??/??'\n 14: 'm/d/yy'\n 15: 'd-mmm-yy'\n 16: 'd-mmm'\n 17: 'mmm-yy'\n 18: 'h:mm AM/PM'\n 19: 'h:mm:ss AM/PM'\n 20: 'h:mm'\n 21: 'h:mm:ss'\n 22: 'm/d/yy h:mm'\n 37: '#,##0 ;(#,##0)'\n 38: '#,##0 ;[Red](#,##0)'\n 39: '#,##0.00;(#,##0.00)'\n 40: '#,##0.00;[Red](#,##0.00)'\n 45: 'mm:ss'\n 46: '[h]:mm:ss'\n 47: 'mmss.0'\n 48: '##0.0E+0'\n 49: '@'\n 56: '\"上午/下午 \"hh\"時\"mm\"分\"ss\"秒 \"'\n }\n\n\n constructor: (@book)->\n @cache = {}\n @mfonts = [] # font style\n @mfills = [] # fill style\n @mbders = [] # border style\n @mstyle = [] # cell style\n @numFmtNextId = 164\n @with_default()\n\n with_default:()->\n @def_font_id = @font2id(null)\n @def_fill_id = @fill2id(null)\n @def_bder_id = @bder2id(null)\n @def_align = '-'\n @def_valign = '-'\n @def_rotate = '-'\n @def_wrap = '-'\n @def_numfmt_id = 0\n @def_style_id = @style2id({font_id:@def_font_id,fill_id:@def_fill_id,bder_id:@def_bder_id,align:@def_align,valign:@def_valign,rotate:@def_rotate})\n\n font2id: (font)->\n font or= {}\n font.bold or= '-'\n font.iter or= '-'\n font.sz or= '11'\n font.color or= '-'\n font.name or= '宋体'\n font.scheme or='minor'\n font.family or= '2'\n k = 'font_'+font.bold+font.iter+font.sz+font.color+font.name+font.scheme+font.family\n id = @cache[k]\n if id\n return id\n else\n @mfonts.push font\n @cache[k] = @mfonts.length\n return @mfonts.length\n\n fill2id: (fill)->\n fill or= {}\n fill.type or= 'none'\n fill.bgColor or= '-'\n fill.fgColor or= '-'\n k = 'fill_' + fill.type + fill.bgColor + fill.fgColor\n id = @cache[k]\n if id\n return id\n else\n @mfills.push fill\n @cache[k] = @mfills.length\n return @mfills.length\n\n bder2id: (bder)->\n bder or= {}\n bder.left or= '-'\n bder.right or= '-'\n bder.top or= '-'\n bder.bottom or= '-'\n k = 'bder_'+bder.left+'_'+bder.right+'_'+bder.top+'_'+bder.bottom\n id = @cache[k]\n if id\n return id\n else\n @mbders.push bder\n @cache[k] = @mbders.length\n return @mbders.length\n\n numfmt2id: (numfmt) ->\n if typeof numfmt == 'number'\n return numfmt\n else if typeof numfmt == 'string'\n for key of @numberFormats\n if @numberFormats[key] == numfmt\n return parseInt key;\n # if it's not in numberFormats, we parse the string and add it the end of numberFormats\n if ! numfmt\n throw \"Invalid format specification\"\n numfmt = numfmt\n .replace(/&/g, '&')\n .replace(//g, '>')\n .replace(/\"/g, '"')\n @numberFormats[++@numFmtNextId] = numfmt\n return @numFmtNextId\n\n style2id:(style)->\n style.align or= @def_align\n style.valign or= @def_valign\n style.rotate or= @def_rotate\n style.wrap or= @def_wrap\n style.font_id or= @def_font_id\n style.fill_id or= @def_fill_id\n style.bder_id or= @def_bder_id\n style.numfmt_id or= @def_numfmt_id\n k = 's_' + [style.font_id, style.fill_id, style.bder_id, style.align, style.valign, style.wrap, style.rotate, style.numfmt_id].join('_')\n id = @cache[k]\n if id\n return id\n else\n @mstyle.push style\n @cache[k] = @mstyle.length\n return @mstyle.length\n\n toxml: ()->\n ss = xml.create('styleSheet',{version:'1.0',encoding:'UTF-8',standalone:true})\n ss.att('xmlns','http://schemas.openxmlformats.org/spreadsheetml/2006/main')\n # add all numFmts >= 164 as \n customNumFmts = [];\n for key, fmt of @numberFormats\n if parseInt(key) >= 164\n customNumFmts.push({numFmtId:key, formatCode: fmt});\n if customNumFmts.length > 0\n numFmts = ss.ele('numFmts', {\n count: customNumFmts.length\n });\n for o in customNumFmts\n numFmts.ele('numFmt', o)\n fonts = ss.ele('fonts',{count:@mfonts.length})\n for o in @mfonts\n e = fonts.ele('font')\n e.ele('b') if o.bold isnt '-'\n e.ele('i') if o.iter isnt '-'\n e.ele('sz',{val:o.sz})\n e.ele('color',{rgb:o.color}) if o.color isnt '-'\n e.ele('name',{val:o.name})\n e.ele('family',{val:o.family})\n e.ele('charset',{val:'134'})\n e.ele('scheme',{val:'minor'}) if o.scheme isnt '-'\n fills = ss.ele('fills',{count:@mfills.length+2})\n fills.ele('fill').ele('patternFill', {patternType: 'none'})\n fills.ele('fill').ele('patternFill', {patternType: 'gray125'})\n #\n\n for o in @mfills\n e = fills.ele('fill')\n es = e.ele('patternFill',{patternType:o.type})\n es.ele('fgColor',{rgb : o.fgColor}) if o.fgColor isnt '-'\n es.ele('bgColor',{indexed:o.bgColor}) if o.bgColor isnt '-'\n bders = ss.ele('borders',{count:@mbders.length})\n for o in @mbders\n\n e = bders.ele('border')\n if o.left isnt '-' then e.ele('left',{style:o.left}).ele('color',{auto:'1'}) else e.ele('left')\n if o.right isnt '-' then e.ele('right',{style:o.right}).ele('color',{auto:'1'}) else e.ele('right')\n if o.top isnt '-' then e.ele('top',{style:o.top}).ele('color',{auto:'1'}) else e.ele('top')\n if o.bottom isnt '-' then e.ele('bottom',{style:o.bottom}).ele('color',{auto:'1'}) else e.ele('bottom')\n e.ele('diagonal')\n ss.ele('cellStyleXfs',{count:'1'}).ele('xf',{numFmtId:'0',fontId:'0',fillId:'0',borderId:'0'}).ele('alignment',{vertical:'center'})\n cs = ss.ele('cellXfs',{count:@mstyle.length})\n for o in @mstyle\n e = cs.ele('xf',{\n numFmtId: o.numfmt_id||'0',\n fontId:(o.font_id-1),\n fillId:o.fill_id+1,\n borderId:(o.bder_id-1),\n xfId:'0'\n })\n e.att('applyFont','1') if o.font_id isnt 1\n e.att('applyFill','1') if o.fill_id isnt 1\n e.att('applyNumberFormat','1') if o.numfmt_id isnt undefined\n e.att('applyBorder','1') if o.bder_id isnt 1\n if o.align isnt '-' or o.valign isnt '-' or o.wrap isnt '-'\n e.att('applyAlignment','1')\n ea = e.ele('alignment',{textRotation:(if o.rotate is '-' then '0' else o.rotate),horizontal:(if o.align is '-' then 'left' else o.align), vertical:(if o.valign is '-' then 'top' else o.valign)})\n ea.att('wrapText','1') if o.wrap isnt '-'\n ss.ele('cellStyles',{count:'1'}).ele('cellStyle',{name:'常规',xfId:'0',builtinId:'0'})\n ss.ele('dxfs',{count:'0'})\n ss.ele('tableStyles',{count:'0',defaultTableStyle:'TableStyleMedium9',defaultPivotStyle:'PivotStyleLight16'})\n return ss.end()\n\nclass Workbook\n constructor: (@fpath, @fname) ->\n @id = ''+parseInt(Math.random()*9999999)\n # create temp folder & copy template data\n # init\n @sheets = []\n @ss = new SharedStrings\n @ct = new ContentTypes(@)\n @da = new DocPropsApp(@)\n @wb = new XlWorkbook(@)\n @re = new XlRels(@)\n @st = new Style(@)\n\n createSheet: (name, cols, rows) ->\n sheet = new Sheet(@,name,cols,rows)\n @sheets.push sheet\n return sheet\n\n save: (target, cb) ->\n if (arguments.length == 1 && typeof target == 'function')\n cb = target\n target = @fpath + '/' + @fname\n\n @generate (err, zip) ->\n buffer = undefined\n buffer = zip.generateAsync({ type: 'nodebuffer' }).then((buffer) ->\n if err\n return cb(err)\n require('fs').writeFile target, buffer, cb\n )\n\n # takes a callback function(err, zip) and returns a JSZip object on success\n generate: (cb) =>\n\n zip = new JSZip()\n\n for key of baseXl\n zip.file key, baseXl[key]\n\n # 1 - build [Content_Types].xml\n zip.file('[Content_Types].xml',@ct.toxml())\n # 2 - build docProps/app.xml\n zip.file('docProps/app.xml',@da.toxml())\n # 3 - build xl/workbook.xml\n zip.file('xl/workbook.xml',@wb.toxml())\n # 4 - build xl/sharedStrings.xml\n zip.file('xl/sharedStrings.xml',@ss.toxml())\n # 5 - build xl/_rels/workbook.xml.rels\n zip.file('xl/_rels/workbook.xml.rels',@re.toxml())\n # 6 - build xl/worksheets/sheet(1-N).xml\n for i in [0...@sheets.length]\n zip.file('xl/worksheets/sheet'+(i+1)+'.xml',@sheets[i].toxml())\n # 7 - build xl/styles.xml\n zip.file('xl/styles.xml',@st.toxml())\n cb null, zip\n\n cancel: () ->\n # delete temp folder\n console.error \"workbook.cancel() is deprecated\"\n\nJSDateToExcel = (dt) ->\n dt.valueOf() / 86400000 + 25569\n\nif (module? && module.exports?)\n module.exports =\n createWorkbook: (fpath, fname)->\n return new Workbook(fpath, fname)\n\nif (window?)\n window.excelbuilder =\n createWorkbook: (fpath, fname)->\n return new Workbook(fpath, fname)\n\n# Base content formerly stored in /lib/tmpl but placed in code so as to avoid dependence on file system\nbaseXl =\n '_rels/.rels': ''\n 'docProps/core.xml':'Administrator2006-09-13T11:21:51Z2006-09-13T11:21:55Z'\n 'xl/theme/theme1.xml':''\n 'xl/styles.xml':''" + "###\n MS Excel 2007 Creameater v0.0.1\n Author : chuanyi.zheng@gmail.com\n History: 2012/11/07 first created\n###\nif (window? && window.JSZip?)\n JSZip = window.JSZip\nelse if (typeof require != 'undefined' )\n JSZip = require 'jszip'\nelse\n throw (\"JSZip not defined\")\n\nif (window? && window.xmlbuilder?)\n xml = window.xmlbuilder\nelse if (typeof require != 'undefined')\n xml = require 'xmlbuilder'\nelse\n throw (\"xmlbuilder not defined\")\n\n####tool =\n# i2a : (i) ->\n# return 'ABCDEFGHIJKLMNOPQ###RSTUVWXYZ123'.charAt(i-1)\n\ntool =\n i2a: (column) ->\n temp = undefined\n letter = ''\n while column > 0\n temp = (column - 1) % 26\n letter = String.fromCharCode(temp + 65) + letter\n column = (column - temp - 1) / 26\n return letter\n\n\nclass ContentTypes\n constructor: (@book)->\n\n toxml:()->\n types = xml.create('Types',{version:'1.0',encoding:'UTF-8',standalone:true})\n types.att('xmlns','http://schemas.openxmlformats.org/package/2006/content-types')\n types.ele('Override',{PartName:'/xl/theme/theme1.xml',ContentType:'application/vnd.openxmlformats-officedocument.theme+xml'})\n types.ele('Override',{PartName:'/xl/styles.xml',ContentType:'application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml'})\n types.ele('Default',{Extension:'rels',ContentType:'application/vnd.openxmlformats-package.relationships+xml'})\n types.ele('Default',{Extension:'xml',ContentType:'application/xml'})\n types.ele('Override',{PartName:'/xl/workbook.xml',ContentType:'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml'})\n types.ele('Override',{PartName:'/docProps/app.xml',ContentType:'application/vnd.openxmlformats-officedocument.extended-properties+xml'})\n for i in [1..@book.sheets.length]\n types.ele('Override',{PartName:'/xl/worksheets/sheet'+i+'.xml',ContentType:'application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml'})\n types.ele('Override',{PartName:'/xl/sharedStrings.xml',ContentType:'application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml'})\n types.ele('Override',{PartName:'/docProps/core.xml',ContentType:'application/vnd.openxmlformats-package.core-properties+xml'})\n return types.end()\n\nclass DocPropsApp\n constructor: (@book)->\n\n toxml: ()->\n props = xml.create('Properties',{version:'1.0',encoding:'UTF-8',standalone:true})\n props.att('xmlns','http://schemas.openxmlformats.org/officeDocument/2006/extended-properties')\n props.att('xmlns:vt','http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes')\n props.ele('Application','Microsoft Excel')\n props.ele('DocSecurity','0')\n props.ele('ScaleCrop','false')\n tmp = props.ele('HeadingPairs').ele('vt:vector',{size:2,baseType:'variant'})\n tmp.ele('vt:variant').ele('vt:lpstr','Worksheets')\n tmp.ele('vt:variant').ele('vt:i4',''+@book.sheets.length)\n tmp = props.ele('TitlesOfParts').ele('vt:vector',{size:@book.sheets.length,baseType:'lpstr'})\n for i in [1..@book.sheets.length]\n tmp.ele('vt:lpstr',@book.sheets[i-1].name)\n props.ele('Company')\n props.ele('LinksUpToDate','false')\n props.ele('SharedDoc','false')\n props.ele('HyperlinksChanged','false')\n props.ele('AppVersion','12.0000')\n return props.end()\n\nclass XlWorkbook\n constructor: (@book)->\n\n toxml: ()->\n wb = xml.create('workbook',{version:'1.0',encoding:'UTF-8',standalone:true})\n wb.att('xmlns','http://schemas.openxmlformats.org/spreadsheetml/2006/main')\n wb.att('xmlns:r','http://schemas.openxmlformats.org/officeDocument/2006/relationships')\n wb.ele('fileVersion ',{appName:'xl',lastEdited:'4',lowestEdited:'4',rupBuild:'4505'})\n wb.ele('workbookPr',{filterPrivacy:'1',defaultThemeVersion:'124226'})\n wb.ele('bookViews').ele('workbookView ',{xWindow:'0',yWindow:'90',windowWidth:'19200',windowHeight:'11640'})\n tmp = wb.ele('sheets')\n for i in [1..@book.sheets.length]\n tmp.ele('sheet',{name:@book.sheets[i-1].name,sheetId:''+i,'r:id':'rId'+i})\n\n\n definedNames = wb.ele('definedNames') # one entry per autofilter\n @book.sheets.forEach((sheet, idx) ->\n if (sheet.autofilter)\n definedNames.ele('definedName', {name: '_xlnm._FilterDatabase', hidden: '1', localSheetId: idx}).raw(\"'\"+sheet.name + \"'!\" + sheet.getRange())\n )\n wb.ele('calcPr',{calcId:'124519'})\n return wb.end()\n\nclass XlRels\n constructor: (@book)->\n\n toxml: ()->\n rs = xml.create('Relationships',{version:'1.0',encoding:'UTF-8',standalone:true})\n rs.att('xmlns','http://schemas.openxmlformats.org/package/2006/relationships')\n for i in [1..@book.sheets.length]\n rs.ele('Relationship',{Id:'rId'+i,Type:'http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet',Target:'worksheets/sheet'+i+'.xml'})\n rs.ele('Relationship',{Id:'rId'+(@book.sheets.length+1),Type:'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme',Target:'theme/theme1.xml'})\n rs.ele('Relationship',{Id:'rId'+(@book.sheets.length+2),Type:'http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles',Target:'styles.xml'})\n rs.ele('Relationship',{Id:'rId'+(@book.sheets.length+3),Type:'http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings',Target:'sharedStrings.xml'})\n return rs.end()\n\nclass SharedStrings\n constructor: ()->\n @cache = {}\n @arr = []\n\n str2id: (s)->\n id = @cache[s]\n if id\n return id\n else\n @arr.push s\n @cache[s] = @arr.length\n return @arr.length\n\n toxml: ()->\n sst = xml.create('sst',{version:'1.0',encoding:'UTF-8',standalone:true})\n sst.att('xmlns','http://schemas.openxmlformats.org/spreadsheetml/2006/main')\n sst.att('count',''+@arr.length)\n sst.att('uniqueCount',''+@arr.length)\n for i in [0...@arr.length]\n si = sst.ele('si')\n si.ele('t',@arr[i])\n si.ele('phoneticPr',{fontId:1,type:'noConversion'})\n return sst.end()\n\nclass Sheet\n constructor: (@book, @name, @cols, @rows) ->\n @name = @name.replace(/[/*:?\\[\\]]/g,'-');\n\n\n @data = {}\n for i in [1..@rows]\n @data[i] = {}\n for j in [1..@cols]\n @data[i][j] = {v:0}\n @merges = []\n @col_wd = []\n @row_ht = {}\n @styles = {}\n \n\n set: (col, row, str) ->\n if str instanceof Date\n @set col, row, JSDateToExcel str\n # for some reason the number format doesn't apply if the fill is not also set. BUG? Mystery?\n @fill col, row,\n type: \"solid\",\n fgColor: \"FFFFFF\"\n @numberFormat col, row, 'd-mmm'\n else if typeof str == 'object'\n for key of str\n @[key] col, row, str[key]\n else if typeof str == 'string'\n if str != null and str != ''\n @data[row][col].v = @book.ss.str2id('' + str)\n return @data[row][col].dataType = 'string'\n else if typeof str == 'number'\n @data[row][col].v = str\n return @data[row][col].dataType = 'number'\n else\n @data[row][col].v = str\n return\n\n merge: (from_cell, to_cell) ->\n @merges.push({from:from_cell, to:to_cell})\n\n width: (col, wd) ->\n @col_wd.push {c:col,cw:wd}\n\n height: (row, ht) ->\n @row_ht[row] = ht\n\n font: (col, row, font_s)->\n @styles['font_'+col+'_'+row] = @book.st.font2id(font_s)\n\n fill: (col, row, fill_s)->\n @styles['fill_'+col+'_'+row] = @book.st.fill2id(fill_s)\n\n border: (col, row, bder_s)->\n @styles['bder_'+col+'_'+row] = @book.st.bder2id(bder_s)\n\n numberFormat: (col, row, numfmt_s)->\n @styles['numfmt_'+col+'_'+row] = @book.st.numfmt2id(numfmt_s)\n\n align: (col, row, align_s)->\n @styles['algn_'+col+'_'+row] = align_s\n\n valign: (col, row, valign_s)->\n @styles['valgn_'+col+'_'+row] = valign_s\n\n rotate: (col, row, textRotation)->\n @styles['rotate_'+col+'_'+row] = textRotation\n\n wrap: (col, row, wrap_s)->\n @styles['wrap_'+col+'_'+row] = wrap_s\n\n autoFilter: ( filter_s) ->\n @autofilter = if typeof filter_s == 'string' then filter_s else @getRange()\n \n style_id: (col, row) ->\n inx = '_'+col+'_'+row\n style = {numfmt_id: @styles['numfmt'+inx],font_id:@styles['font'+inx],fill_id:@styles['fill'+inx],bder_id:@styles['bder'+inx],align:@styles['algn'+inx],valign:@styles['valgn'+inx],rotate:@styles['rotate'+inx],wrap:@styles['wrap'+inx]}\n id = @book.st.style2id(style)\n return id\n\n getRange: () ->\n return '$A$1:$'+ tool.i2a(@cols)+'$'+@rows\n\n toxml: () ->\n ws = xml.create('worksheet',{version:'1.0',encoding:'UTF-8',standalone:true})\n ws.att('xmlns','http://schemas.openxmlformats.org/spreadsheetml/2006/main')\n ws.att('xmlns:r','http://schemas.openxmlformats.org/officeDocument/2006/relationships')\n ws.ele('dimension',{ref:'A1'})\n ws.ele('sheetViews').ele('sheetView',{workbookViewId:'0'})\n ws.ele('sheetFormatPr',{defaultRowHeight:'13.5'})\n if @col_wd.length > 0\n cols = ws.ele('cols')\n for cw in @col_wd\n cols.ele('col',{min:''+cw.c,max:''+cw.c,width:cw.cw,customWidth:'1'})\n sd = ws.ele('sheetData')\n for i in [1..@rows]\n r = sd.ele('row',{r:''+i,spans:'1:'+@cols})\n ht = @row_ht[i]\n if ht\n r.att('ht',ht)\n r.att('customHeight','1')\n for j in [1..@cols]\n ix = @data[i][j]\n sid = @style_id(j, i)\n if (ix.v isnt null and ix.v isnt undefined) or (sid isnt 1)\n c = r.ele('c',{r:''+tool.i2a(j)+i})\n c.att('s',''+(sid-1)) if sid isnt 1\n if ix.dataType == 'string'\n c.att('t','s')\n c.ele('v',''+(ix.v-1))\n else if ix.dataType == 'number'\n c.ele 'v', ''+ix.v\n\n if @merges.length > 0\n mc = ws.ele('mergeCells',{count:@merges.length})\n for m in @merges\n mc.ele('mergeCell',{ref:(''+tool.i2a(m.from.col)+m.from.row+':'+tool.i2a(m.to.col)+m.to.row)})\n if typeof @autofilter == 'string'\n ws.ele('autoFilter', {ref: @autofilter})\n ws.ele('phoneticPr',{fontId:'1',type:'noConversion'})\n ws.ele('pageMargins',{left:'0.7',right:'0.7',top:'0.75',bottom:'0.75',header:'0.3',footer:'0.3'})\n ws.ele('pageSetup',{paperSize:'9',orientation:'portrait',horizontalDpi:'200',verticalDpi:'200'})\n return ws.end()\n\nclass Style\n\n numberFormats: {\n 0: 'General'\n 1: '0'\n 2: '0.00'\n 3: '#,##0'\n 4: '#,##0.00'\n 9: '0%'\n 10: '0.00%'\n 11: '0.00E+00'\n 12: '# ?/?'\n 13: '# ??/??'\n 14: 'm/d/yy'\n 15: 'd-mmm-yy'\n 16: 'd-mmm'\n 17: 'mmm-yy'\n 18: 'h:mm AM/PM'\n 19: 'h:mm:ss AM/PM'\n 20: 'h:mm'\n 21: 'h:mm:ss'\n 22: 'm/d/yy h:mm'\n 37: '#,##0 ;(#,##0)'\n 38: '#,##0 ;[Red](#,##0)'\n 39: '#,##0.00;(#,##0.00)'\n 40: '#,##0.00;[Red](#,##0.00)'\n 45: 'mm:ss'\n 46: '[h]:mm:ss'\n 47: 'mmss.0'\n 48: '##0.0E+0'\n 49: '@'\n 56: '\"上午/下午 \"hh\"時\"mm\"分\"ss\"秒 \"'\n }\n\n\n constructor: (@book)->\n @cache = {}\n @mfonts = [] # font style\n @mfills = [] # fill style\n @mbders = [] # border style\n @mstyle = [] # cell style\n @numFmtNextId = 164\n @with_default()\n\n with_default:()->\n @def_font_id = @font2id(null)\n @def_fill_id = @fill2id(null)\n @def_bder_id = @bder2id(null)\n @def_align = '-'\n @def_valign = '-'\n @def_rotate = '-'\n @def_wrap = '-'\n @def_numfmt_id = 0\n @def_style_id = @style2id({font_id:@def_font_id,fill_id:@def_fill_id,bder_id:@def_bder_id,align:@def_align,valign:@def_valign,rotate:@def_rotate})\n\n font2id: (font)->\n font or= {}\n font.bold or= '-'\n font.iter or= '-'\n font.sz or= '11'\n font.color or= '-'\n font.name or= 'Calibri'\n font.scheme or='minor'\n font.family or= '2'\n k = 'font_'+font.bold+font.iter+font.sz+font.color+font.name+font.scheme+font.family\n id = @cache[k]\n if id\n return id\n else\n @mfonts.push font\n @cache[k] = @mfonts.length\n return @mfonts.length\n\n fill2id: (fill)->\n fill or= {}\n fill.type or= 'none'\n fill.bgColor or= '-'\n fill.fgColor or= '-'\n k = 'fill_' + fill.type + fill.bgColor + fill.fgColor\n id = @cache[k]\n if id\n return id\n else\n @mfills.push fill\n @cache[k] = @mfills.length\n return @mfills.length\n\n bder2id: (bder)->\n bder or= {}\n bder.left or= '-'\n bder.right or= '-'\n bder.top or= '-'\n bder.bottom or= '-'\n k = 'bder_'+bder.left+'_'+bder.right+'_'+bder.top+'_'+bder.bottom\n id = @cache[k]\n if id\n return id\n else\n @mbders.push bder\n @cache[k] = @mbders.length\n return @mbders.length\n\n numfmt2id: (numfmt) ->\n if typeof numfmt == 'number'\n return numfmt\n else if typeof numfmt == 'string'\n for key of @numberFormats\n if @numberFormats[key] == numfmt\n return parseInt key;\n # if it's not in numberFormats, we parse the string and add it the end of numberFormats\n if ! numfmt\n throw \"Invalid format specification\"\n numfmt = numfmt\n .replace(/&/g, '&')\n .replace(//g, '>')\n .replace(/\"/g, '"')\n @numberFormats[++@numFmtNextId] = numfmt\n return @numFmtNextId\n\n style2id:(style)->\n style.align or= @def_align\n style.valign or= @def_valign\n style.rotate or= @def_rotate\n style.wrap or= @def_wrap\n style.font_id or= @def_font_id\n style.fill_id or= @def_fill_id\n style.bder_id or= @def_bder_id\n style.numfmt_id or= @def_numfmt_id\n k = 's_' + [style.font_id, style.fill_id, style.bder_id, style.align, style.valign, style.wrap, style.rotate, style.numfmt_id].join('_')\n id = @cache[k]\n if id\n return id\n else\n @mstyle.push style\n @cache[k] = @mstyle.length\n return @mstyle.length\n\n toxml: ()->\n ss = xml.create('styleSheet',{version:'1.0',encoding:'UTF-8',standalone:true})\n ss.att('xmlns','http://schemas.openxmlformats.org/spreadsheetml/2006/main')\n # add all numFmts >= 164 as \n customNumFmts = [];\n for key, fmt of @numberFormats\n if parseInt(key) >= 164\n customNumFmts.push({numFmtId:key, formatCode: fmt});\n if customNumFmts.length > 0\n numFmts = ss.ele('numFmts', {\n count: customNumFmts.length\n });\n for o in customNumFmts\n numFmts.ele('numFmt', o)\n fonts = ss.ele('fonts',{count:@mfonts.length})\n for o in @mfonts\n e = fonts.ele('font')\n e.ele('b') if o.bold isnt '-'\n e.ele('i') if o.iter isnt '-'\n e.ele('sz',{val:o.sz})\n e.ele('color',{rgb:o.color}) if o.color isnt '-'\n e.ele('name',{val:o.name})\n e.ele('family',{val:o.family})\n e.ele('charset',{val:'134'})\n e.ele('scheme',{val:'minor'}) if o.scheme isnt '-'\n fills = ss.ele('fills',{count:@mfills.length+2})\n fills.ele('fill').ele('patternFill', {patternType: 'none'})\n fills.ele('fill').ele('patternFill', {patternType: 'gray125'})\n #\n\n for o in @mfills\n e = fills.ele('fill')\n es = e.ele('patternFill',{patternType:o.type})\n es.ele('fgColor',{rgb : o.fgColor}) if o.fgColor isnt '-'\n es.ele('bgColor',{indexed:o.bgColor}) if o.bgColor isnt '-'\n bders = ss.ele('borders',{count:@mbders.length})\n for o in @mbders\n\n e = bders.ele('border')\n if o.left isnt '-' then e.ele('left',{style:o.left}).ele('color',{auto:'1'}) else e.ele('left')\n if o.right isnt '-' then e.ele('right',{style:o.right}).ele('color',{auto:'1'}) else e.ele('right')\n if o.top isnt '-' then e.ele('top',{style:o.top}).ele('color',{auto:'1'}) else e.ele('top')\n if o.bottom isnt '-' then e.ele('bottom',{style:o.bottom}).ele('color',{auto:'1'}) else e.ele('bottom')\n e.ele('diagonal')\n ss.ele('cellStyleXfs',{count:'1'}).ele('xf',{numFmtId:'0',fontId:'0',fillId:'0',borderId:'0'}).ele('alignment',{vertical:'center'})\n cs = ss.ele('cellXfs',{count:@mstyle.length})\n for o in @mstyle\n e = cs.ele('xf',{\n numFmtId: o.numfmt_id||'0',\n fontId:(o.font_id-1),\n fillId:o.fill_id+1,\n borderId:(o.bder_id-1),\n xfId:'0'\n })\n e.att('applyFont','1') if o.font_id isnt 1\n e.att('applyFill','1') if o.fill_id isnt 1\n e.att('applyNumberFormat','1') if o.numfmt_id isnt undefined\n e.att('applyBorder','1') if o.bder_id isnt 1\n if o.align isnt '-' or o.valign isnt '-' or o.wrap isnt '-'\n e.att('applyAlignment','1')\n ea = e.ele('alignment',{textRotation:(if o.rotate is '-' then '0' else o.rotate),horizontal:(if o.align is '-' then 'left' else o.align), vertical:(if o.valign is '-' then 'top' else o.valign)})\n ea.att('wrapText','1') if o.wrap isnt '-'\n ss.ele('cellStyles',{count:'1'}).ele('cellStyle',{name:'Normal',xfId:'0',builtinId:'0'})\n ss.ele('dxfs',{count:'0'})\n ss.ele('tableStyles',{count:'0',defaultTableStyle:'TableStyleMedium9',defaultPivotStyle:'PivotStyleLight16'})\n return ss.end()\n\nclass Workbook\n constructor: (@fpath, @fname) ->\n @id = ''+parseInt(Math.random()*9999999)\n # create temp folder & copy template data\n # init\n @sheets = []\n @ss = new SharedStrings\n @ct = new ContentTypes(@)\n @da = new DocPropsApp(@)\n @wb = new XlWorkbook(@)\n @re = new XlRels(@)\n @st = new Style(@)\n\n createSheet: (name, cols, rows) ->\n sheet = new Sheet(@,name,cols,rows)\n @sheets.push sheet\n return sheet\n\n save: (target, cb) ->\n if (arguments.length == 1 && typeof target == 'function')\n cb = target\n target = @fpath + '/' + @fname\n\n @generate (err, zip) ->\n buffer = undefined\n buffer = zip.generateAsync({ type: 'nodebuffer' }).then((buffer) ->\n if err\n return cb(err)\n require('fs').writeFile target, buffer, cb\n )\n\n # takes a callback function(err, zip) and returns a JSZip object on success\n generate: (cb) =>\n\n zip = new JSZip()\n\n for key of baseXl\n zip.file key, baseXl[key]\n\n # 1 - build [Content_Types].xml\n zip.file('[Content_Types].xml',@ct.toxml())\n # 2 - build docProps/app.xml\n zip.file('docProps/app.xml',@da.toxml())\n # 3 - build xl/workbook.xml\n zip.file('xl/workbook.xml',@wb.toxml())\n # 4 - build xl/sharedStrings.xml\n zip.file('xl/sharedStrings.xml',@ss.toxml())\n # 5 - build xl/_rels/workbook.xml.rels\n zip.file('xl/_rels/workbook.xml.rels',@re.toxml())\n # 6 - build xl/worksheets/sheet(1-N).xml\n for i in [0...@sheets.length]\n zip.file('xl/worksheets/sheet'+(i+1)+'.xml',@sheets[i].toxml())\n # 7 - build xl/styles.xml\n zip.file('xl/styles.xml',@st.toxml())\n cb null, zip\n\n cancel: () ->\n # delete temp folder\n console.error \"workbook.cancel() is deprecated\"\n\nJSDateToExcel = (dt) ->\n dt.valueOf() / 86400000 + 25569\n\nif (module? && module.exports?)\n module.exports =\n createWorkbook: (fpath, fname)->\n return new Workbook(fpath, fname)\n\nif (window?)\n window.excelbuilder =\n createWorkbook: (fpath, fname)->\n return new Workbook(fpath, fname)\n\n# Base content formerly stored in /lib/tmpl but placed in code so as to avoid dependence on file system\nbaseXl =\n '_rels/.rels': ''\n 'docProps/core.xml':'Administrator2006-09-13T11:21:51Z2006-09-13T11:21:55Z'\n 'xl/theme/theme1.xml':''\n 'xl/styles.xml':''" ] } \ No newline at end of file diff --git a/package.json b/package.json index 7e8205e..89a9aa0 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "xlsx", "excel" ], - "version": "0.3.6", + "version": "0.3.7", "repository": { "type": "git", "url": "git://github.com/protobi/msexcel-builder.git" diff --git a/src/msexcel-builder.coffee b/src/msexcel-builder.coffee index 43e474e..2722d7b 100644 --- a/src/msexcel-builder.coffee +++ b/src/msexcel-builder.coffee @@ -61,7 +61,7 @@ class DocPropsApp props.ele('DocSecurity','0') props.ele('ScaleCrop','false') tmp = props.ele('HeadingPairs').ele('vt:vector',{size:2,baseType:'variant'}) - tmp.ele('vt:variant').ele('vt:lpstr','工作表') + tmp.ele('vt:variant').ele('vt:lpstr','Worksheets') tmp.ele('vt:variant').ele('vt:i4',''+@book.sheets.length) tmp = props.ele('TitlesOfParts').ele('vt:vector',{size:@book.sheets.length,baseType:'lpstr'}) for i in [1..@book.sheets.length] @@ -319,7 +319,7 @@ class Style font.iter or= '-' font.sz or= '11' font.color or= '-' - font.name or= '宋体' + font.name or= 'Calibri' font.scheme or='minor' font.family or= '2' k = 'font_'+font.bold+font.iter+font.sz+font.color+font.name+font.scheme+font.family @@ -458,7 +458,7 @@ class Style e.att('applyAlignment','1') ea = e.ele('alignment',{textRotation:(if o.rotate is '-' then '0' else o.rotate),horizontal:(if o.align is '-' then 'left' else o.align), vertical:(if o.valign is '-' then 'top' else o.valign)}) ea.att('wrapText','1') if o.wrap isnt '-' - ss.ele('cellStyles',{count:'1'}).ele('cellStyle',{name:'常规',xfId:'0',builtinId:'0'}) + ss.ele('cellStyles',{count:'1'}).ele('cellStyle',{name:'Normal',xfId:'0',builtinId:'0'}) ss.ele('dxfs',{count:'0'}) ss.ele('tableStyles',{count:'0',defaultTableStyle:'TableStyleMedium9',defaultPivotStyle:'PivotStyleLight16'}) return ss.end()