]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNomencl.h
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetNomencl.h
index c2eedc456ffdb8037ea5bba6cd3676f8df4e1661..b2bc62d4740e9011b3bc6857664833897bcb5e2f 100644 (file)
@@ -34,12 +34,19 @@ public:
        /// Updates needed features for this inset.
        void validate(LaTeXFeatures & features) const;
        ///
-       InsetCode lyxCode() const;
+       InsetCode lyxCode() const { return NOMENCL_CODE; }
        ///
        int docbook(Buffer const &, odocstream &,
                    OutputParams const &) const;
        ///
        int docbookGlossary(odocstream &) const;
+       ///
+       static CommandInfo const * findInfo(std::string const &);
+       ///
+       static std::string defaultCommand() { return "nomenclature"; };
+       ///
+       static bool isCompatibleCommand(std::string const & s) 
+               { return s == "nomenclature"; }
 private:
        virtual Inset * clone() const {
                return new InsetNomencl(params());
@@ -70,6 +77,13 @@ public:
        DisplayType display() const { return AlignCenter; }
        ///
        docstring const getScreenLabel(Buffer const &) const;
+       ///
+       static CommandInfo const * findInfo(std::string const &);
+       ///
+       static std::string defaultCommand() { return "printnomenclature"; };
+       ///
+       static bool isCompatibleCommand(std::string const & s) 
+               { return s == "printnomenclature"; }
 private:
        virtual Inset * clone() const {
                return new InsetPrintNomencl(params());