]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_macrotable.h
fix pullArg when pressing <Delete> at the end of an cell
[lyx.git] / src / mathed / math_macrotable.h
index c432f5c37d35085a3f8cbc754da76f692ae71a2a..3d3241640f12d751a0b0f4be1d084d4cba4d4dbf 100644 (file)
@@ -1,6 +1,6 @@
 // -*- C++ -*-
-#ifndef MATHMACROTABLE
-#define MATHMACROTABLE
+#ifndef MATH_MACROTABLE_H
+#define MATH_MACROTABLE_H
 
 #include <map>
 #include "LString.h"
@@ -17,7 +17,9 @@ class MathMacroTemplate;
 struct MathMacroTable {
 public:
        ///
-       static MathMacroTemplate & provideTemplate(string const &, int);
+       static void updateTemplate(MathMacroTemplate *);
+       ///
+       static void insertTemplate(MathMacroTemplate *);
        ///
        static MathMacroTemplate & provideTemplate(string const &);
        ///
@@ -28,11 +30,10 @@ private:
        ///
        static void builtinMacros();
        ///
-       static bool built;
-       ///
        typedef std::map<string, MathMacroTemplate *> table_type;
        //
        static table_type macro_table;
+public:
        ///
        static void dump();
 };