summaryrefslogtreecommitdiff
path: root/cli/context.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-02-11 07:45:21 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-02-11 07:45:21 +0200
commit96ff207be28274ae59aa67e941c7a6a261ae0c47 (patch)
tree71a10da562ac4ceb1514b227b2b1ecd0ee87ce9d /cli/context.hxx
parentcd73ee1fe287ca77b44370760d72f7eb145f096e (diff)
Assign numbers to TOC headings
Diffstat (limited to 'cli/context.hxx')
-rw-r--r--cli/context.hxx5
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_;
};