4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS.
16 #include "InsetCommand.h"
23 /** Used to insert index labels
25 class InsetIndex : public InsetCommand {
28 InsetIndex(InsetCommandParams const &);
30 docstring const getScreenLabel(Buffer const &) const;
32 EDITABLE editable() const { return IS_EDITABLE; }
34 Inset::Code lyxCode() const;
36 int docbook(Buffer const &, odocstream &,
37 OutputParams const &) const;
39 virtual std::auto_ptr<Inset> doClone() const {
40 return std::auto_ptr<Inset>(new InsetIndex(params()));
45 class InsetPrintIndex : public InsetCommand {
48 InsetPrintIndex(InsetCommandParams const &);
49 /// Updates needed features for this inset.
50 void validate(LaTeXFeatures & features) const;
52 EDITABLE editable() const { return NOT_EDITABLE; }
54 Inset::Code lyxCode() const;
56 DisplayType display() const { return AlignCenter; }
58 docstring const getScreenLabel(Buffer const &) const;
60 virtual std::auto_ptr<Inset> doClone() const {
61 return std::auto_ptr<Inset>(new InsetPrintIndex(params()));