mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix up e5fc7327
.
This commit is contained in:
parent
dc8dce75ed
commit
17b7eab0cc
@ -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
|
||||
|
||||
#
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -71,8 +71,6 @@ private:
|
||||
bool allowSpellCheck() const { return false; }
|
||||
///
|
||||
bool insetAllowed(InsetCode code) const { return code == QUOTE_CODE; }
|
||||
///
|
||||
unique_ptr<support::TempFile> tempfile_;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user