]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCollapsable.h
* src/insets/InsetTabular.h:
[lyx.git] / src / insets / InsetCollapsable.h
index b35a2bd09648d54f1831ed11c507d1aaabf8fb4a..c447db086df4676e95bfab2bab6c750087b85c29 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);
        ///
@@ -55,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 &);
        ///
@@ -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;
        ///
@@ -147,10 +144,12 @@ 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;
+       ///
+       virtual docstring contextMenu(BufferView const & bv, int x, int y) const;
 protected:
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);