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 &);
29 virtual Inset * clone(Buffer const &) const {
30 return new InsetIndex(params());
33 dispatch_result localDispatch(FuncRequest const & cmd);
35 string const getScreenLabel(Buffer const *) const;
37 EDITABLE editable() const { return IS_EDITABLE; }
39 Inset::Code lyxCode() const;
41 int docbook(Buffer const *, std::ostream &, bool mixcont) const;
45 class InsetPrintIndex : public InsetCommand {
48 InsetPrintIndex(InsetCommandParams const &);
52 Inset * clone(Buffer const &) const {
53 return new InsetPrintIndex(params());
56 //dispatch_result localDispatch(FuncRequest const & cmd);
57 /// Updates needed features for this inset.
58 void validate(LaTeXFeatures & features) const;
60 EDITABLE editable() const { return NOT_EDITABLE; }
62 bool display() const { return true; }
64 Inset::Code lyxCode() const;
66 string const getScreenLabel(Buffer const *) const;
68 virtual bool needFullRow() const { return true; }