From 96ff207be28274ae59aa67e941c7a6a261ae0c47 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 11 Feb 2016 07:45:21 +0200 Subject: Assign numbers to TOC headings --- cli/context.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cli/context.hxx') diff --git a/cli/context.hxx b/cli/context.hxx index c67cec5..cd83421 100644 --- a/cli/context.hxx +++ b/cli/context.hxx @@ -103,6 +103,10 @@ public: id_set_type& id_set; id_set_type& ref_set; + // Map of heading ids to heading number (assigned during TOC generation) + // + typedef std::map heading_map_type; + heading_map_type& heading_map; // TOC phase. // @@ -133,6 +137,7 @@ private: regex_mapping link_regex_; id_set_type id_set_; id_set_type ref_set_; + heading_map_type heading_map_; unsigned short toc_; toc_stack tocs_; }; -- cgit v1.1