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 InsetCode lyxCode() const { return NOMENCL_CODE; }
39 int docbook(Buffer const &, odocstream &,
40 OutputParams const &) const;
42 int docbookGlossary(odocstream &) const;
44 static CommandInfo const * findInfo(std::string const &);
46 static std::string defaultCommand() { return "nomenclature"; };
48 static bool isCompatibleCommand(std::string const & s)
49 { return s == "nomenclature"; }
51 virtual Inset * clone() const {
52 return new InsetNomencl(params());
54 /// unique id for this nomenclature entry for docbook export
55 docstring nomenclature_entry_id;
59 class InsetPrintNomencl : public InsetCommand {
62 InsetPrintNomencl(InsetCommandParams const &);
63 /// Updates needed features for this inset.
64 void validate(LaTeXFeatures & features) const;
65 // FIXME: This should be editable to set the label width (stored
66 // in params_["labelwidth"]).
67 // Currently the width can be read from file and written, but not
70 EDITABLE editable() const { return NOT_EDITABLE; }
72 int docbook(Buffer const &, odocstream &,
73 OutputParams const &) const;
75 InsetCode lyxCode() const;
77 DisplayType display() const { return AlignCenter; }
79 docstring const getScreenLabel(Buffer const &) const;
81 static CommandInfo const * findInfo(std::string const &);
83 static std::string defaultCommand() { return "printnomenclature"; };
85 static bool isCompatibleCommand(std::string const & s)
86 { return s == "printnomenclature"; }
88 virtual Inset * clone() const {
89 return new InsetPrintNomencl(params());