]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloatlist.h
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / insetfloatlist.h
index 42cd403f248cfdc080e50cff1e637f4cd4f1f308..7d9a2360405147703cf3de1a3ab249033ca7f249 100644 (file)
@@ -15,6 +15,9 @@
 
 #include "insetcommand.h"
 
+
+namespace lyx {
+
 /** Used to insert table of contents
  */
 class InsetFloatList : public InsetCommand {
@@ -24,41 +27,36 @@ public:
        ///
        InsetFloatList(std::string const & type);
        ///
-       ~InsetFloatList();
-       ///
-       virtual std::auto_ptr<InsetBase> clone() const {
-               return std::auto_ptr<InsetBase>(new InsetFloatList(getCmdName()));
-       }
-       ///
-       void metrics(MetricsInfo &, Dimension &) const;
-       ///
-       void draw(PainterInfo & pi, int x, int y) const;
-       ///
-       std::string const getScreenLabel(Buffer const &) const;
+       docstring const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       InsetOld::Code lyxCode() const;
+       InsetBase::Code lyxCode() const;
+       ///
+       bool display() const { return true; }
        ///
        void write(Buffer const &, std::ostream &) const;
        ///
        void read(Buffer const &, LyXLex &);
        ///
-       int latex(Buffer const &, std::ostream &,
-                 LatexRunParams const &) const;
-       ///
-       int linuxdoc(Buffer const &, std::ostream &) const { return 0; }
+       int latex(Buffer const &, odocstream &,
+                 OutputParams const &) const;
        ///
-       int docbook(Buffer const &, std::ostream &, bool) const { return 0; }
+       int docbook(Buffer const &, odocstream &,
+                   OutputParams const &) const { return 0; }
        ///
-       int ascii(Buffer const &, std::ostream &, int linelen) const;
+       int plaintext(Buffer const &, odocstream &,
+                     OutputParams const & runparams) const;
        ///
        void validate(LaTeXFeatures & features) const;
-protected:
-       ///
-       virtual
-       dispatch_result
-       priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &);
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const
+       {
+               return std::auto_ptr<InsetBase>(new InsetFloatList(to_ascii(getParam("type"))));
+       }
 };
 
+
+} // namespace lyx
+
 #endif