4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS.
16 #include "insetcommand.h"
21 /** Used to insert table of contents
23 class InsetTOC : public InsetCommand {
26 explicit InsetTOC(InsetCommandParams const &);
30 std::auto_ptr<InsetBase> clone() const;
32 void metrics(MetricsInfo &, Dimension &) const;
34 void draw(PainterInfo & pi, int x, int y) const;
36 std::string const getScreenLabel(Buffer const &) const;
38 EDITABLE editable() const { return IS_EDITABLE; }
40 InsetOld::Code lyxCode() const;
42 bool display() const { return true; }
44 int ascii(Buffer const &, std::ostream &, int linelen) const;
46 int linuxdoc(Buffer const &, std::ostream &) const;
48 int docbook(Buffer const &, std::ostream &, bool mixcont) const;
53 priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &);