This commit is contained in:
Richard Kimberly Heck 2018-10-04 17:56:14 -04:00
parent dc8dce75ed
commit 17b7eab0cc
4 changed files with 5 additions and 13 deletions

View File

@ -336,6 +336,9 @@ Menuset
Menu "context-edit"
spellingsuggestions
Separator
OptItem "Edit Externally..." "inset-edit"
OptItem "End Editing Externally..." "inset-end-edit"
Separator
Item "Cut" "cut"
Item "Copy" "copy"
Item "Paste" "paste"
@ -651,9 +654,6 @@ Menuset
Menu "context-ert"
# repeat 1 is added as a work-around to not indicate this action as toggable
Item "Wrap by Preview|y" "command-sequence repeat 1;inset-toggle;char-forward;char-backward;char-forward-select;preview-insert;char-backward;char-backward;inset-toggle"
Separator
OptItem "Edit Externally...|x" "inset-edit"
OptItem "End Editing Externally...|x" "inset-end-edit"
End
#

View File

@ -168,13 +168,13 @@ protected:
Inset * editXY(Cursor & cur, int x, int y);
///
mutable CollapseStatus status_;
///
unique_ptr<support::TempFile> tempfile_;
private:
///
Dimension dimensionCollapsed(BufferView const & bv) const;
///
docstring labelstring_;
///
unique_ptr<support::TempFile> tempfile_;
// These variables depend of the view in which the inset is displayed
struct View

View File

@ -134,12 +134,6 @@ bool InsetERT::getStatus(Cursor & cur, FuncRequest const & cmd,
FuncStatus & status) const
{
switch (cmd.action()) {
case LFUN_INSET_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;

View File

@ -71,8 +71,6 @@ private:
bool allowSpellCheck() const { return false; }
///
bool insetAllowed(InsetCode code) const { return code == QUOTE_CODE; }
///
unique_ptr<support::TempFile> tempfile_;
};