]> 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 9f46783116bf8668e1e19b3d2a667ce558812daa..95948c4caced8a80b922ee1df933d37026f1e322 100644 (file)
@@ -15,7 +15,8 @@
 #include "insetcollapsable.h"
 
 
-struct InsetNoteParams {
+class InsetNoteParams {
+public:
        enum Type {
                Note,
                Comment,
@@ -44,7 +45,7 @@ public:
        ///
        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;
        ///
@@ -69,10 +70,12 @@ 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 & cmd);
+       virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
 private:
        friend class InsetNoteParams;