]> git.lyx.org Git - lyx.git/blob - src/insets/insettoc.h
update no.po
[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 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "insetcommand.h"
20
21 /** Used to insert table of contents
22  */
23 class InsetTOC : public InsetCommand {
24 public:
25         ///
26         InsetTOC(InsetCommandParams const & p, bool same_id = false)
27                         : InsetCommand(p, same_id) {}
28         ///
29         virtual Inset * clone(Buffer const &, bool same_id = false) const {
30                 return new InsetTOC(params(), same_id);
31         }
32         ///
33         string const getScreenLabel(Buffer const *) const;
34         ///
35         void edit(BufferView * bv, int, int, mouse_button::state);
36         ///
37         void edit(BufferView * bv, bool front = true);
38         ///
39         EDITABLE editable() const { return IS_EDITABLE; }
40         ///
41         bool display() const { return true; }
42         ///
43         Inset::Code lyxCode() const;
44         ///
45         int ascii(Buffer const *, std::ostream &, int linelen) const;
46         ///
47         int linuxdoc(Buffer const *, std::ostream &) const;
48         ///
49         int docbook(Buffer const *, std::ostream &, bool mixcont) const;
50 };
51
52 #endif