X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_macrotable.h;h=ab377190581e041ca6d1fa1f099721c6a36340d0;hb=4bc59f21015e9151841eea3733b97d25cd616fdc;hp=cbf848659ac907754a476e87878be969bfe64a07;hpb=aae45c2088d0c6530f589b8c6d0d3ecca8240d35;p=lyx.git diff --git a/src/mathed/math_macrotable.h b/src/mathed/math_macrotable.h index cbf848659a..ab37719058 100644 --- a/src/mathed/math_macrotable.h +++ b/src/mathed/math_macrotable.h @@ -1,40 +1,39 @@ // -*- C++ -*- -#ifndef MATHMACROTABLE -#define MATHMACROTABLE +#ifndef MATH_MACROTABLE_H +#define MATH_MACROTABLE_H #include #include "LString.h" - -#include -#include +#include "math_atom.h" #ifdef __GNUG__ #pragma interface #endif -class MathMacroTemplate; -class MathMacro; +class MathArray; /// -class MathMacroTable : noncopyable { +struct MathMacroTable { public: /// - void addTemplate(boost::shared_ptr const &); + static void create(string const &, int); /// - MathMacro * createMacro(string const &) const; + static void create(string const &, int, MathArray const &, MathArray const &); /// - boost::shared_ptr const - getTemplate(string const &) const; + static MathAtom & provide(string const &); /// - void builtinMacros(); + static bool has(string const &); /// - static MathMacroTable mathMTable; + static void builtinMacros(); /// - static bool built; + static void dump(); private: + /// create internal macros (like \longrightarrow...) + static void define(string const & display); + /// - typedef std::map > table_type; - /// - table_type macro_table; + typedef std::map table_type; + // + static table_type macro_table; }; #endif