#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;
+ ///
+ string const getScreenLabel(Buffer const *) const;
///
void edit(BufferView * bv, int, int, unsigned int);
- ///
+ ///
+ void edit(BufferView * bv, bool front = true);
+ ///
EDITABLE editable() const { return IS_EDITABLE; }
///
bool display() const { return true; }
///
int linuxdoc(Buffer const *, std::ostream &) const { return 0; }
///
- int docBook(Buffer const *, std::ostream &) const { return 0; }
+ int docbook(Buffer const *, std::ostream &) const { return 0; }
///
int ascii(Buffer const *, std::ostream &, int linelen) const;
-private:
- string float_type;
};
#endif