]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetwrap.h
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insetwrap.h
index 60a8872a87b7d0f36c22ed2a30cc1a6f9e257bf4..722acce017c7eed1de69813dd96bb9a8dac8414b 100644 (file)
@@ -17,7 +17,8 @@
 #include "lyxlength.h"
 
 
-struct InsetWrapParams {
+class InsetWrapParams {
+public:
        ///
        void write(std::ostream &) const;
        ///
@@ -47,9 +48,7 @@ public:
        ///
        void validate(LaTeXFeatures & features) const;
        ///
-       virtual std::auto_ptr<InsetBase> clone() const;
-       ///
-       InsetOld::Code lyxCode() const { return InsetOld::WRAP_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::WRAP_CODE; }
        ///
        int latex(Buffer const &, std::ostream &,
                  OutputParams const &) const;
@@ -59,19 +58,21 @@ public:
        ///
        std::string const editMessage() const;
        ///
-       bool insetAllowed(InsetOld::Code) const;
+       bool insetAllowed(InsetBase::Code) const;
        ///
        void addToToc(lyx::toc::TocList &, Buffer const &) const;
        ///
        bool showInsetDialog(BufferView *) const;
        ///
        InsetWrapParams const & params() const { return params_; }
+       ///
+       bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const;
 protected:
        ///
-       virtual
-       DispatchResult
-       priv_dispatch(BufferView & bv, FuncRequest const & cmd);
+       virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
+
        ///
        InsetWrapParams params_;
 };