diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-11 07:45:21 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-11 07:45:21 +0200 |
commit | 96ff207be28274ae59aa67e941c7a6a261ae0c47 (patch) | |
tree | 71a10da562ac4ceb1514b227b2b1ecd0ee87ce9d /cli/context.hxx | |
parent | cd73ee1fe287ca77b44370760d72f7eb145f096e (diff) |
Assign numbers to TOC headings
Diffstat (limited to 'cli/context.hxx')
-rw-r--r-- | cli/context.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
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<string, string> 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_; }; |