/// Updates needed features for this inset.
void validate(LaTeXFeatures & features) const;
///
- Inset::Code lyxCode() const;
+ InsetCode lyxCode() const { return NOMENCL_CODE; }
///
int docbook(Buffer const &, odocstream &,
OutputParams const &) const;
///
int docbookGlossary(odocstream &) const;
+ ///
+ static ParamInfo const & findInfo(std::string const &);
+ ///
+ static std::string defaultCommand() { return "nomenclature"; };
+ ///
+ static bool isCompatibleCommand(std::string const & s)
+ { return s == "nomenclature"; }
private:
- virtual std::auto_ptr<Inset> doClone() const {
- return std::auto_ptr<Inset>(new InsetNomencl(params()));
+ virtual Inset * clone() const {
+ return new InsetNomencl(params());
}
/// unique id for this nomenclature entry for docbook export
docstring nomenclature_entry_id;
int docbook(Buffer const &, odocstream &,
OutputParams const &) const;
///
- Inset::Code lyxCode() const;
+ InsetCode lyxCode() const;
///
- bool display() const { return true; }
+ DisplayType display() const { return AlignCenter; }
///
docstring const getScreenLabel(Buffer const &) const;
+ ///
+ static ParamInfo const & findInfo(std::string const &);
+ ///
+ static std::string defaultCommand() { return "printnomenclature"; };
+ ///
+ static bool isCompatibleCommand(std::string const & s)
+ { return s == "printnomenclature"; }
private:
- virtual std::auto_ptr<Inset> doClone() const {
- return std::auto_ptr<Inset>(new InsetPrintNomencl(params()));
+ virtual Inset * clone() const {
+ return new InsetPrintNomencl(params());
}
};