]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCollapsable.h
Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4910 by creating InsetText::addToToc().
[lyx.git] / src / insets / InsetCollapsable.h
index 99679d315b6c73b5a65da0b29b6ac9f38bde2f09..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);
        ///
@@ -78,8 +77,6 @@ public:
        /// can we go further down on mouse click?
        bool descendable() const;
        ///
-       bool isMacroScope() const;
-       ///
        void setLabel(docstring const & l);
        ///
        virtual void setButtonLabel() {}
@@ -121,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;
        ///