]> git.lyx.org Git - lyx.git/blob - src/insets/insetindex.C
fix compilation pb ; update eu.po
[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 #include "gettext.h"
13
14 InsetIndex::InsetIndex(InsetCommandParams const & p)
15         : InsetCommand(p)
16 {}
17
18
19 string const InsetIndex::getScreenLabel() const
20 {
21         return _("Idx");
22 }
23
24
25 void InsetIndex::Edit(BufferView * bv, int, int, unsigned int)
26 {
27         bv->owner()->getDialogs()->showIndex( this );
28 }
29
30
31 InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p)
32         : InsetCommand(p)
33 {}
34
35 string const InsetPrintIndex::getScreenLabel() const
36 {
37         return _("Index");
38 }
39
40
41 void InsetPrintIndex::Validate(LaTeXFeatures & features) const
42 {
43         features.makeidx = true;
44 }
45
46
47 Inset::Code InsetPrintIndex::LyxCode() const
48 {
49         return Inset::INDEX_CODE;
50 }