]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCollapsable.h
Inset::addToToc(): change signature. Use DocIterator instead of ParConstIterator...
[lyx.git] / src / insets / InsetCollapsable.h
index 2aa4f1b951eb15c5f311b5f31a053317fd6510d2..c5b9975f33fe561e19aeb9ec96e585644b9f8b5b 100644 (file)
@@ -33,8 +33,7 @@ namespace frontend { class Painter; }
 class InsetCollapsable : public InsetText {
 public:
        ///
-       InsetCollapsable(Buffer const &,
-               CollapseStatus status = Inset::Open, DocumentClass * tc = 0);
+       InsetCollapsable(Buffer const &, CollapseStatus status = Inset::Open);
        ///
        InsetCollapsable(InsetCollapsable const & rhs);
        ///
@@ -119,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;
        ///