]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_inset.h
float2string #4 (Spacing)
[lyx.git] / src / mathed / math_inset.h
index 7e8365d05a71a791360b0408512a19cc3e9ea0d5..d2b26bc21ac82413efc24c6732f8ebc3933b5fc6 100644 (file)
@@ -13,6 +13,8 @@
 #ifndef MATH_INSET_H
 #define MATH_INSET_H
 
+#include "math_data.h"
+
 #include "insets/insetbase.h"
 
 #include <string>
@@ -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 &);