]> git.lyx.org Git - lyx.git/blob - src/insets/insetindex.h
92b6f57542445cf85b6a44b6104301eeb3ac9000
[lyx.git] / src / insets / insetindex.h
1 // -*- C++ -*-
2 /* This file is part of*
3  * ====================================================== 
4  *
5  *           LyX, The Document Processor
6  *       
7  *          Copyright 1995 Matthias Ettrich
8  *          Copyright 1996-2000 the LyX Team.
9  * 
10  * ====================================================== */
11
12 #ifndef INSET_INDEX_H
13 #define INSET_INDEX_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "insetcommand.h"
20
21 struct LaTeXFeatures;
22
23 /** Used to insert index labels  
24   */
25 class InsetIndex : public InsetCommand {
26 public:
27         ///
28         InsetIndex(InsetCommandParams const &);
29         ///
30         Inset * Clone() const { return new InsetIndex(params());}
31         ///
32         string getScreenLabel() const;
33         ///
34         EDITABLE Editable() const { return IS_EDITABLE; }
35         ///
36         void Edit(BufferView *, int, int, unsigned int);
37 };
38
39
40 class InsetPrintIndex : public InsetCommand {
41 public:
42         ///
43         InsetPrintIndex(InsetCommandParams const &);
44         ///
45         Inset * Clone() const { return new InsetPrintIndex(params());}
46         /// Updates needed features for this inset.
47         void Validate(LaTeXFeatures & features) const;
48         ///
49         void Edit(BufferView *, int, int, unsigned int) {}
50         ///
51         EDITABLE Editable() const{ return NOT_EDITABLE; }
52         ///
53         bool display() const { return true; }
54         ///
55         Inset::Code LyxCode() const;
56         ///
57         string getScreenLabel() const;
58 };
59
60 #endif