]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloatlist.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insetfloatlist.h
index 8854eea077e77dfd20d7be0ac153ba0814b9b890..0808119bf67623375ab6bdb3b028fdeba8bdba5f 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
@@ -15,6 +15,9 @@
 
 #include "insetcommand.h"
 
+
+namespace lyx {
+
 /** Used to insert table of contents
  */
 class InsetFloatList : public InsetCommand {
@@ -22,38 +25,38 @@ public:
        ///
        InsetFloatList();
        ///
-       InsetFloatList(string const & type);
-       ///
-       ~InsetFloatList();
-       ///
-       virtual std::auto_ptr<InsetBase> clone() const {
-               return std::auto_ptr<InsetBase>(new InsetFloatList(getCmdName()));
-       }
-       ///
-       dispatch_result localDispatch(FuncRequest const & cmd);
+       InsetFloatList(std::string const & type);
        ///
-       string const getScreenLabel(Buffer const *) const;
+       docstring const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       bool display() const { return true; }
-       ///
-       InsetOld::Code lyxCode() const;
+       InsetBase::Code lyxCode() const;
        ///
-       void write(Buffer const *, std::ostream &) const;
+       bool display() const { return true; }
        ///
-       void read(Buffer const *, LyXLex &);
+       void write(Buffer const &, std::ostream &) const;
        ///
-       int latex(Buffer const *, std::ostream &,
-                 LatexRunParams const &) const;
+       void read(Buffer const &, LyXLex &);
        ///
-       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;
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const
+       {
+               return std::auto_ptr<InsetBase>(new InsetFloatList(to_ascii(getParam("type"))));
+       }
 };
 
+
+} // namespace lyx
+
 #endif