]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTOC.h
Generalize the protection of brackets in citation arguments
[lyx.git] / src / insets / InsetTOC.h
index 183683628d40fc4dea929b6e4772ee72d11ec4f1..7801f439ad95dc57dd712ec6f04af2372c84b993 100644 (file)
 
 #include "InsetCommand.h"
 
+#include "Toc.h"
+
 
 namespace lyx {
 
 class Paragraph;
-class Toc;
 
 /// Used to insert table of contents and similar lists
 /// at present, supports only \tableofcontents and \listoflistings.
@@ -49,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
@@ -64,9 +65,9 @@ public:
 
 private:
        ///
-       void makeTOCWithDepth(XHTMLStream & xs, Toc toc, const OutputParams & op) const;
+       void makeTOCWithDepth(XHTMLStream & xs, Toc const & toc, const OutputParams & op) const;
        ///
-       void makeTOCNoDepth(XHTMLStream & xs, Toc 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;