]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetMarginal.h
Make logic clearer, with help from Lars.
[lyx.git] / src / insets / InsetMarginal.h
index 6fce74306a17369571aa75f2535221054cb03cf6..c3f83001925c75b5a9dbf252c29aea9ca5447aa3 100644 (file)
@@ -27,7 +27,9 @@ public:
        ///
        InsetMarginal(BufferParams const &);
        ///
-       InsetBase::Code lyxCode() const { return InsetBase::MARGIN_CODE; }
+       Inset::Code lyxCode() const { return Inset::MARGIN_CODE; }
+       ///
+       docstring name() const { return from_ascii("Marginal"); }
        ///
        int latex(Buffer const &, odocstream &,
                  OutputParams const &) const;
@@ -42,7 +44,7 @@ public:
 protected:
        InsetMarginal(InsetMarginal const &);
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual std::auto_ptr<Inset> doClone() const;
 };