]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNomencl.h
Fix text frame drawing.
[lyx.git] / src / insets / InsetNomencl.h
index 96efc4bf4ce4ea0539402b3ecbf2643be5f08b91..499f5950e3db92860396aa3cbc2e388da35f68c4 100644 (file)
@@ -41,8 +41,8 @@ public:
        ///
        int docbookGlossary(odocstream &) const;
 private:
-       virtual std::auto_ptr<Inset> doClone() const {
-               return std::auto_ptr<Inset>(new InsetNomencl(params()));
+       virtual Inset * clone() const {
+               return new InsetNomencl(params());
        }
        /// unique id for this nomenclature entry for docbook export
        docstring nomenclature_entry_id;
@@ -67,12 +67,12 @@ public:
        ///
        Inset::Code lyxCode() const;
        ///
-       bool display() const { return true; }
+       DisplayType display() const { return AlignCenter; }
        ///
        docstring const getScreenLabel(Buffer const &) const;
 private:
-       virtual std::auto_ptr<Inset> doClone() const {
-               return std::auto_ptr<Inset>(new InsetPrintNomencl(params()));
+       virtual Inset * clone() const {
+               return new InsetPrintNomencl(params());
        }
 };