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
19 #include "insetcommand.h"
23 /** Used to insert index labels
25 class InsetIndex : public InsetCommand {
28 InsetIndex(InsetCommandParams const &, bool same_id = false);
30 virtual Inset * clone(Buffer const &, bool same_id = false) const {
31 return new InsetIndex(params(), same_id);
34 string const getScreenLabel(Buffer const *) const;
36 EDITABLE editable() const { return IS_EDITABLE; }
38 void edit(BufferView *, int, int, mouse_button::state);
40 void edit(BufferView * bv, bool front = true);
42 Inset::Code lyxCode() const;
44 int docbook(Buffer const *, std::ostream &, bool mixcont) const;
48 class InsetPrintIndex : public InsetCommand {
51 InsetPrintIndex(InsetCommandParams const &, bool same_id = false);
53 virtual Inset * clone(Buffer const &, bool same_id = false) const {
54 return new InsetPrintIndex(params(), same_id);
56 /// Updates needed features for this inset.
57 void validate(LaTeXFeatures & features) const;
59 void edit(BufferView *, int, int, mouse_button::state) {}
61 void edit(BufferView *, bool = true) {}
63 EDITABLE editable() const { return NOT_EDITABLE; }
65 bool display() const { return true; }
67 Inset::Code lyxCode() const;
69 string const getScreenLabel(Buffer const *) const;
71 virtual bool needFullRow() const { return true; }