]> git.lyx.org Git - lyx.git/blob - src/insets/insetindex.C
reformatting and remove using delc
[lyx.git] / src / insets / insetindex.C
1 #include <config.h>
2
3 #ifdef __GNUG__
4 #pragma implementation
5 #endif
6
7 #include "insetindex.h"
8 #include "BufferView.h"
9 #include "LyXView.h"
10 #include "frontends/Dialogs.h"
11 #include "LaTeXFeatures.h"
12
13 InsetIndex::InsetIndex(InsetCommandParams const & p)
14         : InsetCommand(p)
15 {}
16
17
18 string const InsetIndex::getScreenLabel() const
19 {
20         return _("Idx");
21 }
22
23
24 void InsetIndex::Edit(BufferView * bv, int, int, unsigned int)
25 {
26         bv->owner()->getDialogs()->showIndex( this );
27 }
28
29
30 InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p)
31         : InsetCommand(p)
32 {}
33
34 string const InsetPrintIndex::getScreenLabel() const
35 {
36         return _("Index");
37 }
38
39
40 void InsetPrintIndex::Validate(LaTeXFeatures & features) const
41 {
42         features.makeidx = true;
43 }
44
45
46 Inset::Code InsetPrintIndex::LyxCode() const
47 {
48         return Inset::INDEX_CODE;
49 }