lyx_mirror/src/mathed/math_macrotable.h
André Pönitz 539d0d1664 get recently broken \mathcircumflex working again (hackish, proper fix in 1.3)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3889 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-03 10:45:32 +00:00

40 lines
713 B
C++

// -*- C++ -*-
#ifndef MATH_MACROTABLE_H
#define MATH_MACROTABLE_H
#include <map>
#include "LString.h"
#include "math_atom.h"
#ifdef __GNUG__
#pragma interface
#endif
class MathArray;
///
struct MathMacroTable {
public:
///
static void create(string const &, int);
///
static void create(string const &, int, MathArray const &, MathArray const &);
///
static MathAtom & provide(string const &);
///
static bool has(string const &);
///
static void builtinMacros();
///
static void dump();
private:
/// create internal macros (like \longrightarrow...)
static void define(string const & display);
///
typedef std::map<string, MathAtom> table_type;
//
static table_type macro_table;
};
#endif