]> git.lyx.org Git - lyx.git/blob - src/insets/insettoc.h
bc4c696cf88ef1ac9179c322285e32905684246f
[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 /** Used to insert table of contents
19  */
20 class InsetTOC : public InsetCommand {
21 public:
22         ///
23         InsetTOC(InsetCommandParams const &);
24         ///
25         //InsetTOC(InsetCommandParams const &, bool same_id);
26         ///
27         ~InsetTOC();
28         ///
29         virtual Inset * clone(Buffer const &) const {
30                 return new InsetTOC(params());
31         }
32         ///
33         //virtual Inset * clone(Buffer const &, bool same_id) const {
34         //      return new InsetTOC(params(), same_id);
35         //}
36         ///
37         dispatch_result localDispatch(FuncRequest const & cmd);
38         ///
39         string const getScreenLabel(Buffer const *) const;
40         ///
41         EDITABLE editable() const { return IS_EDITABLE; }
42         ///
43         bool display() const { return true; }
44         ///
45         Inset::Code lyxCode() const;
46         ///
47         int ascii(Buffer const *, std::ostream &, int linelen) const;
48         ///
49         int linuxdoc(Buffer const *, std::ostream &) const;
50         ///
51         int docbook(Buffer const *, std::ostream &, bool mixcont) const;
52 };
53
54 #endif