]> git.lyx.org Git - lyx.git/blobdiff - src/TocBackend.h
BufferParams.cpp: make Lithuanian documents compilable, fixes http://bugzilla.lyx...
[lyx.git] / src / TocBackend.h
index 1e5b031a73cdfe251ad44d6b547461fe817ceb67..f267d3c774f8023a305ceb99e20d4d0e63aabc1a 100644 (file)
@@ -75,7 +75,12 @@ class Toc : public std::vector<TocItem>
 {
 public:
        typedef std::vector<TocItem>::const_iterator const_iterator;
+       typedef std::vector<TocItem>::iterator 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.
+       iterator item(int depth, docstring const & str);
 };
 
 typedef Toc::const_iterator TocIterator;