]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.h
fix http://bugzilla.lyx.org/show_bug.cgi?id=4998
[lyx.git] / src / insets / InsetText.h
index 2d183c11064db2d6898f1ba374c5897b6359a78d..33c5b474b3614b29d6470126a4ab3497f9da9e90 100644 (file)
@@ -22,6 +22,7 @@ namespace lyx {
 class Buffer;
 class BufferParams;
 class BufferView;
+class CompletionList;
 class CursorSlice;
 class Dimension;
 class ParagraphList;
@@ -128,16 +129,16 @@ public:
        bool insetAllowed(InsetCode) const { return true; }
        ///
        bool allowSpellCheck() const { return true; }
-       /// should paragraph indendation be ommitted in any case?
-       bool neverIndent() const;
        ///
-       virtual bool isMacroScope() const { return true; }
+       virtual bool isMacroScope() const { return false; }
        ///
        virtual bool allowMultiPar() const { return true; }
 
        // Update the counters of this inset and of its contents
        void updateLabels(ParIterator const &);
        ///
+       void addToToc(DocIterator const &);
+       ///
        Inset * clone() const { return new InsetText(*this); }
        ///
        bool notifyCursorLeaves(Cursor const & old, Cursor & cur);
@@ -151,6 +152,8 @@ public:
        ///
        bool automaticPopupCompletion() const;
        ///
+       bool showCompletionCursor() const;
+       ///
        CompletionList const * createCompletionList(Cursor const & cur) const;
        ///
        docstring completionPrefix(Cursor const & cur) const;
@@ -158,6 +161,7 @@ public:
        bool insertCompletion(Cursor & cur, docstring const & s, bool finished);
        ///
        void completionPosAndDim(Cursor const &, int & x, int & y, Dimension & dim) const;
+
        ///
        virtual docstring contextMenu(BufferView const & bv, int x, int y) const;
        ///
@@ -171,8 +175,6 @@ private:
        ColorCode frame_color_;
        ///
        mutable pit_type old_pit;
-       ///
-       docstring previousWord(CursorSlice const & sl) const;
 
 public:
        ///