]> git.lyx.org Git - lyx.git/blob - src/insets/insettoc.h
add parOwner to Inset, optimize LyXText::workWidth, fix memory corruption with lots...
[lyx.git] / src / insets / insettoc.h
1 // -*- C++ -*-
2 /* This file is part of*
3  * ======================================================
4  *
5  *           LyX, The Document Word Processor
6  *       
7  *           Copyright 1995 Matthias Ettrich
8  *           Copyright 1996-2001 The LyX Team.
9  * 
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, unsigned int);
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 &) const;
50 };
51
52 #endif