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 //InsetIndex(InsetCommandParams const &, bool same_id);
31 virtual Inset * clone(Buffer const &) const {
32 return new InsetIndex(params());
35 //virtual Inset * clone(Buffer const &, bool same_id) const {
36 // return new InsetIndex(params(), same_id);
39 dispatch_result localDispatch(FuncRequest const & cmd);
41 string const getScreenLabel(Buffer const *) const;
43 EDITABLE editable() const { return IS_EDITABLE; }
45 Inset::Code lyxCode() const;
47 int docbook(Buffer const *, std::ostream &, bool mixcont) const;
51 class InsetPrintIndex : public InsetCommand {
54 InsetPrintIndex(InsetCommandParams const &);
56 //InsetPrintIndex(InsetCommandParams const &, bool same_id);
60 Inset * clone(Buffer const &) const {
61 return new InsetPrintIndex(params());
64 //Inset * clone(Buffer const &, bool same_id) const {
65 // return new InsetPrintIndex(params(), same_id);
68 //dispatch_result localDispatch(FuncRequest const & cmd);
69 /// Updates needed features for this inset.
70 void validate(LaTeXFeatures & features) const;
72 EDITABLE editable() const { return NOT_EDITABLE; }
74 bool display() const { return true; }
76 Inset::Code lyxCode() const;
78 string const getScreenLabel(Buffer const *) const;
80 virtual bool needFullRow() const { return true; }