X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetText.h;h=ccb7301474e953025e62e096d8528bcb35f96388;hb=2c357c1d23b7b83839a9beb8225d4f1ae4f793b4;hp=40efd2b7aaeeb632d84b96a9fe1439d25c090298;hpb=36dbec45069bf3d9db923200835e44f44d904eb8;p=lyx.git diff --git a/src/insets/InsetText.h b/src/insets/InsetText.h index 40efd2b7aa..ccb7301474 100644 --- a/src/insets/InsetText.h +++ b/src/insets/InsetText.h @@ -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); @@ -130,31 +132,47 @@ public: /// should paragraph indendation be ommitted in any case? bool neverIndent(Buffer const &) const; /// - virtual bool isMacroScope(Buffer const & buf) const { return true; } + 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: ///