]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_macrotable.h
fix #1073
[lyx.git] / src / mathed / math_macrotable.h
index 8c8ff4618abfd44b2a18e56773d6477032c664f4..efd3aabf137d7b3c1c0e60d502d48ee16bf0a6a1 100644 (file)
@@ -4,37 +4,26 @@
 
 #include <map>
 #include "LString.h"
-
-#ifdef __GNUG__
-#pragma interface
-#endif
+#include "math_atom.h"
 
 
-class MathMacro;
-class MathMacroTemplate;
 
 ///
-struct MathMacroTable {
+class MathMacroTable {
 public:
        ///
-       static void insertTemplate(MathMacroTemplate const *);
-       ///
-       static MathMacroTemplate & provideTemplate(string const &);
+       static void create(MathAtom const &);
        ///
-       static bool hasTemplate(string const &);
+       static MathAtom & provide(string const & name);
        ///
-       static MathMacro * cloneTemplate(string const &);
+       static bool has(string const & name);
        ///
-       static void createTemplate(string const &, int, string const &);
-       ///
-       static void builtinMacros();
+       static void dump();
 private:
        ///
-       typedef std::map<string, MathMacroTemplate *> table_type;
+       typedef std::map<string, MathAtom> table_type;
        //
        static table_type macro_table;
-public:
-       ///
-       static void dump();
 };
+
 #endif