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/docstring.h"
34 latexkeys() : hidden(false) {}
36 char const * MathMLtype() const;
37 /// name of the macro or primitive
39 /// name of a inset that handles that macro
42 * The string or symbol to draw.
43 * This is a string of length 1 if \p name is a known symbol, and
44 * the corresponding font is available. In this case it is
45 * NO UCS4 STRING! The only "character" of the string simply denotes
46 * the code point of the symbol in the font. Therefore you have to
47 * be very careful if you pass \c draw to any function that takes a
49 * If \p name is a known symbol, but the corresponding font is not
50 * available, or if it is a function name, then \c draw contains a
51 * regular UCS4 string (actuallay \c draw == \c name) that is painted
55 /// the same thing, but as an alternative in display mode
56 // Useful for \sum operator, for example
58 /// operator/..., fontname e
60 /// how is this called as XML entity in MathML?
62 /// required LaTeXFeatures
64 /// Should this macro be hidden from autocompletion (since it requires
65 /// user preamble code)?
70 /// check whether this is a well-known (La)TeX macro or primitive
71 latexkeys const * in_word_set(docstring const & str);
73 /// parse formula from a string
74 bool mathed_parse_normal(Buffer * buf, MathAtom &, docstring const &,
75 Parse::flags f = Parse::NORMAL);
77 /// parse formula from the LyX lexxer
78 bool mathed_parse_normal(Buffer * buf, MathAtom &, Lexer &,
79 Parse::flags f = Parse::NORMAL);
81 /// parse formula from a string into a grid
82 bool mathed_parse_normal(InsetMathGrid &, docstring const &,
83 Parse::flags f = Parse::NORMAL);
85 /// parse a single cell from a string
86 bool mathed_parse_cell(MathData & ar, docstring const &,
87 Parse::flags f = Parse::NORMAL);
89 /// parse a single cell from a stream. Only use this for reading from .lyx
90 /// file format, for the reason see Parser::tokenize(std::istream &).
91 bool mathed_parse_cell(MathData & ar, std::istream &,
92 Parse::flags f = Parse::NORMAL);