X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FMathParser.h;h=c4ae6f89949bf3bb93e1b6edd82531a79743b805;hb=573500dd04f154f27318ac5ec469a337f97fe9f0;hp=7aea0640776e0c6000b2c0e35305558507a5f6c2;hpb=02d28d981c0bdd8d621ec1333bf60ad1c592e43e;p=lyx.git diff --git a/src/mathed/MathParser.h b/src/mathed/MathParser.h index 7aea064077..c4ae6f8994 100644 --- a/src/mathed/MathParser.h +++ b/src/mathed/MathParser.h @@ -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. */ @@ -21,6 +21,7 @@ namespace lyx { +class Buffer; class MathAtom; class MathData; class InsetMathGrid; @@ -61,17 +62,25 @@ public: latexkeys const * in_word_set(docstring const & str); /// parse formula from a string -bool mathed_parse_normal(MathAtom &, docstring const &, Parse::flags f = Parse::NORMAL); -/// ... the LyX lexxer -bool mathed_parse_normal(MathAtom &, Lexer &, Parse::flags f = Parse::NORMAL); +bool mathed_parse_normal(Buffer * buf, MathAtom &, docstring const &, + Parse::flags f = Parse::NORMAL); + +/// parse formula from the LyX lexxer +bool mathed_parse_normal(Buffer * buf, MathAtom &, Lexer &, + Parse::flags f = Parse::NORMAL); + /// parse formula from a string into a grid -bool mathed_parse_normal(InsetMathGrid &, docstring const &, Parse::flags f = Parse::NORMAL); +bool mathed_parse_normal(InsetMathGrid &, docstring const &, + Parse::flags f = Parse::NORMAL); /// parse a single cell from a string -bool mathed_parse_cell(MathData & ar, docstring const &, Parse::flags f = Parse::NORMAL); +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 &). -bool mathed_parse_cell(MathData & ar, std::istream &, Parse::flags f = Parse::NORMAL); +bool mathed_parse_cell(MathData & ar, std::istream &, + Parse::flags f = Parse::NORMAL); void initParser();