libart-paperback 0.1.0-a.1.20260122225059.e5fea306241a
PDF (1.4) library for C++
document-catalog.hxx
1#ifndef art__paperback__internals__document_catalog_hxx_
2#define art__paperback__internals__document_catalog_hxx_
3
4#include <art/paperback/types.hxx>
5#include <art/paperback/forward.hxx>
6
7#include <art/paperback/internals/page-tree.hxx>
8
10{
11
13 {
14 public:
15 struct Create_new {};
16 static constexpr Create_new const create_new{};
17
18 /// Constructor.
19 ///
20 Document_catalog(Create_new const&, Document&);
21
22 /// Destructor.
23 ///
24 ~Document_catalog() noexcept;
25
26 /// Access the parent document.
27 ///
29 document();
30
31 /// Access the parent document.
32 ///
33 Document const&
34 document() const;
35
36 /// Access the page tree.
37 ///
39 pages();
40
41 private:
42 Document_catalog(Document_catalog const&) = delete;
44 Document_catalog& operator=(Document_catalog const&) = delete;
45 Document_catalog& operator=(Document_catalog&&) = delete;
46
47 struct Internal;
48 unique_ptr<Internal> internal;
49
50 };
51
52} // namespace Art::Paperback::Internals
53
54#endif
Definition document.hxx:12
Definition document-catalog.hxx:13
Document_catalog(Create_new const &, Document &)
Constructor.
Definition document-catalog.cxx:26
Page_tree & pages()
Access the page tree.
Definition document-catalog.cxx:53
~Document_catalog() noexcept
Destructor.
Definition document-catalog.cxx:34
Represents a PDF page tree.
Definition page-tree.hxx:16
Internal namespace.
Definition forward.hxx:91
Document & document(Page_tree &page_tree)
Get the document associated with a page tree.
Definition page-tree.cxx:133