4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Alejandro Aguilar Sierra
10 * Full author contact details are available in file CREDITS.
16 #include "mathparser_flags.h"
18 #include "support/types.h"
19 #include "support/docstring.h"
33 /// name of the macro or primitive
35 /// name of a inset that handles that macro
38 * The string or symbol to draw.
39 * This is a string of length 1 if \p name is a known symbol, and
40 * the corresponding font is available. In this case it is
41 * NO UCS4 STRING! The only "character" of the string simply denotes
42 * the code point of the symbol in the font. Therefore you have to
43 * be very careful if you pass \c draw to any function that takes a
45 * If \p name is a known symbol, but the corresponding font is not
46 * available, or if it is a function name, then \c draw contains a
47 * regular UCS4 string (actuallay \c draw == \c name) that is painted
51 /// operator/..., fontname e
53 /// how is this called as XML entity in MathML?
55 /// required LaTeXFeatures
60 /// check whether this is a well-known (La)TeX macro or primitive
61 latexkeys const * in_word_set(docstring const & str);
63 /// parse formula from a string
64 bool mathed_parse_normal(MathAtom &, docstring const &, Parse::flags f = Parse::NORMAL);
65 /// ... the LyX lexxer
66 bool mathed_parse_normal(MathAtom &, Lexer &, Parse::flags f = Parse::NORMAL);
67 /// parse formula from a string into a grid
68 bool mathed_parse_normal(InsetMathGrid &, docstring const &, Parse::flags f = Parse::NORMAL);
70 /// parse a single cell from a string
71 bool mathed_parse_cell(MathData & ar, docstring const &, Parse::flags f = Parse::NORMAL);
72 /// parse a single cell from a stream. Only use this for reading from .lyx
73 /// file format, for the reason see Parser::tokenize(std::istream &).
74 bool mathed_parse_cell(MathData & ar, std::istream &, Parse::flags f = Parse::NORMAL);