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"
17 #include "metricsinfo.h"
19 /** Used to insert table of contents
21 class InsetTOC : public InsetCommand {
24 InsetTOC(InsetCommandParams const &);
28 virtual std::auto_ptr<InsetBase> clone() const {
29 return std::auto_ptr<InsetBase>(new InsetTOC(params()));
32 void metrics(MetricsInfo &, Dimension &) const;
34 void draw(PainterInfo & pi, int x, int y) const;
36 dispatch_result localDispatch(FuncRequest const & cmd);
38 string const getScreenLabel(Buffer const &) const;
40 EDITABLE editable() const { return IS_EDITABLE; }
42 InsetOld::Code lyxCode() const;
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;
51 mutable unsigned int center_indent_;