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 InsetTOC(InsetCommandParams const &);
30 virtual std::auto_ptr<InsetBase> clone() const {
31 return std::auto_ptr<InsetBase>(new InsetTOC(params()));
34 void metrics(MetricsInfo &, Dimension &) const;
36 void draw(PainterInfo & pi, int x, int y) const;
38 std::string const getScreenLabel(Buffer const &) const;
40 EDITABLE editable() const { return IS_EDITABLE; }
42 InsetOld::Code lyxCode() const;
44 bool display() const { return true; }
46 int ascii(Buffer const &, std::ostream &, int linelen) const;
48 int linuxdoc(Buffer const &, std::ostream &) const;
50 int docbook(Buffer const &, std::ostream &, bool mixcont) const;
55 priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &);