Outlines.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/collections/icollection.h>
5 #include <system/array.h>
6 #include <cstdint>
7 
8 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
9 
10 namespace Aspose
11 {
12 namespace Pdf
13 {
14 class OutlineItemCollection;
15 } // namespace Pdf
16 } // namespace Aspose
17 namespace System
18 {
19 namespace Collections
20 {
21 namespace Generic
22 {
23 template <typename> class IEnumerator;
24 } // namespace Generic
25 } // namespace Collections
26 } // namespace System
27 
28 namespace Aspose {
29 
30 namespace Pdf {
31 
35 class ASPOSE_PDF_SHARED_CLASS Outlines : public System::Collections::Generic::ICollection<System::SharedPtr<Aspose::Pdf::OutlineItemCollection>>
36 {
37  typedef Outlines ThisType;
39 
40  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
41  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
42 
44 
45 public:
46 
50  ASPOSE_PDF_SHARED_API int32_t get_Count() const override = 0;
54  ASPOSE_PDF_SHARED_API bool get_IsReadOnly() const override = 0;
58  virtual ASPOSE_PDF_SHARED_API int32_t get_VisibleCount() = 0;
59 
64  ASPOSE_PDF_SHARED_API void Add(const System::SharedPtr<OutlineItemCollection>& item) override = 0;
68  ASPOSE_PDF_SHARED_API void Clear() override = 0;
74  ASPOSE_PDF_SHARED_API bool Contains(const System::SharedPtr<OutlineItemCollection>& item) const override = 0;
80  ASPOSE_PDF_SHARED_API void CopyTo(System::ArrayPtr<System::SharedPtr<OutlineItemCollection>> array, int32_t arrayIndex) override = 0;
91  ASPOSE_PDF_SHARED_API bool Remove(const System::SharedPtr<OutlineItemCollection>& item) override = 0;
92 
93 protected:
94 
95  virtual void UpdateVisibleCount() = 0;
96 
97  virtual ASPOSE_PDF_SHARED_API ~Outlines();
98 
99 };
100 
101 } // namespace Pdf
102 } // namespace Aspose
103 
104 
ASPOSE_PDF_SHARED_API System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< OutlineItemCollection > > > GetEnumerator() override
Returns an enumerator that iterates through the collection.
Definition: Artifact.h:67
ASPOSE_PDF_SHARED_API bool Remove(const System::SharedPtr< OutlineItemCollection > &item) override
Remove outline collection item.
ASPOSE_PDF_SHARED_API bool get_IsReadOnly() const override
Gets a value indicating whether the collection is read-only.
virtual ASPOSE_PDF_SHARED_API ~Outlines()
ASPOSE_PDF_SHARED_API int32_t get_VisibleCount() override
Gets the total number of outline items at all levels in the document outline hierarchy.
Represents outline entry in outline hierarchy of PDF document.
Definition: OutlineItemCollection.h:68
ASPOSE_PDF_SHARED_API void Add(const System::SharedPtr< OutlineItemCollection > &outline) override
Adds outline item to collection.
ASPOSE_PDF_SHARED_API void UpdateVisibleCount() override
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
ASPOSE_PDF_SHARED_API void CopyTo(System::ArrayPtr< System::SharedPtr< OutlineItemCollection >> array, int32_t index) override
Copies the outline entries to an System.Array, starting at a particular System.Array index...
Definition: AFRelationship.h:4
Class describes collection of outlines.
Definition: Outlines.h:35
Interface of collection of elements. Objects of this class should only be allocated using System::Mak...
Definition: Collection.h:41
ASPOSE_PDF_SHARED_API int32_t get_Count() const override
Count of collection items. Please dont confuse with VisibleCount: VisibleCount gets number of visible...
means saving without change of format, i.e. as PDF use it please instead of &#39;SaveFormat.None&#39;, that is obsolete one
ASPOSE_PDF_SHARED_API void Clear() override
Clears all items from the collection.
ASPOSE_PDF_SHARED_API bool Contains(const System::SharedPtr< OutlineItemCollection > &item) const override
Checks if collection contains given item.
Whole PDF file will be submitted.