]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNote.h
InsetListings: change the interface of diaplay function and allow AlignLeft. Applied...
[lyx.git] / src / insets / InsetNote.h
index f431abdbdfd3cec32e9884513ac99f7e6921aab8..e2d2ac31d3df9b784f29644fb8e3c0639652d45a 100644 (file)
@@ -50,7 +50,9 @@ public:
        ///
        virtual docstring const editMessage() const;
        ///
-       InsetBase::Code lyxCode() const { return InsetBase::NOTE_CODE; }
+       Inset::Code lyxCode() const { return Inset::NOTE_CODE; }
+       ///
+       docstring name() const { return from_ascii("Note"); }
        ///
        void write(Buffer const &, std::ostream &) const;
        ///
@@ -78,7 +80,7 @@ protected:
 private:
        friend class InsetNoteParams;
 
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual std::auto_ptr<Inset> doClone() const;
 
        /// used by the constructors
        void init();
@@ -92,7 +94,7 @@ public:
        ///
        InsetNoteMailer(InsetNote & inset);
        ///
-       virtual InsetBase & inset() const { return inset_; }
+       virtual Inset & inset() const { return inset_; }
        ///
        virtual std::string const & name() const { return name_; }
        ///