]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_macrotable.h
Add In nsetOld * argument to updateInset to rebreak the correct par.
[lyx.git] / src / mathed / math_macrotable.h
index bb4e72598491b754c4a8b5df9dfb85e3ff55abca..8a6b191e4e1602ab336af568dc7e29555905c601 100644 (file)
@@ -1,42 +1,37 @@
 // -*- C++ -*-
+/**
+ * \file math_macrotable.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #ifndef MATH_MACROTABLE_H
 #define MATH_MACROTABLE_H
 
 #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 updateTemplate(MathMacroTemplate *);
-       ///
-       static void insertTemplate(MathMacroTemplate *);
-       ///
-       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