]> git.lyx.org Git - lyx.git/blob - src/insets/insettoc.h
Angus insetindex patch + protect patch from Dekel
[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-2000 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 #include "support/utility.hpp"
21
22 /** Used to insert table of contents
23  */
24 class InsetTOC : public InsetCommand, public noncopyable {
25 public:
26         ///
27         InsetTOC(InsetCommandParams const & p) : InsetCommand(p) {}
28         ///
29         Inset * Clone() const { return new InsetTOC(params()); }
30         ///
31         string getScreenLabel() const;
32         ///
33         void Edit(BufferView * bv, int, int, unsigned int);
34         ///
35         EDITABLE Editable() const { return IS_EDITABLE; }
36         ///
37         bool display() const { return true; }
38         ///
39         Inset::Code LyxCode() const;
40         ///
41         int Linuxdoc(Buffer const *, std::ostream &) const;
42         ///
43         int DocBook(Buffer const *, std::ostream &) const;
44 };
45
46 #endif