X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetTOC.h;h=7801f439ad95dc57dd712ec6f04af2372c84b993;hb=fd8b4aebb0ee6404a4532abb9934886b19edd108;hp=f0f6169e75ab8e814a84226d01190f43653fa71b;hpb=ecef54500d4d77baf4fa47eac2253679875ac08c;p=lyx.git diff --git a/src/insets/InsetTOC.h b/src/insets/InsetTOC.h index f0f6169e75..7801f439ad 100644 --- a/src/insets/InsetTOC.h +++ b/src/insets/InsetTOC.h @@ -14,9 +14,12 @@ #include "InsetCommand.h" +#include "Toc.h" + namespace lyx { +class Paragraph; /// Used to insert table of contents and similar lists /// at present, supports only \tableofcontents and \listoflistings. @@ -47,7 +50,7 @@ public: /// void doDispatch(Cursor & cur, FuncRequest & cmd); /// - bool clickable(int, int) const { return true; } + bool clickable(BufferView const &, int, int) const { return true; } //@} /// \name Static public methods obligated for InsetCommand derived classes @@ -61,6 +64,13 @@ public: //@} private: + /// + void makeTOCWithDepth(XHTMLStream & xs, Toc const & toc, const OutputParams & op) const; + /// + void makeTOCNoDepth(XHTMLStream & xs, Toc const & toc, const OutputParams & op) const; + /// + void makeTOCEntry(XHTMLStream & xs, Paragraph const & par, OutputParams const & op) const; + /// \name Private functions inherited from Inset class //@{ ///