]> git.lyx.org Git - lyx.git/blob - src/insets/insettoc.h
Move some more #includes out of the header files.
[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
18 class MetricsInfo;
19
20
21 /** Used to insert table of contents
22  */
23 class InsetTOC : public InsetCommand {
24 public:
25         ///
26         InsetTOC(InsetCommandParams const &);
27         ///
28         ~InsetTOC();
29         ///
30         virtual std::auto_ptr<InsetBase> clone() const {
31                 return std::auto_ptr<InsetBase>(new InsetTOC(params()));
32         }
33         ///
34         void metrics(MetricsInfo &, Dimension &) const;
35         ///
36         void draw(PainterInfo & pi, int x, int y) const;
37         ///
38         dispatch_result localDispatch(FuncRequest const & cmd);
39         ///
40         string const getScreenLabel(Buffer const &) const;
41         ///
42         EDITABLE editable() const { return IS_EDITABLE; }
43         ///
44         InsetOld::Code lyxCode() const;
45         ///
46         int ascii(Buffer const &, std::ostream &, int linelen) const;
47         ///
48         int linuxdoc(Buffer const &, std::ostream &) const;
49         ///
50         int docbook(Buffer const &, std::ostream &, bool mixcont) const;
51 private:
52         ///
53         mutable unsigned int center_indent_;
54 };
55
56 #endif