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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user