]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbase.h
insetcharstyle drawing cosmetics
[lyx.git] / src / insets / insetbase.h
index 0109473402df840732829e1405003ddbe47c4e32..d87ac7c15a96ddae2fb8a22e4215d985d3b5e4b8 100644 (file)
@@ -362,6 +362,8 @@ public:
        enum mode_type {UNDECIDED_MODE, TEXT_MODE, MATH_MODE};
        /// return text or mathmode if that is possible to determine
        virtual mode_type currentMode() const { return UNDECIDED_MODE; }
+       /// returns whether this inset is allowed in other insets of given mode
+       virtual bool allowedIn(mode_type) const { return true; }
 
        /// is this inset allowed within a font change?
        virtual bool noFontChange() const { return false; }