]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNote.h
Fix Bug 3947: BibTeX allows parentheses in the key (even if the whole entry is delimi...
[lyx.git] / src / insets / InsetNote.h
index f431abdbdfd3cec32e9884513ac99f7e6921aab8..a17889aba4d173e8ac93e5b0f965a81bfe516f96 100644 (file)
@@ -50,13 +50,19 @@ 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, Lexer & lex);
        ///
        void setButtonLabel();
+       ///
+       virtual Color_color backgroundColor() const;
        /// show the note dialog
        bool showInsetDialog(BufferView * bv) const;
        ///
@@ -78,7 +84,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 +98,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_; }
        ///