]> git.lyx.org Git - lyx.git/blob - src/mathed/math_macrotable.h
remove unneeded member
[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 class MathArray;
14
15 ///
16 struct MathMacroTable {
17 public:
18         ///
19         static void create(string const &, int);
20         ///
21         static void create(string const &, int, MathArray const &, MathArray const &);
22         ///
23         static MathAtom & provide(string const &);
24         ///
25         static bool has(string const &);
26         ///
27         static void builtinMacros();
28         ///
29         static void dump();
30 private:
31         /// create internal macros (like \longrightarrow...)
32         static void define(string const & display);
33
34         ///
35         typedef std::map<string, MathAtom> table_type;
36         //
37         static table_type macro_table;
38 };
39 #endif