]> git.lyx.org Git - lyx.git/blob - src/insets/insettoc.h
last updates from 1.0.4, no more updates expected from that branch now
[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 (C) 1995 Matthias Ettrich
8  *                        1996-1998 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 "gettext.h"
21
22 // Created by Lgb 970527
23
24 /** Used to insert table of contents
25  */
26 class InsetTOC: public InsetCommand {
27 public:
28         ///
29         InsetTOC(): InsetCommand("tableofcontents") {}
30         ///
31         InsetTOC(Buffer *b): InsetCommand("tableofcontents"),owner(b){}
32         ///
33         Inset* Clone() { return new InsetTOC(owner); }
34         ///
35         LString getScreenLabel() const { return _("Table of Contents"); }
36         /// On edit, we open the TOC pop-up
37         void Edit(int, int);
38         ///
39         unsigned char Editable() const {
40                 return 1;
41         }
42         ///
43         bool Display() const { return true; }
44         ///
45         Inset::Code LyxCode() const { return Inset::TOC_CODE; }
46         ///
47         int Linuxdoc(LString &file);
48         ///
49         int DocBook(LString &file);
50 private:
51         ///
52         Buffer *owner;
53 };
54
55 #endif