X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_macrotable.h;h=ab377190581e041ca6d1fa1f099721c6a36340d0;hb=4bc59f21015e9151841eea3733b97d25cd616fdc;hp=3d3241640f12d751a0b0f4be1d084d4cba4d4dbf;hpb=d1182f17daa1a164d9527ccbe6500840d7ac6bc8;p=lyx.git diff --git a/src/mathed/math_macrotable.h b/src/mathed/math_macrotable.h index 3d3241640f..ab37719058 100644 --- a/src/mathed/math_macrotable.h +++ b/src/mathed/math_macrotable.h @@ -4,37 +4,36 @@ #include #include "LString.h" +#include "math_atom.h" #ifdef __GNUG__ #pragma interface #endif - -class MathMacro; -class MathMacroTemplate; +class MathArray; /// struct MathMacroTable { public: /// - static void updateTemplate(MathMacroTemplate *); - /// - static void insertTemplate(MathMacroTemplate *); + static void create(string const &, int); /// - static MathMacroTemplate & provideTemplate(string const &); + static void create(string const &, int, MathArray const &, MathArray const &); /// - static bool hasTemplate(string const &); + static MathAtom & provide(string const &); /// - static MathMacro * cloneTemplate(string const &); -private: + static bool has(string const &); /// static void builtinMacros(); /// - typedef std::map table_type; + static void dump(); +private: + /// create internal macros (like \longrightarrow...) + static void define(string const & display); + + /// + typedef std::map table_type; // static table_type macro_table; -public: - /// - static void dump(); }; #endif