Attempting to do this crashes in master, and is not supported anyway.
case LFUN_INSET_END_EDIT:
status.setEnabled(tempfile_ != 0);
return true;
case LFUN_INSET_END_EDIT:
status.setEnabled(tempfile_ != 0);
return true;
+ case LFUN_INSET_INSERT:
+ status.setEnabled(false);
+ return true;
case LFUN_INSET_MODIFY:
if (cmd.getArg(0) == "ert") {
status.setEnabled(true);
case LFUN_INSET_MODIFY:
if (cmd.getArg(0) == "ert") {
status.setEnabled(true);
///
bool allowSpellCheck() const { return false; }
///
///
bool allowSpellCheck() const { return false; }
///
+ bool insetAllowed(InsetCode /* code */) const { return false; }
+ ///
unique_ptr<support::TempFile> tempfile_;
};
unique_ptr<support::TempFile> tempfile_;
};