mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
9295f8236e
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2867 a592a061-630c-0410-9148-cb99ea01b6c8
38 lines
618 B
C++
38 lines
618 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, string const &);
|
|
///
|
|
static void create(string const &, int, MathArray const &);
|
|
///
|
|
static MathAtom & provide(string const &);
|
|
///
|
|
static bool has(string const &);
|
|
///
|
|
static void builtinMacros();
|
|
private:
|
|
///
|
|
typedef std::map<string, MathAtom> table_type;
|
|
//
|
|
static table_type macro_table;
|
|
public:
|
|
///
|
|
static void dump();
|
|
};
|
|
#endif
|