TOCInfo.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 ColumnInfo;
14 class Document;
15 class Heading;
16 class LevelFormat;
17 enum class NumberingStyle;
18 namespace Text
19 {
20 enum class TabLeaderType;
21 class TextFragment;
22 class TextSegment;
23 } // namespace Text
24 } // namespace Pdf
25 } // namespace Aspose
26 namespace System
27 {
28 namespace Collections
29 {
30 namespace Generic
31 {
32 template <typename, typename> class Dictionary;
33 } // namespace Generic
34 } // namespace Collections
35 } // namespace System
36 
37 namespace Aspose {
38 
39 namespace Pdf {
40 
44 class ASPOSE_PDF_SHARED_CLASS TocInfo final : public System::Object
45 {
46  typedef TocInfo ThisType;
47  typedef System::Object BaseType;
48 
49  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
50  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
51 
52  friend class Aspose::Pdf::Heading;
53  friend class Aspose::Pdf::Document;
54 
55 public:
56 
60  ASPOSE_PDF_SHARED_API const System::SharedPtr<Aspose::Pdf::ColumnInfo>& get_ColumnInfo() const;
64  ASPOSE_PDF_SHARED_API void set_ColumnInfo(System::SharedPtr<Aspose::Pdf::ColumnInfo> value);
68  ASPOSE_PDF_SHARED_API const System::ArrayPtr<System::SharedPtr<LevelFormat>>& get_FormatArray() const;
72  ASPOSE_PDF_SHARED_API void set_FormatArray(System::ArrayPtr<System::SharedPtr<LevelFormat>> value);
76  ASPOSE_PDF_SHARED_API int32_t get_FormatArrayLength();
80  ASPOSE_PDF_SHARED_API void set_FormatArrayLength(int32_t value);
84  ASPOSE_PDF_SHARED_API const System::SharedPtr<Text::TextFragment>& get_Title() const;
88  ASPOSE_PDF_SHARED_API void set_Title(System::SharedPtr<Text::TextFragment> value);
92  ASPOSE_PDF_SHARED_API bool get_IsCountTocPages() const;
96  ASPOSE_PDF_SHARED_API void set_IsCountTocPages(bool value);
100  ASPOSE_PDF_SHARED_API System::String get_PageNumbersPrefix() const;
104  ASPOSE_PDF_SHARED_API void set_PageNumbersPrefix(System::String value);
108  ASPOSE_PDF_SHARED_API bool get_IsShowPageNumbers() const;
112  ASPOSE_PDF_SHARED_API void set_IsShowPageNumbers(bool value);
116  ASPOSE_PDF_SHARED_API Text::TabLeaderType get_LineDash() const;
120  ASPOSE_PDF_SHARED_API void set_LineDash(Text::TabLeaderType value);
124  ASPOSE_PDF_SHARED_API bool get_CopyToOutlines() const;
128  ASPOSE_PDF_SHARED_API void set_CopyToOutlines(bool value);
129 
133  ASPOSE_PDF_SHARED_API TocInfo();
134 
135 protected:
136 
144  int32_t get_PagesCount() const;
148  void set_PagesCount(int32_t value);
152  int32_t get_InsertedTocNumber() const;
156  void set_InsertedTocNumber(int32_t value);
157 
158  static System::String GetLabelNumber(int32_t number, NumberingStyle style);
159  System::SharedPtr<Text::TextSegment> GetNumber(int32_t level, System::SharedPtr<Heading> heading);
160 
161 private:
162 
164 
169 
173  bool pr_IsCountTocPages;
174  System::String pr_PageNumbersPrefix;
175  bool pr_IsShowPageNumbers;
176  Text::TabLeaderType pr_LineDash;
177  bool pr_CopyToOutlines;
178  int32_t pr_PagesCount;
179  int32_t pr_InsertedTocNumber;
180  static System::ArrayPtr<System::String> UpperRoman;
181 
182  static struct __StaticConstructor__ { __StaticConstructor__(); } s_constructor__;
183 
184 };
185 
186 } // namespace Pdf
187 } // namespace Aspose
188 
189 
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
NumberingStyle
Enumeration of supported page numbering style for PageLabel class.
Definition: NumberingStyle.h:16
TabLeaderType
Enumerates the tab leader types.
Definition: TabStop.h:55
Represents table of contents info.
Definition: TOCInfo.h:44
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:616
Definition: Artifact.h:67
Represents heading.
Definition: Heading.h:58
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
Forward declaration of Dictionary class.
Definition: Artifact.h:73
Whole PDF file will be submitted.