]> git.lyx.org Git - lyx.git/blob - src/insets/insettoc.h
Martin's fullRow patch
[lyx.git] / src / insets / insettoc.h
1 // -*- C++ -*-
2 /**
3  * \file insettoc.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef INSET_TOC_H
13 #define INSET_TOC_H
14
15
16 #include "insetcommand.h"
17 #include "metricsinfo.h"
18
19 /** Used to insert table of contents
20  */
21 class InsetTOC : public InsetCommand {
22 public:
23         ///
24         InsetTOC(InsetCommandParams const &);
25         ///
26         ~InsetTOC();
27         ///
28         virtual std::auto_ptr<InsetBase> clone() const {
29                 return std::auto_ptr<InsetBase>(new InsetTOC(params()));
30         }
31         ///
32         void metrics(MetricsInfo &, Dimension &) const;
33         ///
34         void draw(PainterInfo & pi, int x, int y) const;
35         ///
36         dispatch_result localDispatch(FuncRequest const & cmd);
37         ///
38         string const getScreenLabel(Buffer const *) const;
39         ///
40         EDITABLE editable() const { return IS_EDITABLE; }
41         ///
42         InsetOld::Code lyxCode() const;
43         ///
44         int ascii(Buffer const *, std::ostream &, int linelen) const;
45         ///
46         int linuxdoc(Buffer const *, std::ostream &) const;
47         ///
48         int docbook(Buffer const *, std::ostream &, bool mixcont) const;
49 private:
50         ///
51         mutable unsigned int center_indent_;
52 };
53
54 #endif