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:
Pavel Sanda 2010-03-28 20:12:24 +00:00
parent d10da20777
commit 71cd86c649
2 changed files with 16 additions and 0 deletions

View File

@ -622,4 +622,17 @@ Menuset
Item "Select Section|S" "section-select"
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

View File

@ -37,6 +37,9 @@ public:
static CollapseStatus string2params(std::string const &);
///
static std::string params2string(CollapseStatus);
docstring contextMenu(BufferView const &, int, int) const
{ return from_ascii("context-ert"); }
private:
///
InsetCode lyxCode() const { return ERT_CODE; }