]> git.lyx.org Git - lyx.git/blob - src/insets/insettoc.h
fix #832
[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 &, bool same_id = false);
24         ///
25         ~InsetTOC();
26         ///
27         virtual Inset * clone(Buffer const &, bool same_id = false) const {
28                 return new InsetTOC(params(), same_id);
29         }
30         ///
31         dispatch_result localDispatch(FuncRequest const & cmd);
32         ///
33         string const getScreenLabel(Buffer const *) const;
34         ///
35         EDITABLE editable() const { return IS_EDITABLE; }
36         ///
37         bool display() const { return true; }
38         ///
39         Inset::Code lyxCode() const;
40         ///
41         int ascii(Buffer const *, std::ostream &, int linelen) const;
42         ///
43         int linuxdoc(Buffer const *, std::ostream &) const;
44         ///
45         int docbook(Buffer const *, std::ostream &, bool mixcont) const;
46 };
47
48 #endif