X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_inset.h;h=d2b26bc21ac82413efc24c6732f8ebc3933b5fc6;hb=701b99ecd70ac472aa53c8b2317af44def4f9670;hp=7e8365d05a71a791360b0408512a19cc3e9ea0d5;hpb=b447408de232872fef1537fca542abc23702d572;p=lyx.git diff --git a/src/mathed/math_inset.h b/src/mathed/math_inset.h index 7e8365d05a..d2b26bc21a 100644 --- a/src/mathed/math_inset.h +++ b/src/mathed/math_inset.h @@ -13,6 +13,8 @@ #ifndef MATH_INSET_H #define MATH_INSET_H +#include "math_data.h" + #include "insets/insetbase.h" #include @@ -52,9 +54,6 @@ class MathUnknownInset; class RefInset; -class MathArray; -class MathAtom; - class NormalStream; class OctaveStream; class MapleStream; @@ -177,6 +176,9 @@ public: virtual void mutate(std::string const &) {} /// usually the latex name virtual std::string name() const; + + /// math stuff usually isn't allowed in text mode + virtual bool allowedIn(mode_type mode) const { return mode == MATH_MODE; } }; std::ostream & operator<<(std::ostream &, MathAtom const &);