Paragraphs.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/object.h>
5 #include <system/collections/list.h>
6 #include <system/collections/ienumerable.h>
7 
8 #include "Aspose.PDF.Cpp/Generator/BaseParagraph.h"
9 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
10 
11 namespace Aspose
12 {
13 namespace Pdf
14 {
15 class Document;
16 } // namespace Pdf
17 } // namespace Aspose
18 namespace System
19 {
20 namespace Collections
21 {
22 namespace Generic
23 {
24 template <typename> class IEnumerator;
25 } // namespace Generic
26 } // namespace Collections
27 } // namespace System
28 
29 namespace Aspose {
30 
31 namespace Pdf {
32 
36 class ASPOSE_PDF_SHARED_CLASS Paragraphs : public System::Collections::Generic::IEnumerable<System::SharedPtr<Aspose::Pdf::BaseParagraph>>, public System::ICloneable
37 {
38  typedef Paragraphs ThisType;
41 
42  typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
43  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
44 
45  friend class Aspose::Pdf::Document;
46 
47 public:
58 
59 public:
60 
64  ASPOSE_PDF_SHARED_API int32_t get_Count();
65 
70  ASPOSE_PDF_SHARED_API void Add(System::SharedPtr<BaseParagraph> paragraph);
77  ASPOSE_PDF_SHARED_API System::SharedPtr<Paragraphs> GetRange(int32_t index, int32_t count);
83  ASPOSE_PDF_SHARED_API void RemoveRange(int32_t index, int32_t count);
88  ASPOSE_PDF_SHARED_API void Remove(System::SharedPtr<BaseParagraph> paragraph);
94  ASPOSE_PDF_SHARED_API void Insert(int32_t index, System::SharedPtr<BaseParagraph> paragraph);
98  ASPOSE_PDF_SHARED_API void Clear();
104  ASPOSE_PDF_SHARED_API void InsertRange(int32_t index, System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<BaseParagraph>>> collection);
105 
111  ASPOSE_PDF_SHARED_API System::SharedPtr<BaseParagraph> idx_get(int32_t index);
117  ASPOSE_PDF_SHARED_API void idx_set(int32_t index, System::SharedPtr<BaseParagraph> value);
118 
124  static int32_t _anonymous_method_0(System::SharedPtr<BaseParagraph> x, System::SharedPtr<BaseParagraph> y);
129  ASPOSE_PDF_SHARED_API System::SharedPtr<System::Object> Clone() override;
130  ASPOSE_PDF_SHARED_API void cpp_switch_last_paragraph_to_week();
131 
132  ASPOSE_PDF_SHARED_API Paragraphs();
133 
136  ASPOSE_PDF_SHARED_API iterator begin() noexcept;
139  ASPOSE_PDF_SHARED_API iterator end() noexcept;
142  ASPOSE_PDF_SHARED_API const_iterator begin() const noexcept;
145  ASPOSE_PDF_SHARED_API const_iterator end() const noexcept;
148  ASPOSE_PDF_SHARED_API const_iterator cbegin() const noexcept;
151  ASPOSE_PDF_SHARED_API const_iterator cend() const noexcept;
156  ASPOSE_PDF_SHARED_API virtualized_iterator* virtualizeBeginIterator() override;
161  ASPOSE_PDF_SHARED_API virtualized_iterator* virtualizeEndIterator() override;
166  ASPOSE_PDF_SHARED_API virtualized_iterator* virtualizeBeginConstIterator() const override;
171  ASPOSE_PDF_SHARED_API virtualized_iterator* virtualizeEndConstIterator() const override;
172 
173 protected:
174 
175  bool IsZIndexSet();
179  void Sort();
180 
181  virtual ASPOSE_PDF_SHARED_API ~Paragraphs();
182 
183 private:
184 
185  System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<BaseParagraph>>> paragraphs;
186 
187 };
188 
189 } // namespace Pdf
190 } // namespace Aspose
191 
192 
typename iterator_holder_type::const_iterator const_iterator
Const iterator type.
Definition: Paragraphs.h:53
Class representing PDF document
Definition: Document.h:616
Definition: Artifact.h:67
T virtualized_iterator_element
Inner iterator element type.
Definition: ienumerable.h:232
System::Details::VirtualizedIteratorBase< T > virtualized_iterator
Inner iterator base type.
Definition: ienumerable.h:230
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
typename iterator_holder_type::virtualized_iterator virtualized_iterator
Virtualized type.
Definition: Paragraphs.h:57
Definition: AFRelationship.h:4
Defies a method that enables object cloning - creating a copy of an object. Objects of this class sho...
Definition: icloneable.h:15
List forward declaration.
Definition: Artifact.h:74
Interface of object providing enumerator on contained elements.
Definition: Document.h:584
typename iterator_holder_type::iterator iterator
Iterator type.
Definition: Paragraphs.h:51
means saving without change of format, i.e. as PDF use it please instead of &#39;SaveFormat.None&#39;, that is obsolete one
Represents a abstract base object can be added to the page(doc.Paragraphs.Add()). ...
Definition: BaseParagraph.h:66
This class represents paragraph collection.
Definition: Paragraphs.h:36
vector_t::iterator iterator
Iterator type.
Definition: list.h:145
vector_t::const_iterator const_iterator
Const iterator type.
Definition: list.h:147
typename iterator_holder_type::virtualized_iterator_element virtualized_iterator_element
Virtualized element type.
Definition: Paragraphs.h:55
Whole PDF file will be submitted.