mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 12:26:59 +00:00
d7525e9740
inset to the mcaro table git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2437 a592a061-630c-0410-9148-cb99ea01b6c8
42 lines
722 B
C++
42 lines
722 B
C++
// -*- C++ -*-
|
|
#ifndef MATH_MACROTABLE_H
|
|
#define MATH_MACROTABLE_H
|
|
|
|
#include <map>
|
|
#include "LString.h"
|
|
#include "math_macrotemplate.h"
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
|
|
class MathMacro;
|
|
|
|
|
|
///
|
|
struct MathMacroTable {
|
|
public:
|
|
///
|
|
static void insertTemplate(MathMacroTemplate const &);
|
|
///
|
|
static MathMacroTemplate & provideTemplate(string const &);
|
|
///
|
|
static bool hasTemplate(string const &);
|
|
///
|
|
static MathMacro * cloneTemplate(string const &);
|
|
///
|
|
static void createTemplate(string const &, int, string const &);
|
|
///
|
|
static void builtinMacros();
|
|
private:
|
|
///
|
|
typedef std::map<string, MathMacroTemplate> table_type;
|
|
//
|
|
static table_type macro_table;
|
|
public:
|
|
///
|
|
static void dump();
|
|
};
|
|
#endif
|