X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathFontOld.h;h=261696d104465b222517338878e61e068849f5a3;hb=2de30c62f8d671a8c8d4d52a6a7310e2c5ca84de;hp=61d55b0e7561bd55c49e7c4cd5390d9ff7287667;hpb=0facb603fefec1ecc927f77bcf6228ca1f035444;p=lyx.git diff --git a/src/mathed/InsetMathFontOld.h b/src/mathed/InsetMathFontOld.h index 61d55b0e75..261696d104 100644 --- a/src/mathed/InsetMathFontOld.h +++ b/src/mathed/InsetMathFontOld.h @@ -24,9 +24,9 @@ class latexkeys; class InsetMathFontOld : public InsetMathNest { public: /// - explicit InsetMathFontOld(latexkeys const * key); - /// we are in text mode. - mode_type currentMode() const { return TEXT_MODE; } + explicit InsetMathFontOld(Buffer * buf, latexkeys const * key); + /// we inherit the mode + mode_type currentMode() const { return current_mode_; } /// we write extra braces in any case... bool extraBraces() const { return true; } /// @@ -49,9 +49,13 @@ public: InsetCode lyxCode() const { return MATH_FONTOLD_CODE; } private: + std::string font() const; + /// virtual Inset * clone() const; /// the font to be used on screen latexkeys const * key_; + /// the inherited mode + mutable mode_type current_mode_; };