]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTOC.h
New DocBook support
[lyx.git] / src / insets / InsetTOC.h
index e5127d62c38504a2e437b57ce3d2da4bb51670cf..4b92e329a2ec95f86d91f146f05e0122b0e875e7 100644 (file)
 
 #include "InsetCommand.h"
 
+#include "Toc.h"
+
 
 namespace lyx {
 
-class Toc;
+class Paragraph;
 
 /// Used to insert table of contents and similar lists
 /// at present, supports only \tableofcontents and \listoflistings.
@@ -35,20 +37,20 @@ public:
        ///
        docstring layoutName() const;
        ///
-       DisplayType display() const { return AlignCenter; }
+       RowFlags rowFlags() const { return Display; }
        ///
        virtual void validate(LaTeXFeatures &) const;
        ///
        int plaintext(odocstringstream & ods, OutputParams const & op,
                      size_t max_length = INT_MAX) const;
        ///
-       int docbook(odocstream &, OutputParams const &) const;
+       void docbook(XMLStream &, 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
@@ -63,9 +65,12 @@ public:
 
 private:
        ///
-       void makeTOCWithDepth(XHTMLStream xs, Toc toc, const OutputParams & op) const;
+       void makeTOCWithDepth(XMLStream & xs, Toc const & toc, const OutputParams & op) const;
+       ///
+       void makeTOCNoDepth(XMLStream & xs, Toc const & toc, const OutputParams & op) const;
        ///
-       void makeTOCNoDepth(XHTMLStream xs, Toc toc, const OutputParams & op) const;
+       void makeTOCEntry(XMLStream & xs, Paragraph const & par, OutputParams const & op) const;
+
        /// \name Private functions inherited from Inset class
        //@{
        ///