]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTOC.h
Allow row-breaking after some insets
[lyx.git] / src / insets / InsetTOC.h
index 074ad535dbf6e8f4b6de193670af8d00f224eee7..8ab1cc84ac5d29123eb5dfdd4c8a63a3654b3cd6 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.
@@ -36,7 +37,7 @@ public:
        ///
        docstring layoutName() const;
        ///
-       DisplayType display() const { return AlignCenter; }
+       RowFlags rowFlags() const { return Display; }
        ///
        virtual void validate(LaTeXFeatures &) const;
        ///
@@ -45,11 +46,11 @@ public:
        ///
        int docbook(odocstream &, OutputParams const &) const;
        ///
-       docstring xhtml(XHTMLStream & xs, OutputParams const &) const;
+       docstring xhtml(XMLStream & xs, OutputParams const &) const;
        ///
        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,12 +65,12 @@ public:
 
 private:
        ///
-       void makeTOCWithDepth(XHTMLStream & xs, Toc const & toc, const OutputParams & op) const;
+       void makeTOCWithDepth(XMLStream & xs, Toc const & toc, const OutputParams & op) const;
        ///
-       void makeTOCNoDepth(XHTMLStream & xs, Toc const & toc, const OutputParams & op) const;
+       void makeTOCNoDepth(XMLStream & xs, Toc const & toc, const OutputParams & op) const;
        ///
-       void makeTOCEntry(XHTMLStream & xs, Paragraph const & par, OutputParams const & op) const;
-       
+       void makeTOCEntry(XMLStream & xs, Paragraph const & par, OutputParams const & op) const;
+
        /// \name Private functions inherited from Inset class
        //@{
        ///