def read_worksheet(xml_source, parent, preset_title, string_table, style_table, workbook_name=None, sheet_codename=None, keep_vba=False): """Read an xml worksheet""" if workbook_name and sheet_codename: ws = IterableWorksheet(parent, preset_title, workbook_name, sheet_codename, xml_source, string_table) else: ws = Worksheet(parent, preset_title) fast_parse(ws, xml_source, string_table, style_table) if keep_vba: ws.xml_source = xml_source return ws
def read_worksheet(xml_source, parent, preset_title, string_table, style_table, color_index=None, worksheet_path=None, keep_vba=False): """Read an xml worksheet""" if worksheet_path: from openpyxl.reader.iter_worksheet import IterableWorksheet ws = IterableWorksheet(parent, preset_title, worksheet_path, xml_source, string_table, style_table) else: ws = Worksheet(parent, preset_title) fast_parse(ws, xml_source, string_table, style_table, color_index) if keep_vba: ws.xml_source = xml_source return ws
def read_worksheet(xml_source, parent, preset_title, string_table, style_table, color_index=None, sheet_codename=None, keep_vba=False): """Read an xml worksheet""" if sheet_codename: from openpyxl.reader.iter_worksheet import IterableWorksheet ws = IterableWorksheet(parent, preset_title, sheet_codename, xml_source, string_table, style_table) else: ws = Worksheet(parent, preset_title) fast_parse(ws, xml_source, string_table, style_table, color_index) if keep_vba: ws.xml_source = xml_source return ws