]> git.lyx.org Git - features.git/blobdiff - src/TocBackend.h
Add a "List of Changes" in the Navigator. The list is updated only when the document...
[features.git] / src / TocBackend.h
index 1e5b031a73cdfe251ad44d6b547461fe817ceb67..131c3df74816fcc75f1545d9ca37bba703090492 100644 (file)
@@ -76,6 +76,10 @@ class Toc : public std::vector<TocItem>
 public:
        typedef std::vector<TocItem>::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;