mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Add Preview to ERT context menu
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33895 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d10da20777
commit
71cd86c649
@ -622,4 +622,17 @@ Menuset
|
|||||||
Item "Select Section|S" "section-select"
|
Item "Select Section|S" "section-select"
|
||||||
End
|
End
|
||||||
|
|
||||||
|
#
|
||||||
|
# InsetERT context menu
|
||||||
|
#
|
||||||
|
Menu "context-ert"
|
||||||
|
OptItem "Open Inset|O" "inset-toggle open"
|
||||||
|
OptItem "Close Inset|C" "inset-toggle close"
|
||||||
|
Separator
|
||||||
|
Item "Wrap by Preview|P" "command-sequence inset-begin;char-backward;char-forward-select;preview-insert"
|
||||||
|
Separator
|
||||||
|
Item "Dissolve Inset|D" "inset-dissolve"
|
||||||
|
OptItem "Settings...|S" "inset-settings"
|
||||||
|
End
|
||||||
|
|
||||||
End
|
End
|
||||||
|
@ -37,6 +37,9 @@ public:
|
|||||||
static CollapseStatus string2params(std::string const &);
|
static CollapseStatus string2params(std::string const &);
|
||||||
///
|
///
|
||||||
static std::string params2string(CollapseStatus);
|
static std::string params2string(CollapseStatus);
|
||||||
|
|
||||||
|
docstring contextMenu(BufferView const &, int, int) const
|
||||||
|
{ return from_ascii("context-ert"); }
|
||||||
private:
|
private:
|
||||||
///
|
///
|
||||||
InsetCode lyxCode() const { return ERT_CODE; }
|
InsetCode lyxCode() const { return ERT_CODE; }
|
||||||
|
Loading…
Reference in New Issue
Block a user