2003-08-19 13:00:56 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2006-09-17 09:14:18 +00:00
|
|
|
* \file MathFactory.h
|
2003-08-19 13:00:56 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
2008-11-14 15:58:50 +00:00
|
|
|
* \author André Pönitz
|
2003-08-19 13:00:56 +00:00
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
2001-08-13 14:19:16 +00:00
|
|
|
#ifndef MATH_FACTORY_H
|
|
|
|
#define MATH_FACTORY_H
|
|
|
|
|
2008-02-21 19:42:34 +00:00
|
|
|
#include "MathParser.h"
|
|
|
|
|
2007-11-27 20:51:20 +00:00
|
|
|
#include "support/strfwd.h"
|
2003-10-06 15:43:21 +00:00
|
|
|
|
2008-02-27 23:11:50 +00:00
|
|
|
#include <map>
|
2008-02-21 19:42:34 +00:00
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
namespace lyx {
|
|
|
|
|
2003-03-04 16:39:13 +00:00
|
|
|
class MathAtom;
|
2007-04-26 16:05:57 +00:00
|
|
|
class MathData;
|
2001-08-13 14:19:16 +00:00
|
|
|
|
2004-04-06 19:25:39 +00:00
|
|
|
|
2009-11-08 11:45:46 +00:00
|
|
|
MathAtom createInsetMath(docstring const &, Buffer * buf);
|
|
|
|
MathAtom createInsetMath(char const * const, Buffer * buf);
|
2001-08-13 14:19:16 +00:00
|
|
|
|
2003-03-04 16:39:13 +00:00
|
|
|
/** Fills ar with the contents of str.
|
|
|
|
* str is created by the frontend dialog's and returned to the LyX core.
|
|
|
|
* The function returns true if successful.
|
|
|
|
*/
|
2007-04-26 16:05:57 +00:00
|
|
|
bool createInsetMath_fromDialogStr(docstring const &, MathData &);
|
2003-03-04 16:39:13 +00:00
|
|
|
|
2009-04-06 22:12:22 +00:00
|
|
|
/** Tells whether the argument is an ascii character or is marked as
|
|
|
|
* mathalpha in the unicodesymbols file.
|
|
|
|
*/
|
|
|
|
bool isAsciiOrMathAlpha(char_type);
|
|
|
|
|
2008-02-27 23:11:50 +00:00
|
|
|
typedef std::map<docstring, latexkeys> MathWordList;
|
2008-02-23 18:11:35 +00:00
|
|
|
MathWordList const & mathedWordList();
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
2001-08-13 14:19:16 +00:00
|
|
|
#endif
|