]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathMacroTemplate.h
A little cleanup of the layout files.
[lyx.git] / src / mathed / MathMacroTemplate.h
index ec87fe6042f2dfcd3ecd5591a5d8cee28ba62c0e..dea1acf28ed406992056c2ed3e2cbc236ebda39b 100644 (file)
@@ -5,7 +5,7 @@
  * Licence details can be found in the file COPYING.
  *
  * \author Alejandro Aguilar Sierra
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -36,7 +36,7 @@ public:
        ///
        explicit MathMacroTemplate(const docstring & str);
        ///
-       EDITABLE editable() const { return HIGHLY_EDITABLE; }
+       bool editable() const { return true; }
        ///
        void edit(Cursor & cur, bool front, EntryDirection entry_from);
        ///
@@ -98,6 +98,8 @@ public:
        InsetCode lyxCode() const { return MATHMACRO_CODE; }
        ///
        void infoize(odocstream & os) const;
+       ///
+       docstring contextMenu(BufferView const &, int, int) const;
 
 protected:
        ///
@@ -132,7 +134,7 @@ private:
        ///
        idx_type displayIdx() const { return optionals_ + 2; }
        ///
-       void updateLook(bool editing = false) const;
+       void updateLook() const;
        /// look through the macro for #n arguments
        int maxArgumentInDefinition() const;
        /// add missing #n arguments up to \c maxArg