- InsetTOC() : InsetCommand("tableofcontents") {}
- ///
- InsetTOC(Buffer * b) : InsetCommand("tableofcontents"), owner(b) {}
- ///
- Inset * Clone() const { return new InsetTOC(owner); }
- ///
- string getScreenLabel() const { return _("Table of Contents"); }
- /// On edit, we open the TOC pop-up
- void Edit(BufferView * bv, int, int, unsigned int);
- ///
- unsigned char Editable() const {
- return 1;
+ InsetTOC(InsetCommandParams const & p, bool same_id = false)
+ : InsetCommand(p, same_id) {}
+ ///
+ virtual Inset * clone(Buffer const &, bool same_id = false) const {
+ return new InsetTOC(params(), same_id);