2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1996-2000 the LyX Team.
10 * ====================================================== */
19 #include "insetcommand.h"
23 /** Used to insert index labels
25 class InsetIndex : public InsetCommand {
28 InsetIndex(InsetCommandParams const &);
30 Inset * Clone() const { return new InsetIndex(params());}
32 string const getScreenLabel() const;
34 EDITABLE Editable() const { return IS_EDITABLE; }
36 void Edit(BufferView *, int, int, unsigned int);
40 class InsetPrintIndex : public InsetCommand {
43 InsetPrintIndex(InsetCommandParams const &);
45 Inset * Clone() const { return new InsetPrintIndex(params());}
46 /// Updates needed features for this inset.
47 void Validate(LaTeXFeatures & features) const;
49 void Edit(BufferView *, int, int, unsigned int) {}
51 EDITABLE Editable() const{ return NOT_EDITABLE; }
53 bool display() const { return true; }
55 Inset::Code LyxCode() const;
57 string const getScreenLabel() const;