#include "FloatList.h"
#include "FuncRequest.h"
#include "FuncStatus.h"
-#include "support/gettext.h"
#include "InsetList.h"
#include "MetricsInfo.h"
#include "output_latex.h"
#include "frontends/FontMetrics.h"
#include "frontends/Painter.h"
+#include "support/gettext.h"
#include "support/lstrings.h"
#include <sstream>
Toc & toc = buffer().tocBackend().toc(type_);
docstring const str = full_label_ + ". " + text_.getPar(0).asString();
toc.push_back(TocItem(pit, 0, str));
+
+ // Proceed with the rest of the inset.
+ InsetText::addToToc(cpit);
}
switch (cmd.action) {
case LFUN_BREAK_PARAGRAPH:
- case LFUN_BREAK_PARAGRAPH_SKIP:
- status.enabled(false);
+ status.setEnabled(false);
return true;
case LFUN_OPTIONAL_INSERT:
- status.enabled(cur.paragraph().insetList().find(OPTARG_CODE) == -1);
+ status.setEnabled(cur.paragraph().insetList().find(OPTARG_CODE) == -1);
return true;
case LFUN_INSET_TOGGLE: