A bit more re-organization.
[lyx.git] / src / mathed / MathFactory.h
blob9837ca75e2e2284be9aab3e09911cd08cb82f3aa
1 // -*- C++ -*-
2 /**
3 * \file MathFactory.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author André Pönitz
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_FACTORY_H
13 #define MATH_FACTORY_H
15 #include "MathParser.h"
17 #include "support/strfwd.h"
19 #include <map>
21 namespace lyx {
23 class MathAtom;
24 class MathData;
27 MathAtom createInsetMath(docstring const &, Buffer * buf);
28 MathAtom createInsetMath(char const * const, Buffer * buf);
30 /** Fills ar with the contents of str.
31 * str is created by the frontend dialog's and returned to the LyX core.
32 * The function returns true if successful.
34 bool createInsetMath_fromDialogStr(docstring const &, MathData &);
36 /** Tells whether the argument is an ascii character or is marked as
37 * mathalpha in the unicodesymbols file.
39 bool isAsciiOrMathAlpha(char_type);
41 typedef std::map<docstring, latexkeys> MathWordList;
42 MathWordList const & mathedWordList();
44 } // namespace lyx
46 #endif