X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetText.h;h=1a6d123ac6981d98f116a26add9d18d956b1e4d6;hb=dae8555234f0e5c8358b91c307d91b219c664617;hp=0110adf867a999ea9792f7bd6b0a207d502124ff;hpb=7287a259c5436b8f3f384c0d0bd7641a2f2601e9;p=lyx.git diff --git a/src/insets/InsetText.h b/src/insets/InsetText.h index 0110adf867..1a6d123ac6 100644 --- a/src/insets/InsetText.h +++ b/src/insets/InsetText.h @@ -17,8 +17,6 @@ #include "ColorCode.h" #include "Text.h" -#include "insets/InsetLayout.h" - namespace lyx { class CompletionList; @@ -75,7 +73,8 @@ public: /// void latex(otexstream &, OutputParams const &) const; /// - int plaintext(odocstream &, OutputParams const &) const; + int plaintext(odocstringstream & ods, OutputParams const & op, + size_t max_length = INT_MAX) const; /// int docbook(odocstream &, OutputParams const &) const; /// @@ -93,6 +92,9 @@ public: XHTMLOptions) const; /// void validate(LaTeXFeatures & features) const; + + /// return the argument(s) only + void getArgs(otexstream & os, OutputParams const &, bool const post = false) const; /// return x,y of given position relative to the inset's baseline void cursorPos(BufferView const & bv, CursorSlice const & sl, @@ -146,7 +148,7 @@ public: /// ParagraphList const & paragraphs() const; /// - bool insetAllowed(InsetCode) const { return !getLayout().isPassThru(); } + bool insetAllowed(InsetCode) const; /// bool allowSpellCheck() const { return getLayout().spellcheck() && !getLayout().isPassThru(); } /// @@ -168,9 +170,9 @@ public: /// void toString(odocstream &) const; /// - void forToc(docstring &, size_t) const; + void forOutliner(docstring &, size_t) const; /// - void addToToc(DocIterator const &) const; + void addToToc(DocIterator const & di, bool output_active) const; /// Inset * clone() const { return new InsetText(*this); } /// @@ -215,14 +217,14 @@ protected: docstring getCaptionText(OutputParams const &) const; /// docstring getCaptionHTML(OutputParams const &) const; + /// + void iterateForToc(DocIterator const & cdit, bool output_active) const; private: /// bool drawFrame_; /// ColorCode frame_color_; /// - mutable pit_type old_pit; - /// mutable Text text_; };