]> git.lyx.org Git - lyx.git/blob - src/mathed/math_macrotable.h
small up/down tweaking
[lyx.git] / src / mathed / math_macrotable.h
1 // -*- C++ -*-
2 #ifndef MATH_MACROTABLE_H
3 #define MATH_MACROTABLE_H
4
5 #include <map>
6 #include "LString.h"
7 #include "math_atom.h"
8
9 #ifdef __GNUG__
10 #pragma interface
11 #endif
12
13
14 ///
15 class MathMacroTable {
16 public:
17         ///
18         static void create(MathAtom const &);
19         ///
20         static MathAtom & provide(string const & name);
21         ///
22         static bool has(string const & name);
23         ///
24         static void dump();
25 private:
26         ///
27         typedef std::map<string, MathAtom> table_type;
28         //
29         static table_type macro_table;
30 };
31
32 #endif