X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_macrotable.h;h=8a6b191e4e1602ab336af568dc7e29555905c601;hb=7338f3b980d4dc5793ff80be814b7a74e1c72274;hp=3d3241640f12d751a0b0f4be1d084d4cba4d4dbf;hpb=d1182f17daa1a164d9527ccbe6500840d7ac6bc8;p=lyx.git diff --git a/src/mathed/math_macrotable.h b/src/mathed/math_macrotable.h index 3d3241640f..8a6b191e4e 100644 --- a/src/mathed/math_macrotable.h +++ b/src/mathed/math_macrotable.h @@ -1,40 +1,37 @@ // -*- C++ -*- +/** + * \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" - -#ifdef __GNUG__ -#pragma interface -#endif +#include "math_atom.h" -class MathMacro; -class MathMacroTemplate; - -/// -struct MathMacroTable { +class MathMacroTable { public: /// - static void updateTemplate(MathMacroTemplate *); - /// - static void insertTemplate(MathMacroTemplate *); + static void create(MathAtom const &); /// - static MathMacroTemplate & provideTemplate(string const &); + static MathAtom & provide(string const & name); /// - static bool hasTemplate(string const &); + static bool has(string const & name); /// - static MathMacro * cloneTemplate(string const &); + static void dump(); private: /// - static void builtinMacros(); - /// - typedef std::map table_type; + typedef std::map table_type; // static table_type macro_table; -public: - /// - static void dump(); }; + #endif