]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCollapsable.h
Replace home made temp file creation with safer (and cleaner) Qt' solution. Should...
[lyx.git] / src / insets / InsetCollapsable.h
index fa8cf0fc50ca1c866b819135e3aad7102ee8f80d..c447db086df4676e95bfab2bab6c750087b85c29 100644 (file)
@@ -54,7 +54,7 @@ public:
        /// to name()
        void setLayout(DocumentClass const * const tc);
        ///
-       virtual bool useEmptyLayout() { return true; }
+       virtual bool usePlainLayout() { return true; }
        ///
        void read(Lexer &);
        ///
@@ -118,8 +118,8 @@ public:
        /// (status_), autoOpen_ and openinlined_, and of
        /// course decoration().
        Geometry geometry() const;
-       ///
-       bool allowSpellCheck() const { return true; }
+       /// Allow spellchecking, except for insets with latex_language
+       bool allowSpellCheck() const { return !forceLTR(); }
        ///
        bool allowMultiPar() const;
        ///
@@ -144,7 +144,7 @@ public:
        /// Force inset into LTR environment if surroundings are RTL?
        virtual bool forceLTR() const { return layout_->isForceLtr(); }
        ///
-       virtual bool useEmptyLayout() const { return true; }
+       virtual bool usePlainLayout() const { return true; }
        /// Is this inset's layout defined in the document's textclass?
        /// May be wrong after textclass change or paste from another document
        bool undefined() const;