forked from sheetjs/sheetjs
fix worksheet protection options
This commit is contained in:
parent
51b4751b95
commit
ef9f3f9ca5
@ -945,9 +945,9 @@ function write_ws_xlml_wsopts(ws/*:Worksheet*/, opts, idx/*:number*/, wb/*:Workb
|
||||
if(ws['!protect'].selectLockedCells != null && !ws['!protect'].selectLockedCells) o.push(writetag("EnableSelection", "NoSelection"));
|
||||
else if(ws['!protect'].selectUnlockedCells != null && !ws['!protect'].selectUnlockedCells) o.push(writetag("EnableSelection", "UnlockedCells"));
|
||||
[
|
||||
[ "formatColumns", "AllowFormatCells" ],
|
||||
[ "formatRows", "AllowSizeCols" ],
|
||||
[ "formatCells", "AllowSizeRows" ],
|
||||
[ "formatCells", "AllowFormatCells" ],
|
||||
[ "formatColumns", "AllowSizeCols" ],
|
||||
[ "formatRows", "AllowSizeRows" ],
|
||||
[ "insertColumns", "AllowInsertCols" ],
|
||||
[ "insertRows", "AllowInsertRows" ],
|
||||
[ "insertHyperlinks", "AllowInsertHyperlinks" ],
|
||||
|
@ -14345,9 +14345,9 @@ function write_ws_xlml_wsopts(ws/*:Worksheet*/, opts, idx/*:number*/, wb/*:Workb
|
||||
if(ws['!protect'].selectLockedCells != null && !ws['!protect'].selectLockedCells) o.push(writetag("EnableSelection", "NoSelection"));
|
||||
else if(ws['!protect'].selectUnlockedCells != null && !ws['!protect'].selectUnlockedCells) o.push(writetag("EnableSelection", "UnlockedCells"));
|
||||
[
|
||||
[ "formatColumns", "AllowFormatCells" ],
|
||||
[ "formatRows", "AllowSizeCols" ],
|
||||
[ "formatCells", "AllowSizeRows" ],
|
||||
[ "formatCells", "AllowFormatCells" ],
|
||||
[ "formatColumns", "AllowSizeCols" ],
|
||||
[ "formatRows", "AllowSizeRows" ],
|
||||
[ "insertColumns", "AllowInsertCols" ],
|
||||
[ "insertRows", "AllowInsertRows" ],
|
||||
[ "insertHyperlinks", "AllowInsertHyperlinks" ],
|
||||
|
6
xlsx.js
6
xlsx.js
@ -14250,9 +14250,9 @@ function write_ws_xlml_wsopts(ws, opts, idx, wb) {
|
||||
if(ws['!protect'].selectLockedCells != null && !ws['!protect'].selectLockedCells) o.push(writetag("EnableSelection", "NoSelection"));
|
||||
else if(ws['!protect'].selectUnlockedCells != null && !ws['!protect'].selectUnlockedCells) o.push(writetag("EnableSelection", "UnlockedCells"));
|
||||
[
|
||||
[ "formatColumns", "AllowFormatCells" ],
|
||||
[ "formatRows", "AllowSizeCols" ],
|
||||
[ "formatCells", "AllowSizeRows" ],
|
||||
[ "formatCells", "AllowFormatCells" ],
|
||||
[ "formatColumns", "AllowSizeCols" ],
|
||||
[ "formatRows", "AllowSizeRows" ],
|
||||
[ "insertColumns", "AllowInsertCols" ],
|
||||
[ "insertRows", "AllowInsertRows" ],
|
||||
[ "insertHyperlinks", "AllowInsertHyperlinks" ],
|
||||
|
Loading…
Reference in New Issue
Block a user