'Extract named styles'

def parse_named_styles(self):

    node = self.root.find(('{%s}cellStyleXfs' % SHEET_MAIN_NS))
    styles = self._parse_xfs(node)
    names = self._parse_style_names()
    for style in names.values():
        _id = styles[style.xfId]
        style.border = self.border_list[_id.borderId]
        style.fill = self.fill_list[_id.fillId]
        style.font = self.font_list[_id.fontId]
        if _id.alignmentId:
            style.alignment = self.alignments[_id.alignmentId]
        if _id.protectionId:
            style.protection = self.protections[_id.protectionId]
    self.named_styles = names
