]> git.lyx.org Git - features.git/blobdiff - src/insets/insetfloatlist.h
proper support for "List of XXX" insets; fix error when there is a list of algorithms...
[features.git] / src / insets / insetfloatlist.h
index caf19cdecd5c39050c4017e463c3c29208d78135..7452a2448e711f37d5f483f3d079c2840b3bd0eb 100644 (file)
@@ -3,10 +3,10 @@
  * ======================================================
  *
  *           LyX, The Document Word Processor
- *      
+ *
  *           Copyright 1995 Matthias Ettrich
  *           Copyright 1996-2001 The LyX Team.
- * 
+ *
  * ====================================================== */
 
 #ifndef INSET_FLOATLIST_H
 #pragma interface
 #endif
 
-#include "insetbutton.h"
+#include "insetcommand.h"
 
 /** Used to insert table of contents
  */
-class InsetFloatList : public InsetButton {
+class InsetFloatList : public InsetCommand {
 public:
        ///
-       InsetFloatList() {}
+       InsetFloatList();
        ///
-       InsetFloatList(string const & type) 
-               : float_type(type) {}
+       InsetFloatList(string const & type);
        ///
        Inset * clone(Buffer const &, bool = false) const {
-               return new InsetFloatList(*this);
+               return new InsetFloatList(getCmdName());
        }
        ///
        string const getScreenLabel(Buffer const *) const;
@@ -55,8 +54,8 @@ public:
        int docbook(Buffer const *, std::ostream &) const { return 0; }
        ///
        int ascii(Buffer const *, std::ostream &, int linelen) const;
-private:
-       string float_type;
+       ///
+       void validate(LaTeXFeatures & features) const;
 };
 
 #endif