'Rehighlight the whole document to rebuild outline explorer data
and import statements data from scratch'

def rehighlight(self):

    if (self.highlighter is not None):
        self.highlighter.rehighlight()
    if self.highlight_current_cell_enabled:
        self.highlight_current_cell()
    else:
        self.unhighlight_current_cell()
    if self.highlight_current_line_enabled:
        self.highlight_current_line()
    else:
        self.unhighlight_current_line()
