]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_macrotable.h
preview as preview can...
[lyx.git] / src / mathed / math_macrotable.h
index bb4e72598491b754c4a8b5df9dfb85e3ff55abca..ab377190581e041ca6d1fa1f099721c6a36340d0 100644 (file)
@@ -4,39 +4,36 @@
 
 #include <map>
 #include "LString.h"
+#include "math_atom.h"
 
 #ifdef __GNUG__
 #pragma interface
 #endif
 
-
-class MathMacro;
-class MathMacroTemplate;
+class MathArray;
 
 ///
 struct MathMacroTable {
 public:
        ///
-       static void updateTemplate(MathMacroTemplate *);
-       ///
-       static void insertTemplate(MathMacroTemplate *);
-       ///
-       static MathMacroTemplate & provideTemplate(string const &);
+       static void create(string const &, int);
        ///
-       static bool hasTemplate(string const &);
+       static void create(string const &, int, MathArray const &, MathArray const &);
        ///
-       static MathMacro * cloneTemplate(string const &);
+       static MathAtom & provide(string const &);
        ///
-       static void createTemplate(string const &, int, string const &);
+       static bool has(string const &);
        ///
        static void builtinMacros();
+       ///
+       static void dump();
 private:
+       /// create internal macros (like \longrightarrow...)
+       static void define(string const & display);
+
        ///
-       typedef std::map<string, MathMacroTemplate *> table_type;
+       typedef std::map<string, MathAtom> table_type;
        //
        static table_type macro_table;
-public:
-       ///
-       static void dump();
 };
 #endif