]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNote.h
Choose a delimiter for lstinline (braces can not be used for some listings version)
[lyx.git] / src / insets / InsetNote.h
index 45e2347a27c7de1a37b55ee489053820a66321d2..97cd5d4256a78f941c266b385302a7d38f2125b8 100644 (file)
@@ -32,7 +32,7 @@ public:
        ///
        void write(std::ostream & os) const;
        ///
-       void read(LyXLex & lex);
+       void read(Lexer & lex);
        ///
        Type type;
 };
@@ -50,11 +50,15 @@ 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"); }
+       /// framed and shaded notes are displayed
+       virtual DisplayType display() const;
        ///
        void write(Buffer const &, std::ostream &) const;
        ///
-       void read(Buffer const & buf, LyXLex & lex);
+       void read(Buffer const & buf, Lexer & lex);
        ///
        void setButtonLabel();
        /// show the note dialog
@@ -70,15 +74,15 @@ public:
        ///
        InsetNoteParams const & params() const { return params_; }
        ///
-       bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const;
+       bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
 protected:
        InsetNote(InsetNote const &);
        ///
-       virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
+       virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
 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 +96,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_; }
        ///