]> git.lyx.org Git - lyx.git/blob - src/insets/insetindex.h
prepare for 1.1.6pre2
[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(Buffer const &) const {
31                 return new InsetIndex(params());
32         }
33         ///
34         string const getScreenLabel() const;
35         ///
36         EDITABLE Editable() const { return IS_EDITABLE; }
37         ///
38         void Edit(BufferView *, int, int, unsigned int);
39 };
40
41
42 class InsetPrintIndex : public InsetCommand {
43 public:
44         ///
45         InsetPrintIndex(InsetCommandParams const &);
46         ///
47         Inset * Clone(Buffer const &) const {
48                 return new InsetPrintIndex(params());
49         }
50         /// Updates needed features for this inset.
51         void Validate(LaTeXFeatures & features) const;
52         ///
53         void Edit(BufferView *, int, int, unsigned int) {}
54         ///
55         EDITABLE Editable() const{ return NOT_EDITABLE; }
56         ///
57         bool display() const { return true; }
58         ///
59         Inset::Code LyxCode() const;
60         ///
61         string const getScreenLabel() const;
62 };
63
64 #endif