]> git.lyx.org Git - lyx.git/blob - src/mathed/math_macrotable.h
the DocIterator stuff
[lyx.git] / src / mathed / math_macrotable.h
1 // -*- C++ -*-
2 /**
3  * \file math_macrotable.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_MACROTABLE_H
13 #define MATH_MACROTABLE_H
14
15 #include "math_atom.h"
16
17 #include <map>
18 #include <string>
19
20
21 class MathMacroTable {
22 public:
23         ///
24         static void create(MathAtom const &);
25         ///
26         static MathAtom & provide(std::string const & name);
27         ///
28         static bool has(std::string const & name);
29         ///
30         static void dump();
31 private:
32         ///
33         typedef std::map<std::string, MathAtom> table_type;
34         //
35         static table_type macro_table;
36 };
37
38 #endif