Add math context menu.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23591 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2008-03-09 15:07:27 +00:00
parent 7a924b3771
commit 5e79b2ca4f
3 changed files with 17 additions and 0 deletions

View File

@ -531,6 +531,14 @@ Menuset
Item "About LyX|X" "dialog-show aboutlyx"
End
#
# InsetMath context menu
#
Menu "context-math"
Item "Equation label|L" "label-insert"
End
#
# InsetRef context menu
#

View File

@ -1606,4 +1606,10 @@ void InsetMathHull::textString(odocstream & os) const
}
docstring InsetMathHull::contextMenu(BufferView const &, int, int) const
{
return from_ascii("context-math");
}
} // namespace lyx

View File

@ -128,6 +128,9 @@ public:
/// Force inset into LTR environment if surroundings are RTL?
virtual bool forceLTR() const { return true; }
///
virtual docstring contextMenu(BufferView const &, int, int) const;
protected:
InsetMathHull(InsetMathHull const &);