///
-typedef std::vector<TocItem> Toc;
+class Toc : public std::vector<TocItem> {};
+
typedef Toc::const_iterator TocIterator;
/// The ToC list.
{
public:
///
- TocBackend(Buffer const * buffer = NULL) : buffer_(buffer) {}
+ TocBackend(Buffer const * buffer) : buffer_(buffer) {}
///
void setBuffer(Buffer const * buffer) { buffer_ = buffer; }
///
///
TocList const & tocs() const { return tocs_; }
+ TocList & tocs() { return tocs_; }
///
Toc const & toc(std::string const & type) const;
- /// Return the first Toc Item before the cursor
+ Toc & toc(std::string const & type);
+ /// Return the first Toc Item before the cursor
TocIterator item(
std::string const & type, ///< Type of Toc.
ParConstIterator const & ///< The cursor location in the document.