X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetTOC.h;h=ead482b2e839870ec93ed3886d12eb528669f517;hb=0a6ff99f28686066675848f3410f77c0947bc357;hp=e6e932b3f1b06d0baa3aee6549f0bfe3e02a3058;hpb=27733452f78af8bf172ee55eba12e1fe5c6eccae;p=lyx.git diff --git a/src/insets/InsetTOC.h b/src/insets/InsetTOC.h index e6e932b3f1..ead482b2e8 100644 --- a/src/insets/InsetTOC.h +++ b/src/insets/InsetTOC.h @@ -17,6 +17,8 @@ namespace lyx { +class Paragraph; +class Toc; /// Used to insert table of contents and similar lists /// at present, supports only \tableofcontents and \listoflistings. @@ -38,7 +40,8 @@ public: /// virtual void validate(LaTeXFeatures &) 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; /// @@ -60,6 +63,13 @@ public: //@} private: + /// + void makeTOCWithDepth(XHTMLStream xs, Toc toc, const OutputParams & op) const; + /// + void makeTOCNoDepth(XHTMLStream xs, Toc toc, const OutputParams & op) const; + /// + void makeTOCEntry(XHTMLStream & xs, Paragraph const & par, OutputParams const & op) const; + /// \name Private functions inherited from Inset class //@{ ///