lyx_mirror/src/mathed/math_macrotable.h
André Pönitz 2e4ad73024 work around static initialization problem
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2367 a592a061-630c-0410-9148-cb99ea01b6c8
2001-07-27 12:32:29 +00:00

43 lines
765 B
C++

// -*- C++ -*-
#ifndef MATH_MACROTABLE_H
#define MATH_MACROTABLE_H
#include <map>
#include "LString.h"
#ifdef __GNUG__
#pragma interface
#endif
class MathMacro;
class MathMacroTemplate;
///
struct MathMacroTable {
public:
///
static void updateTemplate(MathMacroTemplate *);
///
static void insertTemplate(MathMacroTemplate *);
///
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