]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNomencl.h
Fix GRAPHICS_EDIT of InsetGraphics
[lyx.git] / src / insets / InsetNomencl.h
index b2bc62d4740e9011b3bc6857664833897bcb5e2f..9fc64bcf11716bdc5df719604cd6ba6bfb67a9fd 100644 (file)
@@ -28,7 +28,7 @@ public:
        ///
        InsetNomencl(InsetCommandParams const &);
        ///
-       docstring const getScreenLabel(Buffer const &) const;
+       docstring screenLabel() const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        /// Updates needed features for this inset.
@@ -36,21 +36,18 @@ public:
        ///
        InsetCode lyxCode() const { return NOMENCL_CODE; }
        ///
-       int docbook(Buffer const &, odocstream &,
-                   OutputParams const &) const;
+       int docbook(odocstream &, OutputParams const &) const;
        ///
        int docbookGlossary(odocstream &) const;
        ///
-       static CommandInfo const * findInfo(std::string 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 Inset * clone() const {
-               return new InsetNomencl(params());
-       }
+       Inset * clone() const { return new InsetNomencl(*this); }
        /// unique id for this nomenclature entry for docbook export
        docstring nomenclature_entry_id;
 };
@@ -69,25 +66,22 @@ public:
        ///
        EDITABLE editable() const { return NOT_EDITABLE; }
        ///
-       int docbook(Buffer const &, odocstream &,
-                   OutputParams const &) const;
+       int docbook(odocstream &, OutputParams const &) const;
        ///
        InsetCode lyxCode() const;
        ///
        DisplayType display() const { return AlignCenter; }
        ///
-       docstring const getScreenLabel(Buffer const &) const;
+       docstring screenLabel() const;
        ///
-       static CommandInfo const * findInfo(std::string 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 Inset * clone() const {
-               return new InsetPrintNomencl(params());
-       }
+       Inset * clone() const { return new InsetPrintNomencl(*this); }
 };