1) boundsheet field order fixed

2) `WorkSheet.Visibility` implemented (and typed constants)
3) `WorkSheet.Selected` implemented - most of cases require to parse _current_ sheet, not the first one
4) `WorkSheet.rightToLeft` property for future use (not implemented cause no RtL files present)
This commit is contained in:
Ivan
2019-03-17 20:55:41 +03:00
parent 539786826c
commit 10ff2752d9
2 changed files with 27 additions and 8 deletions

View File

@@ -246,7 +246,7 @@ func (w *WorkBook) get_string(buf io.ReadSeeker, size uint16) (res string, err e
func (w *WorkBook) addSheet(sheet *boundsheet, buf io.ReadSeeker) {
name, _ := w.get_string(buf, uint16(sheet.Name))
w.sheets = append(w.sheets, &WorkSheet{bs: sheet, Name: name, wb: w})
w.sheets = append(w.sheets, &WorkSheet{bs: sheet, Name: name, wb: w, Visibility: TWorkSheetVisibility(sheet.Visible)})
}
//reading a sheet from the compress file to memory, you should call this before you try to get anything from sheet