PageLabelCollection.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/array.h>
5 #include <cstdint>
6 
7 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
8 
9 namespace Aspose
10 {
11 namespace Pdf
12 {
13 class Document;
14 namespace Engine
15 {
16 namespace Data
17 {
18 class IPdfDictionary;
19 } // namespace Data
20 } // namespace Engine
21 namespace Facades
22 {
23 class PdfFileEditor;
24 } // namespace Facades
25 class NumberTree;
26 class PageLabel;
27 } // namespace Pdf
28 } // namespace Aspose
29 
30 namespace Aspose {
31 
32 namespace Pdf {
33 
37 class ASPOSE_PDF_SHARED_CLASS PageLabelCollection : public System::Object
38 {
40  typedef System::Object BaseType;
41 
42  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
43  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
44 
45  friend class Aspose::Pdf::Document;
47 
48 public:
49 
55  ASPOSE_PDF_SHARED_API System::SharedPtr<PageLabel> GetLabel(int32_t pageIndex);
61  ASPOSE_PDF_SHARED_API void UpdateLabel(int32_t pageIndex, System::SharedPtr<PageLabel> pageLabel);
67  ASPOSE_PDF_SHARED_API bool RemoveLabel(int32_t pageIndex);
72  ASPOSE_PDF_SHARED_API System::ArrayPtr<int32_t> GetPages();
73 
74 protected:
75 
80 
82 
83  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(PageLabelCollection, CODEPORTING_ARGS(System::SharedPtr<Engine::Data::IPdfDictionary> engineDict));
87  void AssertRoot();
88 
89 private:
90 
93 
95 
96  void InitializeRoot();
97 
98 };
99 
100 } // namespace Pdf
101 } // namespace Aspose
102 
103 
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:64
Class representing PDF document
Definition: Document.h:625
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Definition: AFRelationship.h:4
Implements operations with PDF file: concatenation, splitting, extracting pages, making booklet...
Definition: PdfFileEditor.h:105
Class represeingting page label collection.
Definition: PageLabelCollection.h:37
Whole PDF file will be submitted.