]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloatlist.h
Switch from SigC signals to boost::signals
[lyx.git] / src / insets / insetfloatlist.h
index 0e449f9e6254a74631f41b63de7c5f347582d36c..19b03e8dbefff46f674f66453670a66460a497c9 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 &) const {
-               return new InsetFloatList(*this);
+       Inset * clone(Buffer const &, bool = false) const {
+               return new InsetFloatList(getCmdName());
        }
-       ///
-       string const getScreenLabel() const;
        ///
-       void Edit(BufferView * bv, int, int, unsigned int);
-        ///
-       EDITABLE Editable() const { return IS_EDITABLE; }
+       string const getScreenLabel(Buffer const *) const;
+       ///
+       void edit(BufferView * bv, int, int, mouse_button::state);
+       ///
+       void edit(BufferView * bv, bool front = true);
+       ///
+       EDITABLE editable() const { return IS_EDITABLE; }
        ///
        bool display() const { return true; }
        ///
-       Inset::Code LyxCode() const;
+       Inset::Code lyxCode() const;
+       ///
+       void write(Buffer const *, std::ostream &) const;
        ///
-       void Write(Buffer const *, ostream &) const;
+       void read(Buffer const *, LyXLex &);
        ///
-       void Read(Buffer const *, LyXLex &);
+       int latex(Buffer const *, std::ostream &, bool, bool) const;
        ///
-       int Latex(Buffer const *, ostream &, bool, bool) const;
+       int linuxdoc(Buffer const *, std::ostream &) const { return 0; }
        ///
-       int Linuxdoc(Buffer const *, ostream &) const { return 0; }
+       int docbook(Buffer const *, std::ostream &) const { return 0; }
        ///
-       int DocBook(Buffer const *, ostream &) const { return 0; }
+       int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Ascii(Buffer const *, std::ostream &, int linelen) const;
-private:
-       string float_type;
+       void validate(LaTeXFeatures & features) const;
 };
 
 #endif