]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.h
Inset::addToToc(): change signature. Use DocIterator instead of ParConstIterator...
[lyx.git] / src / insets / InsetText.h
index bc7a56b5319599e3f659d5a666e1e0d6d39b2754..afb874a442cf3674ad1869b9b77a281cc6f2a781 100644 (file)
@@ -22,6 +22,7 @@ namespace lyx {
 class Buffer;
 class BufferParams;
 class BufferView;
+class CompletionList;
 class CursorSlice;
 class Dimension;
 class ParagraphList;
@@ -128,10 +129,8 @@ 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; }
 
@@ -151,6 +150,8 @@ public:
        ///
        bool automaticPopupCompletion() const;
        ///
+       bool showCompletionCursor() const;
+       ///
        CompletionList const * createCompletionList(Cursor const & cur) const;
        ///
        docstring completionPrefix(Cursor const & cur) const;
@@ -159,6 +160,8 @@ public:
        ///
        void completionPosAndDim(Cursor const &, int & x, int & y, Dimension & dim) const;
 
+       ///
+       virtual docstring contextMenu(BufferView const & bv, int x, int y) const;
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
 private:
@@ -170,8 +173,6 @@ private:
        ColorCode frame_color_;
        ///
        mutable pit_type old_pit;
-       ///
-       docstring previousWord(CursorSlice const & sl) const;
 
 public:
        ///