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 std::auto_ptr<InsetBase> clone() const {
30 return std::auto_ptr<InsetBase>(new InsetIndex(params()));
33 std::string const getScreenLabel(Buffer const &) const;
35 EDITABLE editable() const { return IS_EDITABLE; }
37 InsetOld::Code lyxCode() const;
39 int docbook(Buffer const &, std::ostream &,
40 LatexRunParams const &) const;
45 priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &);
49 class InsetPrintIndex : public InsetCommand {
52 InsetPrintIndex(InsetCommandParams const &);
56 virtual std::auto_ptr<InsetBase> clone() const {
57 return std::auto_ptr<InsetBase>(new InsetPrintIndex(params()));
59 /// Updates needed features for this inset.
60 void validate(LaTeXFeatures & features) const;
62 EDITABLE editable() const { return NOT_EDITABLE; }
64 InsetOld::Code lyxCode() const;
66 bool display() const { return true; }
68 std::string const getScreenLabel(Buffer const &) const;
70 void metrics(MetricsInfo &, Dimension &) const;
72 void draw(PainterInfo & pi, int x, int y) const;
75 mutable unsigned int center_indent_;