]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloatlist.h
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insetfloatlist.h
index ab0177cc43c274867563e4a533e7105ce03df500..4a7aaa317de2cf16ddea2a6bd968d667d28a18a4 100644 (file)
@@ -6,7 +6,7 @@
  *
  * \author Lars Gullik Bjønnes
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef INSET_FLOATLIST_H
@@ -22,38 +22,38 @@ public:
        ///
        InsetFloatList();
        ///
-       InsetFloatList(string const & type);
+       InsetFloatList(std::string const & type);
        ///
-       ~InsetFloatList();
-       ///
-       Inset * clone() const {
-               return new InsetFloatList(getCmdName());
-       }
-       ///
-       dispatch_result localDispatch(FuncRequest const & cmd);
-       ///
-       string const getScreenLabel(Buffer const *) const;
+       std::string const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       bool display() const { return true; }
+       InsetBase::Code lyxCode() const;
        ///
-       Inset::Code lyxCode() const;
+       bool display() const { return true; }
        ///
-       void write(Buffer const *, std::ostream &) const;
+       void write(Buffer const &, std::ostream &) const;
        ///
-       void read(Buffer const *, LyXLex &);
+       void read(Buffer const &, LyXLex &);
        ///
-       int latex(Buffer const *, std::ostream &,
-                 LatexRunParams const &) const;
+       int latex(Buffer const &, std::ostream &,
+                 OutputParams const &) const;
        ///
-       int linuxdoc(Buffer const *, std::ostream &) const { return 0; }
+       int linuxdoc(Buffer const &, std::ostream &,
+                    OutputParams const &) const { return 0; }
        ///
-       int docbook(Buffer const *, std::ostream &, bool) const { return 0; }
+       int docbook(Buffer const &, std::ostream &,
+                   OutputParams const &) const { return 0; }
        ///
-       int ascii(Buffer const *, std::ostream &, int linelen) const;
+       int plaintext(Buffer const &, std::ostream &,
+                 OutputParams const & runparams) const;
        ///
        void validate(LaTeXFeatures & features) const;
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const
+       {
+               return std::auto_ptr<InsetBase>(new InsetFloatList(getCmdName()));
+       }
 };
 
 #endif