• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*=============================================================================
2 Copyright (c) 2017 Daniel James
3 
4 Use, modification and distribution is subject to the Boost Software
5 License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 http://www.boost.org/LICENSE_1_0.txt)
7 =============================================================================*/
8 
9 #if !defined(BOOST_QUICKBOOK_BOOSTBOOK_CHUNKER_HPP)
10 #define BOOST_QUICKBOOK_BOOSTBOOK_CHUNKER_HPP
11 
12 #include "xml_parse.hpp"
13 
14 namespace quickbook
15 {
16     namespace detail
17     {
18         struct chunk : tree_node<chunk>
19         {
20             xml_tree contents_;
21             xml_tree title_;
22             xml_tree info_;
23             bool inline_;
24             std::string id_;
25             std::string path_;
26 
chunkquickbook::detail::chunk27             explicit chunk(xml_tree&& contents)
28                 : contents_(std::move(contents)), inline_(false)
29             {
30             }
31         };
32 
33         typedef tree<chunk> chunk_tree;
34 
35         chunk_tree chunk_document(xml_tree&);
36         void inline_sections(chunk*, int depth);
37         void inline_all(chunk*);
38     }
39 }
40 
41 #endif
42