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(Buffer const &) const {
31 return new InsetIndex(params());
34 string const getScreenLabel() const;
36 EDITABLE Editable() const { return IS_EDITABLE; }
38 void Edit(BufferView *, int, int, unsigned int);
42 class InsetPrintIndex : public InsetCommand {
45 InsetPrintIndex(InsetCommandParams const &);
47 Inset * Clone(Buffer const &) const {
48 return new InsetPrintIndex(params());
50 /// Updates needed features for this inset.
51 void Validate(LaTeXFeatures & features) const;
53 void Edit(BufferView *, int, int, unsigned int) {}
55 EDITABLE Editable() const{ return NOT_EDITABLE; }
57 bool display() const { return true; }
59 Inset::Code LyxCode() const;
61 string const getScreenLabel() const;