'Check if the named override is allowed by the tblLook element'

def override_allowed(self, name):

    if (name.endswith(u'Cell') or (name == u'wholeTable')):
        return True
    look = self.table_style.look
    if (((look & 32) and (name == u'firstRow')) or ((look & 64) and (name == u'lastRow')) or ((look & 128) and (name == u'firstCol')) or ((look & 256) and (name == u'lastCol'))):
        return True
    if name.startswith(u'band'):
        if name.endswith(u'Horz'):
            return (not bool((look & 512)))
        if name.endswith(u'Vert'):
            return (not bool((look & 1024)))
    return False
