]> git.lyx.org Git - features.git/blobdiff - src/insets/inset.h
This should clean up the language stuff a bit and a small new check for
[features.git] / src / insets / inset.h
index b0951ffe3ec483ba94e4a0ae9afedd4af6cb80c5..cd778db2bdffb07bc94acaa6808ea4e7bae521df 100644 (file)
@@ -287,6 +287,9 @@ public:
 #endif
        /// close the inset
        virtual void close(BufferView *) {}
+       /// check if the font of the char we want inserting is correct
+       /// and modify it if it is not.
+       virtual bool checkInsertChar(LyXFont & font) { return true; }
        
 protected:
        ///
@@ -444,6 +447,9 @@ public:
        virtual bool nodraw() const {
                return block_drawing_;
        }
+       /// check if the font of the char we want inserting is correct
+       /// and modify it if it is not.
+       virtual bool checkInsertChar(LyXFont & font) { return true; }
        ///
        // needed for spellchecking text
        ///