]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetnote.h
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insetnote.h
index 83cb528ae750e036f61999f2fc622213f94aa5d1..95948c4caced8a80b922ee1df933d37026f1e322 100644 (file)
@@ -15,7 +15,8 @@
 #include "insetcollapsable.h"
 
 
-struct InsetNoteParams {
+class InsetNoteParams {
+public:
        enum Type {
                Note,
                Comment,
@@ -39,16 +40,12 @@ class InsetNote : public InsetCollapsable {
 public:
        ///
        InsetNote(BufferParams const &, std::string const &);
-       /// Copy constructor
-       InsetNote(InsetNote const &);
        ///
        ~InsetNote();
        ///
-       virtual std::auto_ptr<InsetBase> clone() const;
-       ///
        std::string const editMessage() const;
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::NOTE_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::NOTE_CODE; }
        ///
        void write(Buffer const &, std::ostream &) const;
        ///
@@ -73,12 +70,17 @@ public:
        void validate(LaTeXFeatures &) const;
        ///
        InsetNoteParams const & params() const { return params_; }
+       ///
+       bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const;
 protected:
+       InsetNote(InsetNote const &);
        ///
-       virtual void priv_dispatch(LCursor & cur, FuncRequest const & cmd);
+       virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
 private:
        friend class InsetNoteParams;
 
+       virtual std::auto_ptr<InsetBase> doClone() const;
+
        /// used by the constructors
        void init();
        ///