]> git.lyx.org Git - lyx.git/blob - src/mathed/math_macrotable.h
mathed64.diff
[lyx.git] / src / mathed / math_macrotable.h
1 // -*- C++ -*-
2 #ifndef MATHMACROTABLE
3 #define MATHMACROTABLE
4
5 #include <map>
6 #include "LString.h"
7
8 #ifdef __GNUG__
9 #pragma interface
10 #endif
11
12
13 class MathMacro;
14 class MathMacroTemplate;
15
16 ///
17 struct MathMacroTable {
18 public:
19         ///
20         static MathMacroTemplate & provideTemplate(string const &, int);
21         ///
22         static MathMacroTemplate & provideTemplate(string const &);
23         ///
24         static bool hasTemplate(string const &);
25         ///
26         static MathMacro * cloneTemplate(string const &);
27 private:
28         ///
29         static void builtinMacros();
30         ///
31         static bool built;
32         ///
33         typedef std::map<string, MathMacroTemplate *> table_type;
34         //
35         static table_type macro_table;
36         ///
37         static void dump();
38 };
39 #endif