libart-paperback 0.1.0-a.1.20260122225059.e5fea306241a
PDF (1.4) library for C++
resource-collection.hxx
1#ifndef art__paperback__internals__resource_collection_hxx_
2#define art__paperback__internals__resource_collection_hxx_
3
4#include <art/paperback/types.hxx>
5#include <art/paperback/forward.hxx>
6
7#include <art/paperback/internals/font-collection.hxx>
8
9#include <art/paperback/carousel/object.hxx>
10
12{
13
14 /// Represents a PDF resource collection.
15 ///
17 {
18 public:
19 struct Create_new {};
20 static constexpr Create_new const create_new{};
21
22 /// Constructor.
23 ///
24 Resource_collection(Create_new, Page&);
25
26 /// Destructor.
27 ///
28 ~Resource_collection() noexcept;
29
30 /// Get the parent page.
31 ///
32 Page&
33 page();
34
35 /// Get the parent page.
36 ///
37 Page const&
38 page() const;
39
40 /// Get the object for this resource collection.
41 ///
42 Carousel::Object
43 object();
44
45 /// Get the font collection.
46 ///
48 fonts();
49
50 private:
53 Resource_collection& operator=(Resource_collection const&) = delete;
54 Resource_collection& operator=(Resource_collection&&) = delete;
55
56 private:
57 struct Internal;
58 unique_ptr<Internal> internal;
59
60 };
61
62 /// Get the document associated with a resource collection.
63 ///
66
67 /// Get the document associated with a resource collection.
68 ///
69 Document const&
71
72} // namespace cooper
73
74#endif
Definition document.hxx:12
Definition font-collection.hxx:11
Represents a PDF resource collection.
Definition resource-collection.hxx:17
Resource_collection(Create_new, Page &)
Constructor.
Definition resource-collection.cxx:44
~Resource_collection() noexcept
Destructor.
Definition resource-collection.cxx:58
Page & page()
Get the parent page.
Definition resource-collection.cxx:63
Font_collection & fonts()
Get the font collection.
Definition resource-collection.cxx:84
Definition page.hxx:12
COS file format implementation namespace.
Definition array.cxx:6
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