X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTocBackend.h;h=131c3df74816fcc75f1545d9ca37bba703090492;hb=5ce39aa8b5afb1fa88c39797cea6d4e5da5dafe3;hp=1e5b031a73cdfe251ad44d6b547461fe817ceb67;hpb=7236cfc31dc5a20b9bfc09d76fd815ca58d3549a;p=features.git diff --git a/src/TocBackend.h b/src/TocBackend.h index 1e5b031a73..131c3df748 100644 --- a/src/TocBackend.h +++ b/src/TocBackend.h @@ -76,6 +76,10 @@ class Toc : public std::vector public: typedef std::vector::const_iterator const_iterator; const_iterator item(DocIterator const & dit) const; + /// Look for a TocItem given its depth and string. + /// \return The first matching item. + /// \retval end() if no item was found. + const_iterator item(int depth, docstring const & str) const; }; typedef Toc::const_iterator TocIterator;