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"
20 #include "support/utility.hpp"
24 /** Used to insert index labels
26 class InsetIndex : public InsetCommand, public noncopyable {
29 InsetIndex(InsetCommandParams const &);
31 Inset * Clone() const { return new InsetIndex(params());}
33 string getScreenLabel() const;
35 EDITABLE Editable() const { return IS_EDITABLE; }
37 void Edit(BufferView *, int, int, unsigned int);
41 class InsetPrintIndex : public InsetCommand, public noncopyable {
44 InsetPrintIndex(InsetCommandParams const &);
46 Inset * Clone() const { return new InsetPrintIndex(params());}
47 /// Updates needed features for this inset.
48 void Validate(LaTeXFeatures & features) const;
50 void Edit(BufferView *, int, int, unsigned int) {}
52 EDITABLE Editable() const{ return NOT_EDITABLE; }
54 bool display() const { return true; }
56 Inset::Code LyxCode() const;
58 string getScreenLabel() const;