X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FMathFactory.h;h=9837ca75e2e2284be9aab3e09911cd08cb82f3aa;hb=02e82157ec583c3900e359de86be79fac6512387;hp=5af1738211e7c42445ec03c321ac08faaba2cbbf;hpb=caf732d4c449fc7be3fc88dfbb86b0713d7b7f26;p=lyx.git diff --git a/src/mathed/MathFactory.h b/src/mathed/MathFactory.h index 5af1738211..9837ca75e2 100644 --- a/src/mathed/MathFactory.h +++ b/src/mathed/MathFactory.h @@ -4,7 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author André Pönitz + * \author André Pönitz * * Full author contact details are available in file CREDITS. */ @@ -12,16 +12,20 @@ #ifndef MATH_FACTORY_H #define MATH_FACTORY_H +#include "MathParser.h" + #include "support/strfwd.h" +#include + namespace lyx { class MathAtom; class MathData; -MathAtom createInsetMath(docstring const &); -MathAtom createInsetMath(char const * const); +MathAtom createInsetMath(docstring const &, Buffer * buf); +MathAtom createInsetMath(char const * const, Buffer * buf); /** Fills ar with the contents of str. * str is created by the frontend dialog's and returned to the LyX core. @@ -29,6 +33,13 @@ MathAtom createInsetMath(char const * const); */ bool createInsetMath_fromDialogStr(docstring const &, MathData &); +/** Tells whether the argument is an ascii character or is marked as + * mathalpha in the unicodesymbols file. + */ +bool isAsciiOrMathAlpha(char_type); + +typedef std::map MathWordList; +MathWordList const & mathedWordList(); } // namespace lyx