#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.
///
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
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
//@{
///