]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.h
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetText.h
index d29e4ec6b12e42f6df71023b5263a36e6c1d06b8..ccb7301474e953025e62e096d8528bcb35f96388 100644 (file)
@@ -40,6 +40,8 @@ public:
        explicit InsetText(BufferParams const &);
        ///
        InsetText();
+       ///
+       InsetText(InsetText const &);
 
        ///
        Dimension const dimension(BufferView const &) const;
@@ -113,7 +115,7 @@ public:
        void addPreview(graphics::PreviewLoader &) const;
 
        ///
-       void edit(Cursor & cur, bool left);
+       void edit(Cursor & cur, bool front, EntryDirection entry_from);
        ///
        Inset * editXY(Cursor & cur, int x, int y);
 
@@ -133,28 +135,44 @@ public:
        virtual bool isMacroScope(Buffer const &) const { return true; }
        ///
        virtual bool allowMultiPar() const { return true; }
-       ///
-       InsetText(InsetText const &);
 
        // Update the counters of this inset and of its contents
        virtual void updateLabels(Buffer const &, ParIterator const &);
        ///
        virtual Inset * clone() const;
 
+       ///
+       bool completionSupported(Cursor const &) const;
+       ///
+       bool inlineCompletionSupported(Cursor const & cur) const;
+       ///
+       bool automaticInlineCompletion() const;
+       ///
+       bool automaticPopupCompletion() const;
+       ///
+       CompletionList const * completionList(Cursor const & cur) const;
+       ///
+       docstring completionPrefix(Cursor const & cur) const;
+       ///
+       bool insertCompletion(Cursor & cur, docstring const & s, bool finished);
+       ///
+       void completionPosAndDim(Cursor const &, int & x, int & y, Dimension & dim) const;
+
 protected:
        ///
        virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
 
 private:
        ///
-       void init();
-
+       void setParagraphOwner();
        ///
        bool drawFrame_;
        ///
        ColorCode frame_color_;
        ///
        mutable pit_type old_pit;
+       ///
+       docstring previousWord(Buffer const & buffer, CursorSlice const & sl) const;
 
 public:
        ///