]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNote.h
Fix text frame drawing.
[lyx.git] / src / insets / InsetNote.h
index a17889aba4d173e8ac93e5b0f965a81bfe516f96..0cb7313305276614e6f2b4880847b0b8b3be5551 100644 (file)
@@ -52,7 +52,7 @@ public:
        ///
        Inset::Code lyxCode() const { return Inset::NOTE_CODE; }
        ///
-       docstring name() const { return from_ascii("Note"); }
+       docstring name() const;
        /// framed and shaded notes are displayed
        virtual DisplayType display() const;
        ///
@@ -61,8 +61,6 @@ public:
        void read(Buffer const & buf, Lexer & lex);
        ///
        void setButtonLabel();
-       ///
-       virtual Color_color backgroundColor() const;
        /// show the note dialog
        bool showInsetDialog(BufferView * bv) const;
        ///
@@ -77,6 +75,8 @@ public:
        InsetNoteParams const & params() const { return params_; }
        ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+       // Update the counters of this inset and of its contents
+       virtual void updateLabels(Buffer const &, ParIterator const &);
 protected:
        InsetNote(InsetNote const &);
        ///
@@ -84,7 +84,7 @@ protected:
 private:
        friend class InsetNoteParams;
 
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
 
        /// used by the constructors
        void init();