X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetfloatlist.h;h=57179951281ea144593f552c89c15824be315061;hb=dbd7a961fc46bb10c85bdd8c7fb6626477ae63d8;hp=132a1b8494e83e43096e06076fffb6bd94a7d1a1;hpb=7521b5d20f42102cf444e3fd8718a088a60d0098;p=lyx.git diff --git a/src/insets/insetfloatlist.h b/src/insets/insetfloatlist.h index 132a1b8494..5717995128 100644 --- a/src/insets/insetfloatlist.h +++ b/src/insets/insetfloatlist.h @@ -16,26 +16,27 @@ #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 same_id = false) 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; } @@ -50,11 +51,9 @@ public: /// 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