using std::ostream;
-InsetTOC::InsetTOC(InsetCommandParams const & p, bool same_id)
- : InsetCommand(p, same_id)
+InsetTOC::InsetTOC(InsetCommandParams const & p)
+ : InsetCommand(p)
{}
}
-Inset::Code InsetTOC::lyxCode() const
+InsetOld::Code InsetTOC::lyxCode() const
{
string const cmdname(getCmdName());
if (cmdname == "tableofcontents")
- return Inset::TOC_CODE;
- return Inset::NO_CODE;
+ return InsetOld::TOC_CODE;
+ return InsetOld::NO_CODE;
}
InsetCommandMailer("toc", *this).showDialog(cmd.view());
return DISPATCHED;
default:
- return UNDISPATCHED;
+ return InsetCommand::localDispatch(cmd);
}
}
{
os << getScreenLabel(buffer) << "\n\n";
- toc::asciiTocList(toc::getType(getCmdName()), buffer, os);
+ lyx::toc::asciiTocList(lyx::toc::getType(getCmdName()), buffer, os);
os << "\n";
return 0;