X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTocBackend.cpp;h=c0a4373923f631eb51a29688cd5051db2c927b19;hb=4ed0312c51704780af1c452d3a82a84171b3725a;hp=90e7675a98b510e4ead7d1764ce372c502df2e9b;hpb=be19fdee3aa5154eae8b9757daeb2f97bb53bf92;p=lyx.git diff --git a/src/TocBackend.cpp b/src/TocBackend.cpp index 90e7675a98..c0a4373923 100644 --- a/src/TocBackend.cpp +++ b/src/TocBackend.cpp @@ -43,8 +43,8 @@ namespace lyx { /////////////////////////////////////////////////////////////////////////// TocItem::TocItem(DocIterator const & dit, int d, docstring const & s, - bool output_active, FuncRequest const & action) - : dit_(dit), depth_(d), str_(s), output_(output_active), + bool output_active, bool missing, FuncRequest const & action) + : dit_(dit), depth_(d), str_(s), output_(output_active), missing_(missing), action_(action) { } @@ -65,6 +65,9 @@ docstring const TocItem::asString() const prefix += cross; prefix += thin; } + if (missing_) { + prefix += _("MISSING: "); + } return prefix + str_; } @@ -143,8 +146,8 @@ shared_ptr TocBackend::toc(string const & type) TocBuilder & TocBackend::builder(string const & type) { - auto p = make_unique(toc(type)); - return * builders_.insert(make_pair(type, move(p))).first->second; + auto p = lyx::make_unique(toc(type)); + return * builders_.insert(make_pair(type, std::move(p))).first->second; }