]> git.lyx.org Git - lyx.git/blob - src/mathed/math_macrotable.h
more mathed cleanup
[lyx.git] / src / mathed / math_macrotable.h
1 // -*- C++ -*-
2 #ifndef MATHMACROTABLE
3 #define MATHMACROTABLE
4
5 #include <vector>
6 #include "LString.h"
7
8 class MathMacroTemplate;
9 class MathMacro;
10
11 ///
12 class MathMacroTable {
13 public:
14     ///
15     void addTemplate(MathMacroTemplate *);
16     ///
17     MathMacro * getMacro(string const &) const;
18     ///
19     MathMacroTemplate * getTemplate(string const &) const;
20     ///
21     void builtinMacros();
22     ///
23     static MathMacroTable mathMTable;
24     ///
25     static bool built;
26 private:
27     ///
28     typedef std::vector<MathMacroTemplate *> table_type;
29     ///
30     typedef table_type::size_type size_type;
31     ///
32     table_type macro_table;
33 };
34 #endif