X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetNomencl.h;h=4d11a47d793c0bfd7f99f442558440dc300053d0;hb=2748e33be542862f94af4a131a17dde5ebc064b2;hp=d1437f243e3e258e82372ce67c080452192f7c88;hpb=1ef605f6254ef3f3b8cec5440a2e67e6f23a707b;p=lyx.git diff --git a/src/insets/InsetNomencl.h b/src/insets/InsetNomencl.h index d1437f243e..4d11a47d79 100644 --- a/src/insets/InsetNomencl.h +++ b/src/insets/InsetNomencl.h @@ -40,8 +40,14 @@ public: /// Updates needed features for this inset. void validate(LaTeXFeatures & features) const; /// + void addToToc(DocIterator const & di, bool output_active, + UpdateType utype, TocBackend & backend) const; + /// InsetCode lyxCode() const { return NOMENCL_CODE; } /// + int plaintext(odocstringstream & ods, OutputParams const & op, + size_t max_length = INT_MAX) const; + /// int docbook(odocstream &, OutputParams const &) const; /// Does nothing at the moment. docstring xhtml(XHTMLStream &, OutputParams const &) const; @@ -52,9 +58,9 @@ public: /// static ParamInfo const & findInfo(std::string const &); /// - static std::string defaultCommand() { return "nomenclature"; }; + static std::string defaultCommand() { return "nomenclature"; } /// - static bool isCompatibleCommand(std::string const & s) + static bool isCompatibleCommand(std::string const & s) { return s == "nomenclature"; } //@} @@ -87,7 +93,7 @@ public: 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; @@ -96,9 +102,9 @@ public: /// DisplayType display() const { return AlignCenter; } /// - int latex(otexstream &, OutputParams const &) const; + void latex(otexstream &, OutputParams const &) const; /// - docstring contextMenuName() const; + std::string contextMenuName() const; //@} /// \name Static public methods obligated for InsetCommand derived classes @@ -106,9 +112,9 @@ public: /// static ParamInfo const & findInfo(std::string const &); /// - static std::string defaultCommand() { return "printnomenclature"; }; + static std::string defaultCommand() { return "printnomenclature"; } /// - static bool isCompatibleCommand(std::string const & s) + static bool isCompatibleCommand(std::string const & s) { return s == "printnomenclature"; } //@} @@ -121,6 +127,8 @@ private: bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus & status) const; /// void doDispatch(Cursor & cur, FuncRequest & cmd); + /// + docstring layoutName() const { return from_ascii("PrintNomencl"); } //@} /// \name Private functions inherited from InsetCommand class