}
-void Cursor::niceInsert(docstring const & t)
+void Cursor::niceInsert(docstring const & t, Parse::flags f)
{
MathData ar;
- asArray(t, ar);
+ asArray(t, ar, f);
if (ar.size() == 1)
niceInsert(ar[0]);
else
void Cursor::checkBufferStructure()
{
- if (paragraph().layout().toclevel == Layout::NOT_IN_TOC)
- return;
Buffer const * master = buffer().masterBuffer();
- master->tocBackend().updateItem(ParConstIterator(*this));
- master->structureChanged();
+ master->tocBackend().updateItem(*this);
}