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"
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
#
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
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;
bool allowSpellCheck() const { return false; }
///
bool insetAllowed(InsetCode code) const { return code == QUOTE_CODE; }
- ///
- unique_ptr<support::TempFile> tempfile_;
};