2006-11-04 17:55:36 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
2007-04-25 01:24:38 +00:00
|
|
|
|
* \file InsetNomencl.h
|
2006-11-04 17:55:36 +00:00
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
* \author O. U. Baran
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef INSET_NOMENCL_H
|
|
|
|
|
#define INSET_NOMENCL_H
|
|
|
|
|
|
|
|
|
|
|
2007-04-25 01:24:38 +00:00
|
|
|
|
#include "InsetCommand.h"
|
2006-11-04 17:55:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
|
|
|
|
|
class LaTeXFeatures;
|
|
|
|
|
|
2007-04-29 22:21:00 +00:00
|
|
|
|
/** Used to insert nomenclature entries
|
2006-11-04 17:55:36 +00:00
|
|
|
|
*/
|
|
|
|
|
class InsetNomencl : public InsetCommand {
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
InsetNomencl(InsetCommandParams const &);
|
|
|
|
|
///
|
|
|
|
|
docstring const getScreenLabel(Buffer const &) const;
|
|
|
|
|
///
|
|
|
|
|
EDITABLE editable() const { return IS_EDITABLE; }
|
|
|
|
|
/// Updates needed features for this inset.
|
|
|
|
|
void validate(LaTeXFeatures & features) const;
|
|
|
|
|
///
|
2007-10-16 16:48:21 +00:00
|
|
|
|
InsetCode lyxCode() const { return NOMENCL_CODE; }
|
2006-11-04 17:55:36 +00:00
|
|
|
|
///
|
|
|
|
|
int docbook(Buffer const &, odocstream &,
|
|
|
|
|
OutputParams const &) const;
|
2006-11-10 15:45:42 +00:00
|
|
|
|
///
|
|
|
|
|
int docbookGlossary(odocstream &) const;
|
2006-11-04 17:55:36 +00:00
|
|
|
|
private:
|
2007-08-30 18:03:17 +00:00
|
|
|
|
virtual Inset * clone() const {
|
|
|
|
|
return new InsetNomencl(params());
|
2006-11-04 17:55:36 +00:00
|
|
|
|
}
|
2007-04-29 22:21:00 +00:00
|
|
|
|
/// unique id for this nomenclature entry for docbook export
|
|
|
|
|
docstring nomenclature_entry_id;
|
2006-11-04 17:55:36 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class InsetPrintNomencl : public InsetCommand {
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
InsetPrintNomencl(InsetCommandParams const &);
|
|
|
|
|
/// Updates needed features for this inset.
|
|
|
|
|
void validate(LaTeXFeatures & features) const;
|
|
|
|
|
// FIXME: This should be editable to set the label width (stored
|
|
|
|
|
// in params_["labelwidth"]).
|
|
|
|
|
// Currently the width can be read from file and written, but not
|
|
|
|
|
// changed.
|
|
|
|
|
///
|
|
|
|
|
EDITABLE editable() const { return NOT_EDITABLE; }
|
|
|
|
|
///
|
|
|
|
|
int docbook(Buffer const &, odocstream &,
|
|
|
|
|
OutputParams const &) const;
|
|
|
|
|
///
|
2007-10-13 09:04:52 +00:00
|
|
|
|
InsetCode lyxCode() const;
|
2006-11-04 17:55:36 +00:00
|
|
|
|
///
|
2007-05-18 14:32:29 +00:00
|
|
|
|
DisplayType display() const { return AlignCenter; }
|
2006-11-04 17:55:36 +00:00
|
|
|
|
///
|
|
|
|
|
docstring const getScreenLabel(Buffer const &) const;
|
|
|
|
|
private:
|
2007-08-30 18:03:17 +00:00
|
|
|
|
virtual Inset * clone() const {
|
|
|
|
|
return new InsetPrintNomencl(params());
|
2006-11-04 17:55:36 +00:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
|
|
#endif
|