]> git.lyx.org Git - features.git/commitdiff
Add math context menu.
authorPavel Sanda <sanda@lyx.org>
Sun, 9 Mar 2008 15:07:27 +0000 (15:07 +0000)
committerPavel Sanda <sanda@lyx.org>
Sun, 9 Mar 2008 15:07:27 +0000 (15:07 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23591 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ui/stdmenus.inc
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathHull.h

index c319ebef2620ff5759b533c88f475a4849b88f0d..4174c7079030dca5a35cdf90371dc20a79c43155 100644 (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
 #
index b8607a89f2b3fa5656852ce2f299579fa1ff5a6e..63065c2fb955fdd421fdacd6384d8086ed95239a 100644 (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
index 1a0c49d05640fd8de4fb60570e5815cc3b445240..927ef15db237945b058ada190ca0a82379cec7f7 100644 (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 &);