def embed(self):
        """Set the state of the checkbox to show that it
           is set by the regexp text."""
        if self.preEmbedState == None:
            self.preEmbedState = self.checkBox.isChecked()
            self.checkBox.setChecked(True)
            self.checkBox.setDisabled(True)
        return