Cells.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/shared_ptr.h>
5 #include <system/collections/list.h>
6 #include <system/collections/ienumerable.h>
7 #include <cstdint>
8 
9 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
10 
11 namespace Aspose
12 {
13 namespace Pdf
14 {
15 class Cell;
16 class Row;
17 class Table;
18 namespace Text
19 {
20 class TextState;
21 } // namespace Text
22 } // namespace Pdf
23 } // namespace Aspose
24 namespace System
25 {
26 namespace Collections
27 {
28 namespace Generic
29 {
30 template <typename> class IEnumerator;
31 } // namespace Generic
32 } // namespace Collections
33 class String;
34 } // namespace System
35 
36 namespace Aspose {
37 
38 namespace Pdf {
39 
43 class ASPOSE_PDF_SHARED_CLASS Cells final : public System::Collections::Generic::IEnumerable<System::SharedPtr<Aspose::Pdf::Cell>>
44 {
45  typedef Cells ThisType;
47 
48  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
49  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
50 
51  friend class Aspose::Pdf::Table;
52  friend class Aspose::Pdf::Row;
53 
54 public:
65 
66 public:
67 
71  ASPOSE_PDF_SHARED_API int32_t get_Count();
72 
77  ASPOSE_PDF_SHARED_API System::SharedPtr<Cell> Add();
90  ASPOSE_PDF_SHARED_API System::SharedPtr<Cell> Add(System::String text);
95  ASPOSE_PDF_SHARED_API void Add(System::SharedPtr<Cell> cell);
101  ASPOSE_PDF_SHARED_API void RemoveRange(int32_t index, int32_t count);
106  ASPOSE_PDF_SHARED_API void Remove(System::SharedPtr<Cell> cell);
112  ASPOSE_PDF_SHARED_API void Insert(int32_t index, System::SharedPtr<Cell> cell);
117  ASPOSE_PDF_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<Cell>>> GetEnumerator() override;
121  ASPOSE_PDF_SHARED_API void Dispose();
122 
128  ASPOSE_PDF_SHARED_API System::SharedPtr<Cell> idx_get(int32_t index);
134  ASPOSE_PDF_SHARED_API void idx_set(int32_t index, System::SharedPtr<Cell> value);
135 
136  ASPOSE_PDF_SHARED_API Cells();
137 
140  ASPOSE_PDF_SHARED_API iterator begin() noexcept;
143  ASPOSE_PDF_SHARED_API iterator end() noexcept;
146  ASPOSE_PDF_SHARED_API const_iterator begin() const noexcept;
149  ASPOSE_PDF_SHARED_API const_iterator end() const noexcept;
152  ASPOSE_PDF_SHARED_API const_iterator cbegin() const noexcept;
155  ASPOSE_PDF_SHARED_API const_iterator cend() const noexcept;
160  ASPOSE_PDF_SHARED_API virtualized_iterator* virtualizeBeginIterator() override;
165  ASPOSE_PDF_SHARED_API virtualized_iterator* virtualizeEndIterator() override;
170  ASPOSE_PDF_SHARED_API virtualized_iterator* virtualizeBeginConstIterator() const override;
175  ASPOSE_PDF_SHARED_API virtualized_iterator* virtualizeEndConstIterator() const override;
176 
177 protected:
178 
179  virtual ASPOSE_PDF_SHARED_API ~Cells();
180 
181 private:
182 
183  System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Cell>>> cells;
184 
185 };
186 
187 } // namespace Pdf
188 } // namespace Aspose
189 
190 
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
Represents a cells collection of row.
Definition: Cells.h:43
typename iterator_holder_type::virtualized_iterator_element virtualized_iterator_element
Virtualized element type.
Definition: Cells.h:62
typename iterator_holder_type::virtualized_iterator virtualized_iterator
Virtualized type.
Definition: Cells.h:64
Definition: Artifact.h:67
T virtualized_iterator_element
Inner iterator element type.
Definition: ienumerable.h:232
typename iterator_holder_type::const_iterator const_iterator
Const iterator type.
Definition: Cells.h:60
System::Details::VirtualizedIteratorBase< T > virtualized_iterator
Inner iterator base type.
Definition: ienumerable.h:230
typename iterator_holder_type::iterator iterator
Iterator type.
Definition: Cells.h:58
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Represents a text type.
Definition: AFRelationship.h:4
Represents a row of the table.
Definition: Row.h:53
Represents a cell of the table&#39;s row.
Definition: Cell.h:65
List forward declaration.
Definition: Artifact.h:74
Interface of object providing enumerator on contained elements.
Definition: Document.h:593
Represents a table that can be added to the page.
Definition: Table.h:86
vector_t::iterator iterator
Iterator type.
Definition: list.h:145
vector_t::const_iterator const_iterator
Const iterator type.
Definition: list.h:147
Whole PDF file will be submitted.