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