X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetText.h;h=1c8d5468fe918845d069376f83cf73fec006364e;hb=d6f1915684328c6e3fe61c6eef8846b5cabec334;hp=ffd4bad18c9913d6425ecb5f7fcda588ba20e188;hpb=7a5576c13b6d19df50583ad650d19d89e07c4179;p=lyx.git diff --git a/src/insets/InsetText.h b/src/insets/InsetText.h index ffd4bad18c..1c8d5468fe 100644 --- a/src/insets/InsetText.h +++ b/src/insets/InsetText.h @@ -22,6 +22,7 @@ namespace lyx { class Buffer; class BufferParams; class BufferView; +class CompletionList; class CursorSlice; class Dimension; class ParagraphList; @@ -36,11 +37,9 @@ public: /// explicit InsetText(Buffer const & buffer); /// - InsetText(); - /// InsetText(InsetText const &); /// - void initParagraphs(Buffer const & buffer); + void setBuffer(Buffer &); /// Dimension const dimension(BufferView const &) const; @@ -66,6 +65,9 @@ public: /// InsetText const * asInsetText() const { return this; } /// + Text & text() { return text_; } + Text const & text() const { return text_; } + /// int latex(odocstream &, OutputParams const &) const; /// int plaintext(odocstream &, OutputParams const &) const; @@ -129,10 +131,6 @@ public: /// bool allowSpellCheck() const { return true; } /// - bool isTableCell() const; - /// should paragraph indendation be ommitted in any case? - bool neverIndent() const; - /// virtual bool isMacroScope() const { return false; } /// virtual bool allowMultiPar() const { return true; } @@ -140,6 +138,8 @@ public: // 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); @@ -153,6 +153,8 @@ public: /// bool automaticPopupCompletion() const; /// + bool showCompletionCursor() const; + /// CompletionList const * createCompletionList(Cursor const & cur) const; /// docstring completionPrefix(Cursor const & cur) const; @@ -160,11 +162,14 @@ 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; /// void doDispatch(Cursor & cur, FuncRequest & cmd); private: + /// + void initParagraphs(); /// void setParagraphOwner(); /// @@ -173,10 +178,6 @@ private: ColorCode frame_color_; /// mutable pit_type old_pit; - /// - docstring previousWord(CursorSlice const & sl) const; - -public: /// mutable Text text_; };