- switch (inset.lyxCode()) {
- case ARG_CODE: {
- if (!tocstring.empty())
- break;
- dit.pos() = 0;
- Paragraph const & insetpar =
- *static_cast<InsetArgument&>(inset).paragraphs().begin();
- if (!par.labelString().empty())
- tocstring = par.labelString() + ' ';
- tocstring += insetpar.asString(AS_STR_INSETS);
- break;
- }
- default:
- break;
- }