]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNomencl.h
* src/paragraph_funcs.cpp (breakParagraph): change parameter 'flag' to
[lyx.git] / src / insets / InsetNomencl.h
index c76669badf8a65c3cf67ef38764d83f157a58732..499f5950e3db92860396aa3cbc2e388da35f68c4 100644 (file)
@@ -21,7 +21,7 @@ namespace lyx {
 
 class LaTeXFeatures;
 
-/** Used to insert glossary labels
+/** Used to insert nomenclature entries
   */
 class InsetNomencl : public InsetCommand {
 public:
@@ -41,11 +41,11 @@ 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 glossary entry for docbook export
-       docstring glossary_entry_id;
+       /// 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());
        }
 };