]> git.lyx.org Git - lyx.git/blobdiff - src/TocBackend.cpp
Revert "Fix a number of signedness warnings"
[lyx.git] / src / TocBackend.cpp
index 7ea16b747a20b284fce31eb082c3e8bacde1799f..d9ed95767a0de1ae426687473bd7e947a243de96 100644 (file)
@@ -153,7 +153,7 @@ TocBuilder & TocBackend::builder(string const & type)
 // TocItem creation and update should be made in a dedicated function and
 // updateItem should be rewritten to uniformly update the matching items from
 // all TOCs.
-bool TocBackend::updateItem(DocIterator const & dit_in)
+bool TocBackend::updateItem(DocIterator const & dit_in) const
 {
        // we need a text
        DocIterator dit = dit_in.getInnerText();
@@ -180,7 +180,7 @@ bool TocBackend::updateItem(DocIterator const & dit_in)
        //
        // FIXME: This is supposed to accomplish the same as the body of
        // InsetText::iterateForToc(), probably
-       Paragraph & par = toc_item->dit().paragraph();
+       Paragraph const & par = toc_item->dit().paragraph();
        for (auto const & table : par.insetList())
                if (InsetArgument const * arg = table.inset->asInsetArgument()) {
                        tocstring = par.labelString();
@@ -288,9 +288,10 @@ void TocBackend::resetOutlinerNames()
        addName("senseless", _("Senseless"));
        addName("citation", _("Citations"));
        addName("label", _("Labels and References"));
+       addName("brokenrefs", _("Broken References and Citations"));
        // Customizable, but the corresponding insets have no layout definition
        addName("child", _("Child Documents"));
-       addName("graphics", _("Graphics"));
+       addName("graphics", _("Graphics[[listof]]"));
        addName("equation", _("Equations"));
        addName("external", _("External Material"));
        addName("math-macro", _("Math Macros"));