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 glossary labels
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 InsetBase::Code lyxCode() const;
39 int docbook(Buffer const &, odocstream &,
40 OutputParams const &) const;
42 virtual std::auto_ptr<InsetBase> doClone() const {
43 return std::auto_ptr<InsetBase>(new InsetNomencl(params()));
48 class InsetPrintNomencl : public InsetCommand {
51 InsetPrintNomencl(InsetCommandParams const &);
52 /// Updates needed features for this inset.
53 void validate(LaTeXFeatures & features) const;
54 // FIXME: This should be editable to set the label width (stored
55 // in params_["labelwidth"]).
56 // Currently the width can be read from file and written, but not
59 EDITABLE editable() const { return NOT_EDITABLE; }
61 int docbook(Buffer const &, odocstream &,
62 OutputParams const &) const;
64 InsetBase::Code lyxCode() const;
66 bool display() const { return true; }
68 docstring const getScreenLabel(Buffer const &) const;
70 virtual std::auto_ptr<InsetBase> doClone() const {
71 return std::auto_ptr<InsetBase>(new InsetPrintNomencl(params()));