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
10 * Full author contact details are available in file CREDITS.
13 #ifndef INSET_NOMENCL_H
14 #define INSET_NOMENCL_H
17 #include "InsetCommand.h"
24 /** Used to insert nomenclature entries
26 class InsetNomencl : public InsetCommand {
29 InsetNomencl(InsetCommandParams const &);
31 docstring const getScreenLabel(Buffer const &) const;
33 EDITABLE editable() const { return IS_EDITABLE; }
34 /// Updates needed features for this inset.
35 void validate(LaTeXFeatures & features) const;
37 Inset::Code lyxCode() const;
39 int docbook(Buffer const &, odocstream &,
40 OutputParams const &) const;
42 int docbookGlossary(odocstream &) const;
44 virtual std::auto_ptr<Inset> doClone() const {
45 return std::auto_ptr<Inset>(new InsetNomencl(params()));
47 /// unique id for this nomenclature entry for docbook export
48 docstring nomenclature_entry_id;
52 class InsetPrintNomencl : public InsetCommand {
55 InsetPrintNomencl(InsetCommandParams const &);
56 /// Updates needed features for this inset.
57 void validate(LaTeXFeatures & features) const;
58 // FIXME: This should be editable to set the label width (stored
59 // in params_["labelwidth"]).
60 // Currently the width can be read from file and written, but not
63 EDITABLE editable() const { return NOT_EDITABLE; }
65 int docbook(Buffer const &, odocstream &,
66 OutputParams const &) const;
68 Inset::Code lyxCode() const;
70 bool display() const { return true; }
72 docstring const getScreenLabel(Buffer const &) const;
74 virtual std::auto_ptr<Inset> doClone() const {
75 return std::auto_ptr<Inset>(new InsetPrintNomencl(params()));