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"
20 /** Used to insert index labels
22 class InsetIndex : public InsetCommand {
25 InsetIndex(InsetCommandParams const &);
27 lyx::docstring const getScreenLabel(Buffer const &) const;
29 EDITABLE editable() const { return IS_EDITABLE; }
31 InsetBase::Code lyxCode() const;
33 int docbook(Buffer const &, std::ostream &,
34 OutputParams const &) const;
36 virtual std::auto_ptr<InsetBase> doClone() const {
37 return std::auto_ptr<InsetBase>(new InsetIndex(params()));
42 class InsetPrintIndex : public InsetCommand {
45 InsetPrintIndex(InsetCommandParams const &);
46 /// Updates needed features for this inset.
47 void validate(LaTeXFeatures & features) const;
49 EDITABLE editable() const { return NOT_EDITABLE; }
51 InsetBase::Code lyxCode() const;
53 bool display() const { return true; }
55 lyx::docstring const getScreenLabel(Buffer const &) const;
57 virtual std::auto_ptr<InsetBase> doClone() const {
58 return std::auto_ptr<InsetBase>(new InsetPrintIndex(params()));