#include "insettoc.h"
+#include "buffer.h"
#include "dispatchresult.h"
#include "funcrequest.h"
#include "gettext.h"
#include "metricsinfo.h"
-#include "toc.h"
+#include "TocBackend.h"
#include "support/std_ostream.h"
{
os << getScreenLabel(buffer) << "\n\n";
- toc::asciiTocList(lyx::toc::getType(getCmdName()), buffer, os);
+ buffer.tocBackend().asciiTocList(getCmdName(), os);
os << "\n";
return 0;