]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathParser.h
A little cleanup of the layout files.
[lyx.git] / src / mathed / MathParser.h
index de97e1033db52f9596cd738738edc6d15aa06013..67acd0e6bf8f07f5db2f40756fe3a7060aa39c64 100644 (file)
@@ -5,7 +5,7 @@
  * Licence details can be found in the file COPYING.
  *
  * \author Alejandro Aguilar Sierra
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -13,6 +13,8 @@
 #ifndef MATH_PARSER_H
 #define MATH_PARSER_H
 
+#include "MathParser_flags.h"
+
 #include "support/types.h"
 #include "support/docstring.h"
 
@@ -59,17 +61,17 @@ public:
 latexkeys const * in_word_set(docstring const & str);
 
 /// parse formula from a string
-bool mathed_parse_normal(MathAtom &, docstring const &);
+bool mathed_parse_normal(MathAtom &, docstring const &, Parse::flags f = Parse::NORMAL);
 /// ... the LyX lexxer
-bool mathed_parse_normal(MathAtom &, Lexer &);
+bool mathed_parse_normal(MathAtom &, Lexer &, Parse::flags f = Parse::NORMAL);
 /// parse formula from a string into a grid
-void mathed_parse_normal(InsetMathGrid &, docstring const &);
+bool mathed_parse_normal(InsetMathGrid &, docstring const &, Parse::flags f = Parse::NORMAL);
 
 /// parse a single cell from a string
-void mathed_parse_cell(MathData & ar, docstring const &);
+bool mathed_parse_cell(MathData & ar, docstring const &, Parse::flags f = Parse::NORMAL);
 /// parse a single cell from a stream. Only use this for reading from .lyx
 /// file format, for the reason see Parser::tokenize(std::istream &).
-void mathed_parse_cell(MathData & ar, std::istream &);
+bool mathed_parse_cell(MathData & ar, std::istream &, Parse::flags f = Parse::NORMAL);
 
 void initParser();