class InsetNomencl : public InsetCommand {
public:
///
- InsetNomencl(InsetCommandParams const &);
+ InsetNomencl(Buffer * buf, InsetCommandParams const &);
+
///
- docstring screenLabel() const;
+ int docbookGlossary(odocstream &) const;
+
+ /// \name Public functions inherited from Inset class
+ //@{
///
docstring toolTip(BufferView const & bv, int x, int y) const;
///
InsetCode lyxCode() const { return NOMENCL_CODE; }
///
int docbook(odocstream &, OutputParams const &) const;
- ///
- int docbookGlossary(odocstream &) const;
+ /// Does nothing at the moment.
+ docstring xhtml(XHTMLStream &, OutputParams const &) const;
+ //@}
+
+ /// \name Static public methods obligated for InsetCommand derived classes
+ //@{
///
static ParamInfo const & findInfo(std::string const &);
///
///
static bool isCompatibleCommand(std::string const & s)
{ return s == "nomenclature"; }
+ //@}
+
private:
+ /// \name Private functions inherited from Inset class
+ //@{
+ ///
Inset * clone() const { return new InsetNomencl(*this); }
+ //@}
+
+ /// \name Private functions inherited from InsetCommand class
+ //@{
+ ///
+ docstring screenLabel() const;
+ //@}
+
/// unique id for this nomenclature entry for docbook export
docstring nomenclature_entry_id;
};
class InsetPrintNomencl : public InsetCommand {
public:
///
- InsetPrintNomencl(InsetCommandParams const &);
+ InsetPrintNomencl(Buffer * buf, InsetCommandParams const &);
+
+ /// \name Public functions inherited from Inset class
+ //@{
/// Updates needed features for this inset.
void validate(LaTeXFeatures & features) const;
///
int docbook(odocstream &, OutputParams const &) const;
+ /// Does nothing at the moment.
+ docstring xhtml(XHTMLStream &, OutputParams const &) const;
///
InsetCode lyxCode() const;
///
+ bool hasSettings() const { return true; }
+ ///
DisplayType display() const { return AlignCenter; }
///
- docstring screenLabel() const;
+ void latex(otexstream &, OutputParams const &) const;
+ ///
+ docstring contextMenuName() const;
+ //@}
+
+ /// \name Static public methods obligated for InsetCommand derived classes
+ //@{
///
static ParamInfo const & findInfo(std::string const &);
///
///
static bool isCompatibleCommand(std::string const & s)
{ return s == "printnomenclature"; }
- ///
- int latex(odocstream &, OutputParams const &) const;
+ //@}
+
private:
+ /// \name Private functions inherited from Inset class
+ //@{
+ ///
Inset * clone() const { return new InsetPrintNomencl(*this); }
///
- friend docstring nomenclWidest(Buffer const & buffer);
-};
-
-/// return the widest symbol of all nomenclature entries of the document
-docstring nomenclWidest(Buffer const &);
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus & status) const;
+ ///
+ void doDispatch(Cursor & cur, FuncRequest & cmd);
+ //@}
+ /// \name Private functions inherited from InsetCommand class
+ //@{
+ ///
+ docstring screenLabel() const;
+ //@}
+};
} // namespace lyx