X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fformula.C;h=74e2cc0ce4a39932e542c1e407eb52f1e298fd71;hb=6bba977f42b0cde753ac2ffd26f3f9c6b32ba0b6;hp=cc61c95dc89ffc86f72d7841ac93c2c665235233;hpb=2889b5fd3e8987d0c265ff4726a7fb6c6cb6c034;p=lyx.git diff --git a/src/mathed/formula.C b/src/mathed/formula.C index cc61c95dc8..74e2cc0ce4 100644 --- a/src/mathed/formula.C +++ b/src/mathed/formula.C @@ -306,14 +306,14 @@ Inset * InsetFormula::Clone() const } -void InsetFormula::Write(ostream & os) const +void InsetFormula::Write(Buffer const * buf, ostream & os) const { os << "Formula "; - Latex(os, false, false); + Latex(buf, os, false, false); } -int InsetFormula::Latex(ostream & os, bool fragile, bool) const +int InsetFormula::Latex(Buffer const *, ostream & os, bool fragile, bool) const { int ret = 0; //#warning Alejandro, the number of lines is not returned in this case @@ -323,22 +323,22 @@ int InsetFormula::Latex(ostream & os, bool fragile, bool) const } -int InsetFormula::Ascii(ostream & os) const +int InsetFormula::Ascii(Buffer const *, ostream & os) const { par->Write(os, false); return 0; } -int InsetFormula::Linuxdoc(ostream &) const +int InsetFormula::Linuxdoc(Buffer const * buf, ostream & os) const { - return 0; + return Ascii(buf, os); } -int InsetFormula::DocBook(ostream&) const +int InsetFormula::DocBook(Buffer const * buf, ostream & os) const { - return 0; + return Ascii(buf, os); } @@ -351,7 +351,7 @@ void InsetFormula::Validate(LaTeXFeatures & features) const } -void InsetFormula::Read(LyXLex & lex) +void InsetFormula::Read(Buffer const *, LyXLex & lex) { istream & is = lex.getStream();