X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_macrotable.h;h=8a6b191e4e1602ab336af568dc7e29555905c601;hb=7338f3b980d4dc5793ff80be814b7a74e1c72274;hp=5da3a0940c2d10e3655004e2f3f846035c101e65;hpb=a27892b6c8fadfd75f31fb6876cc68a025e02dab;p=lyx.git diff --git a/src/mathed/math_macrotable.h b/src/mathed/math_macrotable.h index 5da3a0940c..8a6b191e4e 100644 --- a/src/mathed/math_macrotable.h +++ b/src/mathed/math_macrotable.h @@ -1,40 +1,37 @@ // -*- C++ -*- -#ifndef MATHMACROTABLE -#define MATHMACROTABLE +/** + * \file math_macrotable.h + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. + * + * \author André Pönitz + * + * Full author contact details are available in file CREDITS. + */ + +#ifndef MATH_MACROTABLE_H +#define MATH_MACROTABLE_H #include #include "LString.h" +#include "math_atom.h" -#include -#include - -#ifdef __GNUG__ -#pragma interface -#endif - -class MathMacroTemplate; -class MathMacro; -/// -class MathMacroTable : boost::noncopyable { +class MathMacroTable { public: /// - void addTemplate(boost::shared_ptr const &); + static void create(MathAtom const &); /// - MathMacro * createMacro(string const &) const; + static MathAtom & provide(string const & name); /// - boost::shared_ptr const - getTemplate(string const &) const; + static bool has(string const & name); /// - void builtinMacros(); - /// - static MathMacroTable mathMTable; - /// - static bool built; + static void dump(); private: /// - typedef std::map > table_type; - /// - table_type macro_table; + typedef std::map table_type; + // + static table_type macro_table; }; + #endif